🐍Python

Python Shell

python -c 'import pty; pty.spawn("/bin/bash")'

File Transfer Servers

python -m uploadserver

Download files
curl http://0.0.0.0:8000/file.txt -o file.txt

Send files 
curl -X POST http://127.0.0.1:8000/upload -F '[email protected]' -F '[email protected]'

Bypass SSL warning or errors Source: https://github.com/gtech/39646/blob/master/39646.py

import ssl
# Use if you don't care about the validity of the ssl cert
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE

Last updated

Was this helpful?