17.Miscellaneous-techniques
Passive Traffic Capture:
Capture Traffic
sudo tcpdump -i <interface> -w capture.pcapAnalyze Capture with net-creds (if installed)
net-creds capture.pcapAnalyze Capture with PCredz (if installed)
PCredz capture.pcapAnalyze Capture with tshark (part of Wireshark)
tshark -r capture.pcap -T fields -e http.authorization -e ftp.password -e pop.password -e imap.password -e telnet.password -e smtp.passwordAnalyze Capture with Wireshark (GUI)
wireshark capture.pcapWeak NFS Privileges:
Show NFS Exports
showmount -e <nfs_server_ip>View NFS Exports Configuration
Mount NFS Share (requires sudo)
Create SUID Binary (C Code Example)
Copy SUID Binary to NFS Mount
Set SUID Bit
Execute SUID Binary (on Target System)
Unmount NFS Share (requires sudo)
Hijacking Tmux Sessions:
Find Running tmux Processes
Check tmux Socket Permissions
Attach to tmux Session
Create a New Shared tmux Session (example)
Change the Ownership of the tmux Socket (example)
1. Passive Traffic Capture:
2. Weak NFS Privileges:
3. Hijacking Tmux Sessions:
Key Improvements and Considerations:
Last updated