Guest User

Untitled

a guest
Aug 5th, 2025
589
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. hbsd-current-01[shawn]:/home/shawn $ sysctl security.bsd.unprivileged_chroot security.mac.do.rules [11:24:09]
  2. security.bsd.unprivileged_chroot: 1
  3. security.mac.do.rules: uid=1001:uid=0
  4. hbsd-current-01[shawn]:/home/shawn $ id [11:24:19]
  5. uid=1001(shawn) gid=1001(shawn) groups=1001(shawn),0(wheel),5(operator)
  6. hbsd-current-01[shawn]:/home/shawn $ chroot -n / [11:24:21]
  7. Agent pid 19225
  8. hbsd-current-01[shawn]:/ $ su - [11:24:25]
  9. su: not running setuid
  10. hbsd-current-01[shawn]:/ (1) $ mdo -u root -i /bin/sh [11:24:26]
  11. # id
  12. uid=0(root) gid=0(wheel) egid=1001(shawn) groups=1001(shawn),0(wheel),5(operator)
  13. # ^D
  14. hbsd-current-01[shawn]:/ $ id [11:24:32]
  15. uid=1001(shawn) gid=1001(shawn) groups=1001(shawn),0(wheel),5(operator)
  16. hbsd-current-01[shawn]:/ $
Advertisement
Add Comment
Please, Sign In to add comment