Performing ping sweep
We can perform ping sweep to discover other internal hosts after a foothold.
ping -asgq 172.16.5.0/23sudo nmap -v -A -iL hosts.txt -oN /home/User/Documents/host-enumpost/multi/gather/ping_sweepfor i in {1..254} ;do (ping -c 1 172.16.5.$i | grep "bytes from" &) ;donefor /L %i in (1 1 254) do ping 172.16.5.%i -n 1 -w 100 | find "Reply"1..254 | % {"172.16.6.$($_): $(Test-Connection -count 1 -comp 172.15.6.$($_) -quiet)"}Last updated