Tech

How To Run A Host Scan

How To Run A Host Scanย 
โ—พ๏ธ A more powerful way to scan your networks is to use Nmap to perform a host scan. Unlike a ping scan, a host scan actively sends ARP request packets to all the hosts connected to your network. Each host then responds to this packet with another ARP packet containing its status and MAC address. โ—พ๏ธ
To run a host scan, use the following command:ย 
# nmap -sp
This returns information on every host, their latency, their MAC address, and also any description associated with this address. This can be a powerful way of spotting suspicious hosts connected to your network.ย 
ย If you see anything unusual in this list, you can then run a DNS query on a specific host, by using:ย 
# namp -sL
This returns a list of names associated with the scanned IP. This description provides information on what the IP is actually for.
1. Ping Scanningย 
โ—พ๏ธ # โ—พ๏ธ
ย 2. Port Scanningย 
โ—พ๏ธ # sS TCP SYN scan โ—พ๏ธ
โ—พ๏ธ # sT TCP connect scan โ—พ๏ธ
โ—พ๏ธ # sU UDP scans โ—พ๏ธ
โ—พ๏ธ # sY SCTP INIT scan โ—พ๏ธ
โ—พ๏ธ # sN TCP NULL โ—พ๏ธ
ย 3. Host Scanningย 
โ—พ๏ธ # nmap -sp โ—พ๏ธ
4. OS Scanningย 
โ—พ๏ธ nmap -O โ—พ๏ธ
ย 5. Scan The Most Popular Portsย 
โ—พ๏ธ nmap –top-ports 20 192.168.1.106 โ—พ๏ธ
6. Output To A Fileย 
โ—พ๏ธ -oN output.txt โ—พ๏ธ (To a Text File)
ย โ—พ๏ธ -oX output.xml โ—พ๏ธ (To An XML)
ย 7. Disable DNS Name Resolutionย 
โ—พ๏ธ # nmap -sp -n 192.100.1.1/24 โ—พ๏ธ

Discover more from ChuckysCarnage

Subscribe to get the latest posts sent to your email.

Leave a comment