Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Linux Priv Esc.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ find /dir -xdev \( -nouser -o -nogroup \) -print # Noowner files
### Writable by current user
find / perm /u=w -user `whoami` 2>/dev/null
find / -perm /u+w,g+w -f -user `whoami` 2>/dev/null
find / -perm /u+w -user `whoami` 2>/dev/nul
find / -perm /u+w -user `whoami` 2>/dev/null

### Any script files that we can modify?
find / -writable -type f -name "*.py" 2>/dev/null #find all python file that can be write by us
Expand Down