wirehack7

Spawn a shell

Aug 29th, 2017
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  1. Spawn a shell:
  2.  
  3. python -c 'import pty; pty.spawn("/bin/sh")'
  4. echo os.system('/bin/bash')
  5. /bin/sh -i
  6. perl —e 'exec "/bin/sh";'
  7. perl: exec "/bin/sh";
  8. ruby: exec "/bin/sh"
  9. lua: os.execute('/bin/sh')
  10. exec "/bin/sh"
  11.  
  12. VIM:
  13. :!bash
  14. :set shell=/bin/bash:shell
  15.  
  16. nmap:
  17. !sh
Advertisement
Add Comment
Please, Sign In to add comment