- This C program gives
root
sudo netstat -lpt | less
to see all tcp listening portsnetcat
should be listening on port54
, process ID was996
sudo kill -9 996
to kill the netcat listener
dash
ls -l /bin/dash
shows thatdash
has setuid bit setsudo chmod u-s /bin/dash
to remove setuid
mtr
ls -l /usr/bin/mtr
shows setuid- I dont think it ships like this
sudo chmod u-s /usr/bin/mtr
pt_chown
ls -l /usr/lib/pt_chown
shows setuid- Exploit listed here
sudo chmod u-s /usr/lib/pt_chown
- EVERY user's home directory has a
cc_data.txt
file that anyone can read (?? wtf ??) ls -l ~/cc_data.txt
to show file permissionssudo find /home -name "*cc_data*" | xargs sudo chmod o-r
- finds every one of these files and removes read permissions for
other
accounts
- finds every one of these files and removes read permissions for
- Can we just delete them?