Skip to content

Instantly share code, notes, and snippets.

@kkirsche
Forked from sckalath/tricks
Created November 10, 2017 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkirsche/aa35a3d9eeec1b1a0757606b9d4400e9 to your computer and use it in GitHub Desktop.
Save kkirsche/aa35a3d9eeec1b1a0757606b9d4400e9 to your computer and use it in GitHub Desktop.
tricks
#get a pty through python
python -c 'import pty; pty.spawn("/bin/bash");'
#grab the user agent from the http header on port 10443
tcpdump -A -l -vvvs 1024 -npi eth0 port 10443
#base64 decode a string
echo STRINGTODECODE | base64 --decode
#escape jail shell
echo os.system("/bin/bash") #when echo command is available
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment