1 2 3 4 5 | sudo -s if [ -f /tmp/nmap.* ]; then rm /tmp/nmap.*; fi nmap -sP -PA 192.168.0.0/24 >> /tmp/nmap.sweep for h in $(grep Host /tmp/nmap.sweep | awk '{print$2}'); do $c -PN -A $h >> /tmp/nmap.scan; done less /tmp/nmap.scan |
When it comes to analyzing network problems, debugging client / server communication or just monitoring network traffic, a protocol analyzer (packet sniffer) is king.
There are a number of packet sniffers out there, two of the most popular are Wireshark (formerly Ethereal) and tcpdump. Tshark is the console (command line) version of Wireshark.