Network scanning is a technique used by attackers to discover active devices, open ports, and running services across a network. This content covers the fundamentals of IP scanning using Nmap and Zenmap, demonstrated through a live ping scan against a /24 network.
Network Scanning with Nmap
If an adversary is sitting on the network, they can start scanning the rest of the network. They can start scanning for active IP addresses and devices on the network. They can scan those ports that are on the network. They can scan for any kind of services. So they can scan this network for certain things.
We're going to take a look at IP scans. What we can do is we can do an ICMP. ICMP is used for troubleshooting, so think of ping. We can ping another device on the network, and it's really handy for us as system administrators and security professionals to really troubleshoot our network and see what's going on on it. However, the adversary can use this as well. They can do an IP scan, and in fact they can use the IP scan and scan a whole block of IP address to see what's live on the network.
This is for ethical hacking purposes only. Make sure you only do this on a network that either you own or have gotten permission to carry out these techniques. I'm on a demo machine here, which is on a demo network, so I'm not going to get into any kind of legal issues by scanning this network.
I'm going to be using Nmap, or Network Mapper. Network Mapper is a program that helps me scan blocks of IP addresses and ports to see what's available. I'm actually going to use this front end here, which is Zenmap. So on the back end, it's just using Nmap. You can see the actual Nmap code, but I'm going to use Zenmap to actually enter this code and display the results of it.
What I'm going to do is I'm going to open up a command prompt here and I am going to type in ipconfig. The reason why I'm doing that is, first of all, I can just find out some good information with this. I can find out what LAN this is on, which is Andy. And I can see the IP address, so it's on 10.110.194, which also gives me a hint with that. And the mask tells me exactly what network this is on, so it's on the 10.110/24 network.
So I am going to type in here as the target 10.110.0/24, because that's the network address there. And I don't want to do an intense scan. What I'm going to do is I'm going to do a ping scan here and hit scan on this and let it go. So there it's executed the command and it's starting this through Nmap, and I can see the scans that are active here. So this scan is active, and I'm going to wait until it is done.
It finished up. It took about a minute to scan this whole network of 256 addresses. On the left-hand side, it found quite a few devices here: 10.110.15.1123vuh 21 194 196 and 197. And I can scroll through these different ones over here on the left-hand side. It's showing me the results right here.
This is the report for 10.1.10.1. It says the host is up, it gives me the latency of that host, and it actually gives me a MAC address. Not only has it given me this MAC address, but it's looked up this first part of who is the manufacturer and gives me that it's Cisco Systems. So Cisco Systems here, that's probably a switch there or a router. And then the 10.5 is another Cisco system there. The 10.11, 12, and 13 are all Cisco. We've got the 10.21, which is a Raspberry Pi. And then we have Proxmox that's running, so we've got 197 and 194. Both those are Proxmox, which is a virtualization server. So you can see that it found a lot of great information about this network, the different devices that are on the network, from this scan.
So here's the attack card for network scanning: we're scanning the rest of the network for any kind of active devices, services, and potential vulnerabilities.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →