Latest / CyberSecurity Summary / Secrets of Network Cartography: A Comprehensive Guide to Nmap
Transcript
- 0:00Speaker 1: Welcome to the deep dive. You know, our networks, whether
- 0:03Speaker 1: at home or in the enterprise, they can often feel
- 0:07Speaker 1: like a digital wild West. It's this vast landscape and
- 0:10Speaker 1: it's incredibly tough to know what's really happening, like are
- 0:15Speaker 1: those devices running what they should be? Are there any
- 0:18Speaker 1: you know, hidden doors no one's noticed.
- 0:20Speaker 2: Yeah, that's a really good way to put it. Visibility
- 0:22Speaker 2: is a huge challenge exactly.
- 0:24Speaker 1: So today we're embarking on a deep dive to uncover
- 0:27Speaker 1: some of those secrets. We're focusing on a tool that's
- 0:30Speaker 1: often called the Sheriff's multi Tool for Network Reconnaissance ah MAP.
- 0:35Speaker 1: You got it. We're diving into the secrets of network cartography.
- 0:38Speaker 1: A comprehensive guide to endmap by the renowned James Professor Messer.
- 0:43Speaker 1: Our mission, well, it's to unlock how endmap can give
- 0:46Speaker 1: you really unparalleled insight into your network right quickly, thoroughly,
- 0:50Speaker 1: and help you become truly well informed. Doesn't matter if
- 0:53Speaker 1: you're just curious or you know, prepping for a critical meeting.
- 0:56Speaker 2: And what's truly fascinating here, I think is how end
- 0:58Speaker 2: map at its core, it leverages the fundamental design of
- 1:02Speaker 2: TCPIP itself to reveal what's beneath the surface. It's not
- 1:06Speaker 2: just about seeing what's obviously visible, but understanding those subtle behaviors,
- 1:11Speaker 2: the digital fingerprints that tell a much bigger story about
- 1:14Speaker 2: a device. You know, it's OS, the services it's running. Yeah,
- 1:18Speaker 2: little clues exactly. We'll explore how this tool really empowers
- 1:21Speaker 2: you to see your network with nuclarity.
- 1:25Speaker 1: Precisely so to kick us off. Then, for those who
- 1:27Speaker 1: might be newer to this, how would you best define
- 1:32Speaker 1: end map? What's its core purpose in the cybersecurity world?
- 1:35Speaker 2: Well, fundamentally, ENDMP is a powerful network exploration tool and
- 1:40Speaker 2: a security scanner. Its main job is to discover hosts
- 1:43Speaker 2: and services on a computer network. It does this by
- 1:46Speaker 2: sending packets and then analyzing the responses it gets back.
- 1:50Speaker 2: It was originally created by this brilliant individual known as Feudor,
- 1:54Speaker 2: and it has truly become well a cornerstone in the
- 1:57Speaker 2: cybersecurity landscape. Absolutely essential for anyone managing or securing networks.
- 2:02Speaker 1: And it's not just for specialized roles, is it. I
- 2:03Speaker 1: mean you might even have and Mac installed right now
- 2:06Speaker 1: without realizing it.
- 2:07Speaker 2: Oh. Absolutely, It comes bundled with many Linux and UNI
- 2:10Speaker 2: i X distributions, and it runs pretty much everywhere Windows, Apple,
- 2:14Speaker 2: Mac Os, various other operating systems. It's remarkably ubiquitous, it really.
- 2:19Speaker 1: Is, which brings up an important question that Professor Messer
- 2:23Speaker 1: tackles head on in his guide.
- 2:25Speaker 2: Yeah, the good or evil question?
- 2:27Speaker 1: Exactly? Is end map inherently good or evil? What's the
- 2:30Speaker 1: take there?
- 2:30Speaker 2: His distinction is vital. End map is just a tool,
- 2:34Speaker 2: that's it. Think of it like this. If you're driving
- 2:37Speaker 2: by a house and notice a door proped open, end
- 2:40Speaker 2: map helps you see that open door. It doesn't, then,
- 2:43Speaker 2: you know, prompt you to stop the car, walk in
- 2:45Speaker 2: and steal the television.
- 2:46Speaker 1: Right, it's just observation.
- 2:47Speaker 2: It's about reconnaissance, gathering information. Now that info it can
- 2:52Speaker 2: be used by good guys to make network safer, right,
- 2:55Speaker 2: find vulnerabilities before the bad guys do. Or yeah, it
- 2:58Speaker 2: can be used by bad guys looking for a weaknesses.
- 3:00Speaker 2: The power of the tool brings significant responsibility. It's absolutely
- 3:04Speaker 2: essential to use it with permission and strong ethical considerations.
- 3:10Speaker 1: That analogy really highlights the responsibility involved. Okay, so let's
- 3:15Speaker 1: pull back the curtain a bit and explore the nitty
- 3:17Speaker 1: gritty how exactly does this powerful digital sheriff actually do
- 3:23Speaker 1: its reconnaissance duties? You mentioned its primary interface is the
- 3:27Speaker 1: command line.
- 3:28Speaker 2: Yeah, that's right. The command line is definitely where end
- 3:30Speaker 2: map shines. I mean there have been graphical front ends
- 3:32Speaker 2: over the years, sure.
- 3:33Speaker 1: Like in map bever MP WIN, though I think that
- 3:35Speaker 1: was pretty old.
- 3:36Speaker 2: Now, Yeah, exactly, But mastering the command line gives you
- 3:39Speaker 2: such granular control over every single aspect of a scan,
- 3:43Speaker 2: meaning meaning you're telling and Matt precisely what to do
- 3:46Speaker 2: and how to do it, like what kind of packets
- 3:48Speaker 2: to send, how quickly to send them, which hosts to target, everything,
- 3:52Speaker 2: And that level of control is really key to its effectiveness.
- 3:55Speaker 1: Okay, So if end map is sending and receiving packets
- 3:58Speaker 1: to map a network, us rely heavily on well our
- 4:01Speaker 1: old friend TCPIP.
- 4:03Speaker 2: Oh absolutely, nmp's magic is entirely built upon understanding TCPIP fundamentals.
- 4:10Speaker 1: Can you give us a quick refresher on the core
- 4:11Speaker 1: protocols it leverages?
- 4:13Speaker 2: Sure thing. So first, there's IP, the Internet protocol. Think
- 4:17Speaker 2: of it as like the truck for hire that carries
- 4:19Speaker 2: data shipments across the network roads. It's focused on getting
- 4:23Speaker 2: data from point A to point B. Doesn't worry too
- 4:25Speaker 2: much about what's inside the package. These IP trucks, they
- 4:29Speaker 2: navigate routers and firewalls, which can either pass them along
- 4:32Speaker 2: or just drop them.
- 4:33Speaker 1: Got it, just delivery pretty much.
- 4:35Speaker 2: Then you have TCP, the Transmission Control protocol. Now this
- 4:40Speaker 2: one is very formal, very proper. Before any data is sent,
- 4:45Speaker 2: TCP establishes a reliable connection. It uses what's known as
- 4:49Speaker 2: the three way handshake. You send an sym packet, the
- 4:52Speaker 2: other side responds with a sinak, and you finish with
- 4:55Speaker 2: an ACK to confirm Okay, we're connected, now we can talk.
- 4:58Speaker 2: This connection orient approach is something end map frequently exploits
- 5:02Speaker 2: to figure out if ports are open on the other
- 5:05Speaker 2: side of the coin. Is UDP, the User Datagram Protocol.
- 5:08Speaker 2: It's TCP's polar opposite. So informal totally, it's connectionless. Yeah,
- 5:13Speaker 2: a fire and forget kind of approach. It just sends
- 5:15Speaker 2: the data, doesn't wait for confirmation.
- 5:17Speaker 1: Why would you use that, Well, it's great for.
- 5:19Speaker 2: Real time stuff like voice or video streaming, where speed
- 5:22Speaker 2: is more important than catching every single dropped packet. Losing
- 5:25Speaker 2: a tiny fraction of data isn't critical.
- 5:27Speaker 1: There makes sense, and the last one.
- 5:29Speaker 2: Ah, Yes, ICMP, the Internet Control Message Protocol. This one
- 5:34Speaker 2: is really the tattletale of the network.
- 5:37Speaker 1: Okay.
- 5:37Speaker 2: If something goes wrong, like a port isn't reachable, or
- 5:40Speaker 2: even if a host is just a live and kicking,
- 5:42Speaker 2: ICMP messages often tell you about it. Think port unreachable
- 5:46Speaker 2: errors or the echo replies you get when you ping a.
- 5:49Speaker 1: Device right the classic ping exactly.
- 5:51Speaker 2: En map uses ICMP a lot for figuring out if
- 5:54Speaker 2: hosts are online, though many organizations do restrict ICMP in
- 5:58Speaker 2: their firewalls these days.
- 6:00Speaker 1: So NMAP has to be clever about that.
- 6:01Speaker 2: Too, oh absolutely. And what's truly clever is how NMAP
- 6:05Speaker 2: often exploits minor anomalies, tiny differences in how different operating
- 6:10Speaker 2: systems implement these standard protocols to gather its incredibly detailed information.
- 6:15Speaker 2: It's like reading between the lines of the network conversation.
- 6:18Speaker 1: That's fascinating. That's the real intelligence behind it. Okay, So
- 6:21Speaker 1: when enmap actually goes to work, what are the key
- 6:25Speaker 1: steps it usually takes to build that initial picture of
- 6:28Speaker 1: a network or a host.
- 6:29Speaker 2: Well, it follows a pretty systematic process, usually four main steps. First,
- 6:33Speaker 2: if you give it a host name like www. Dot
- 6:37Speaker 2: example dot com. MP performs a DNS look up to
- 6:40Speaker 2: resolve that name into an IP address. And remember this
- 6:44Speaker 2: step can leave traces in DNS logs.
- 6:47Speaker 1: Good points stealth consideration right there, what's next.
- 6:50Speaker 2: Second, NMAP does some form of host discovery. It's often
- 6:53Speaker 2: called a ping scan, but it's not always just a
- 6:56Speaker 2: traditional icmpping. NMP has many sophisticated ways to confirm if
- 7:01Speaker 2: the target host is actually active and online.
- 7:03Speaker 1: Okay, so it checks that the lights are on basically exactly.
- 7:05Speaker 2: Third, it often performs a reversity and S look up.
- 7:08Speaker 2: It takes the IP address it found and tries to
- 7:10Speaker 2: find the host name associated with it. This can sometimes
- 7:12Speaker 2: reveal the canonical name, which might be different from what
- 7:15Speaker 2: you initially typed in.
- 7:16Speaker 1: Interesting, and the final step.
- 7:17Speaker 2: Only after those first three preparatory steps, the reconnaissance, if
- 7:22Speaker 2: you will, does it move to the fourth and final
- 7:24Speaker 2: stage executing the actual scan. That's when it starts actively
- 7:29Speaker 2: probing for open ports, trying to identify the operating system,
- 7:34Speaker 2: detect software versions, and so on.
- 7:36Speaker 1: I see, so it does its homework before the main event.
- 7:38Speaker 1: And what's really interesting you mentioned is that you can
- 7:41Speaker 1: control almost every one of these steps absolutely to fine
- 7:43Speaker 1: tune your scan, making it as quiet or as loud
- 7:47Speaker 1: as you needed to be exactly.
- 7:49Speaker 2: That control is paramount. It lets you tailor your approach
- 7:52Speaker 2: for different network environments, different security policies, or different levels
- 7:56Speaker 2: of desired stealth.
- 7:58Speaker 1: Right. So if we connect this to the bigger picture,
- 8:00Speaker 1: ENDMAP isn't just blindly firing off packets.
- 8:02Speaker 2: No, not at all.
- 8:03Speaker 1: It's an intelligent system and it's backed by what you
- 8:06Speaker 1: called a rich Intel briefing its support files. Yeah, can
- 8:09Speaker 1: you tell us a bit about those? What kind of
- 8:11Speaker 1: Intel is in there? Yeah?
- 8:12Speaker 2: Absolutely. These files are crucial for enmap to provide its
- 8:16Speaker 2: detailed insights. They act like its reference library. For instance,
- 8:19Speaker 2: there's NMAP MAC prefixes. This file. Let's enmap identify the
- 8:23Speaker 2: hardware manufacturer just from the first few bytes of a
- 8:26Speaker 2: mass address. So if it sees a MAXC starting with
- 8:29Speaker 2: say zero point one, one point four to three, it
- 8:31Speaker 2: immediately knows, ah, that's likely Adell.
- 8:34Speaker 1: Device handy for inventory.
- 8:35Speaker 2: Very then you've got nmp OSDB and NMPOS fingerprints. These
- 8:40Speaker 2: contain massive collections of unique responses those minor anomalies we
- 8:44Speaker 2: talked about from different operating systems. That's how enmap makes
- 8:48Speaker 2: educated guesses about whether a target is running Windows, Linux,
- 8:51Speaker 2: macOS or something else entirely.
- 8:53Speaker 1: The OS fingerprinting parts precisely.
- 8:55Speaker 2: And then there's end map Service probes. This file houses
- 8:58Speaker 2: application fingerprints. It helps end up figure out not just
- 9:01Speaker 2: that something is running on a port, but what specific
- 9:04Speaker 2: application and version it is, Like is it a patche
- 9:06Speaker 2: version two point four point five to two or Microsoft
- 9:09Speaker 2: ISA ten point zero.
- 9:10Speaker 1: That's incredibly detailed it is.
- 9:12Speaker 2: And there's even that memorable anecdote about TCP port ninety
- 9:15Speaker 2: one hundred.
- 9:16Speaker 1: Oh yeah, the printer story, Uh huh yeah.
- 9:18Speaker 2: Enmap used to send probes to that port, which is
- 9:20Speaker 2: often used by network printers, and sometimes it would cause
- 9:23Speaker 2: the printers to just spew out pages and pages of
- 9:26Speaker 2: raw scan data exactly. So now endmap has an option
- 9:29Speaker 2: specifically to exclude that port by default, just to avoid
- 9:34Speaker 2: surprising the office staff with unexpected print jobs.
- 9:37Speaker 1: That printer story really illustrates the practical impact and maybe
- 9:41Speaker 1: the occasional unintended consequence of end maps intelligence. But how
- 9:45Speaker 1: does it actually gather that intelligence from live devices? That's
- 9:49Speaker 1: where it's diverse scanning methods come in right spot on.
- 9:52Speaker 2: Each method offers a unique way to peer into the network.
- 9:56Speaker 1: Professor Messer mentions over fifteen different scanning method that's a lot.
- 10:02Speaker 1: What are some of the most critical ones we should
- 10:04Speaker 1: really understand?
- 10:05Speaker 2: Yeah, there are quite a few, but a handful really
- 10:07Speaker 2: stand out because they illustrate different approaches and trade offs.
- 10:11Speaker 2: The first, and often the most preferred, especially if you
- 10:13Speaker 2: have the right permissions, is the TCP syn scan. The
- 10:17Speaker 2: command is nasha S.
- 10:19Speaker 1: Nash ss okay. Why is it preferred, Well.
- 10:22Speaker 2: It's generally the stealthiest option for users with privileged access,
- 10:25Speaker 2: meaning you have administrator or route permissions on the system
- 10:28Speaker 2: you're scanning from.
- 10:29Speaker 1: Right, you need special rights.
- 10:31Speaker 2: Yes, it's often called half open scanning. Here's why. N
- 10:35Speaker 2: MAP sends an s yn packet just like starting a
- 10:37Speaker 2: normal connection. If it gets a sign response back that
- 10:41Speaker 2: indicates the port is open okay, But then instead of
- 10:44Speaker 2: sending the final ACK to complete the connection, NMP immediately
- 10:48Speaker 2: sends a RST or reset packet. It basically hangs up
- 10:52Speaker 2: right after hearing the phone get picked up.
- 10:54Speaker 1: Ah, So it never fully connects.
- 10:56Speaker 2: Exactly, it never completes the full TCP three way handshake.
- 11:00Speaker 2: Think of it like knocking on a door. Hearing someone
- 11:02Speaker 2: say come in and then immediately backing away. So it's quiet,
- 11:06Speaker 2: very quiet from the applications perspective. Since the connection isn't
- 11:09Speaker 2: fully established, the target application often doesn't even log the attempt.
- 11:14Speaker 2: Makes it very hard to detect on the server side
- 11:16Speaker 2: through normal logs.
- 11:17Speaker 1: Right nas SS the default for privileged users. What if
- 11:20Speaker 1: you don't have those privileges.
- 11:22Speaker 2: Right for non privileged users, or maybe when an syn
- 11:25Speaker 2: scan just isn't feasible for some reason, there's the TCP
- 11:28Speaker 2: connect scan. That's sast S connect scan yep. This scan
- 11:33Speaker 2: uses the operating system's standard connect system call to try
- 11:36Speaker 2: and establish a full connection. It performs the complete three
- 11:40Speaker 2: way handshake, just like any normal application like your web
- 11:43Speaker 2: browser connecting to a website.
- 11:45Speaker 1: Okay, so it fully connects.
- 11:46Speaker 2: What's the downside, Well, the downside is that it's much louder.
- 11:50Speaker 2: Because it establishes a full connection, the target application will
- 11:53Speaker 2: see it and will likely log it. So if stealth
- 11:56Speaker 2: is a priority, this is often considered the scam of
- 11:59Speaker 2: last resort.
- 12:00Speaker 1: Makes sense louder but doesn't need special permissions.
- 12:03Speaker 2: What else, then we have a really interesting family of scans,
- 12:05Speaker 2: often just called stealth scans. These include the sin scan
- 12:10Speaker 2: dash SF, the Xmas tree scan dash SX, and the
- 12:13Speaker 2: null scans.
- 12:14Speaker 1: Dashes N Xmas tree. That's a name, haha.
- 12:17Speaker 2: Yeah, it gets its name because it sets a bunch
- 12:19Speaker 2: of flags in the TCP header fin psh RG, lighting
- 12:23Speaker 2: it up like a Christmas tree. Supposedly.
- 12:25Speaker 1: Okay, so what do these do?
- 12:26Speaker 2: These are incredibly quiet. They send these unusual TCP package
- 12:30Speaker 2: just a FIN flag or just nothing null or the
- 12:33Speaker 2: Xmas combo without any syn first, no handshake involved at all.
- 12:36Speaker 1: And the idea is the.
- 12:38Speaker 2: Idea based on the TCP standards, is that if a
- 12:41Speaker 2: port is closed, the receiving system should respond with the
- 12:44Speaker 2: RST packet. If the port is open, it should just
- 12:47Speaker 2: drop the weird packet and send nothing back. So no
- 12:50Speaker 2: response means potentially open. They're designed to fly under the radar,
- 12:54Speaker 2: often won't trigger application logs because no connection is attempted.
- 12:58Speaker 1: This sounds super stealthy.
- 13:00Speaker 2: But there's a catch, right, There is a big catch,
- 13:02Speaker 2: and this is where it gets really interesting. They are
- 13:05Speaker 2: largely ineffective against Windows based systems. Why is that Microsoft
- 13:11Speaker 2: decided way back not to implement that part of the
- 13:14Speaker 2: TCP standards strictly so Window systems will typically send back
- 13:17Speaker 2: a RST for all ports when scanned with these fan
- 13:21Speaker 2: x MISS or null methods, regardless of whether the port
- 13:23Speaker 2: is actually open or close.
- 13:25Speaker 1: So scanning Windows with these just shows everything is closed.
- 13:28Speaker 2: Pretty much, which means if you do run one of
- 13:31Speaker 2: these scans and you actually see open ports reported h,
- 13:34Speaker 2: then you.
- 13:34Speaker 1: Can be freely certain the target is not Windows exactly.
- 13:37Speaker 2: It becomes a sort of reverse OS finger printing technique,
- 13:40Speaker 2: and like the syn scan, these also require privileged access
- 13:44Speaker 2: to craft those custom packets.
- 13:45Speaker 1: Fascinating. Okay, what about that really clever sounding one, the
- 13:49Speaker 1: idle scan?
- 13:50Speaker 2: Ah, Yes, Idle stan dash I. This one is truly ingenious.
- 13:55Speaker 2: It lets you scan a remote target without sending any
- 13:58Speaker 2: packets directly from your own IP address to that target.
- 14:02Speaker 1: How's that even possible?
- 14:03Speaker 2: It uses a zombie workstation, basically another machine on the Internet,
- 14:07Speaker 2: ideally one that's not doing much traffic, hence idle.
- 14:10Speaker 1: Okay, zombie.
- 14:12Speaker 2: Your n map station sends packets to the zombie, but
- 14:15Speaker 2: spoofs the source address so they look like they came
- 14:17Speaker 2: from the target. Then n map observes how the zombie's
- 14:20Speaker 2: IP identification number changes in response based on those subtle changes,
- 14:25Speaker 2: en map can deduce whether the target machine responded to
- 14:27Speaker 2: probes that were seemingly sent by the zombie.
- 14:30Speaker 1: WHOA, okay, let me process that you bounce the scan
- 14:33Speaker 1: off an intermediate idle machine.
- 14:35Speaker 2: Essentially, yes, you're making it appear as if the scam
- 14:38Speaker 2: originates entirely from the zombie, not from you. It's incredibly
- 14:43Speaker 2: stealthy for hiding your end map station's IP address. What
- 14:46Speaker 2: are the requirements, Well, the main one is finding a
- 14:49Speaker 2: suitable zombie, a machine that's truly idle and has a
- 14:52Speaker 2: predictable IPID sequence number generation. That can be tricky. And
- 14:57Speaker 2: again you need privileged access for the IP spoofing part.
- 15:00Speaker 1: Wow, that's some advanced stuff. One more, maybe the ACK.
- 15:04Speaker 2: Scan right, the ACK scan desha This one is different again,
- 15:07Speaker 2: it's like taking an X ray.
- 15:08Speaker 1: Of a firewall MX ray.
- 15:10Speaker 2: Yeah, it sends a TCP packet with only the ACK
- 15:13Speaker 2: flag set. Now, according to TCP rules, an ACK packet
- 15:17Speaker 2: should only be sent in response to an established connection,
- 15:20Speaker 2: so sending one out of the blue is unusual.
- 15:22Speaker 1: And how do systems react if the.
- 15:24Speaker 2: Packet reaches the target host, meaning it wasn't blocked by
- 15:27Speaker 2: a firewall. The host should respond with an RST packet
- 15:30Speaker 2: because there's no actual connection corresponding to that ACK. If
- 15:33Speaker 2: a firewall blocks the ACK packet, you'll get no response
- 15:36Speaker 2: back or maybe an ICMP error.
- 15:38Speaker 1: So it didn't tell you if the port is open
- 15:39Speaker 1: or closed.
- 15:40Speaker 2: Correct, it tells you if the port is filtered, blocked
- 15:44Speaker 2: by a firewall, or unfiltered reachable by the ACK packet.
- 15:48Speaker 2: It's fantastic for mapping out firewall rule sets, understanding what
- 15:52Speaker 2: kind of traffic the firewall permits through without triggering any application.
- 15:55Speaker 2: Logs on the actual target system behind the.
- 15:58Speaker 1: Firewall useful for understanding defenses. And this needs privileged access to.
- 16:04Speaker 2: Yes, it does to craft that specific ACK packet.
- 16:07Speaker 1: Okay, So we have these different scan types, some stealthier
- 16:10Speaker 1: than others. Now, if you want to become a true
- 16:12Speaker 1: network ninja, you know, gathering intelligence without leaving footprints, and
- 16:17Speaker 1: MAP offers this incredible array of options to control your
- 16:20Speaker 1: scans behavior even further, How can we really minimize our
- 16:23Speaker 1: presence expert?
- 16:24Speaker 2: Right? This is where nmp's precision tuning comes in. There
- 16:27Speaker 2: are several key tactics. First, remember those initial steps end
- 16:30Speaker 2: map takes one was host discovery often a ping. By default,
- 16:35Speaker 2: end map pings to confirm a host is alive before
- 16:37Speaker 2: launching the main scan. But if stealth is your primary goal,
- 16:41Speaker 2: or maybe you already know the host is up from
- 16:43Speaker 2: priory come you skip the ping exactly. You can tell
- 16:46Speaker 2: en map not to ping before scanning. The option is
- 16:49Speaker 2: EEDP zero or edd b N. This removes that initial
- 16:54Speaker 2: hello conversation, minimizes your network traffic right at the start.
- 16:58Speaker 2: M potentially avoids detection by SISS that might be watching
- 17:01Speaker 2: for pink sweeps. A good ninja, as the saying goes
- 17:04Speaker 2: already did their homework makes sense.
- 17:06Speaker 1: Less chatter is better. What else?
- 17:07Speaker 2: Another tactic involves DNS. Remember n map often does reverse DNS.
- 17:12Speaker 1: Lockups yeah to get host names from IPS.
- 17:14Speaker 2: Well, those lookups can be slow, and more importantly, they
- 17:17Speaker 2: get logged by the DNS servers being queried. So if
- 17:20Speaker 2: you want to keep your activity off those DNS logs,
- 17:22Speaker 2: you can use the nyn option to disable reverse DNS lockups.
- 17:26Speaker 1: Entirely none for no name resolution.
- 17:28Speaker 2: Precisely, or for the truly meticulous ninja, you might prepopulate
- 17:32Speaker 2: your local hosts file with the target IPS and names.
- 17:35Speaker 2: That way, the resolution happens entirely on your machine, completely
- 17:38Speaker 2: off the network.
- 17:39Speaker 1: Very stealthy. Okay, what about speed versus stealthy?
- 17:42Speaker 2: Ah, that's where timing policies come in. NMP gives you
- 17:45Speaker 2: amazing control over how fast or slow your scan runs
- 17:49Speaker 2: using the NST option followed by a number from zero
- 17:51Speaker 2: to five or a name like.
- 17:53Speaker 1: The SC zero or an AST five exactly.
- 17:56Speaker 2: Nakshi zero is paranoid. It's incredibly slow. End map inserts
- 18:00Speaker 2: significant delays, sometimes up to five minutes between sending probes.
- 18:04Speaker 1: Five minutes between packets. Wow.
- 18:07Speaker 2: Yeah, it makes the scan take forever, but it's almost
- 18:09Speaker 2: undetectable by rate based intrusion detection systems. On the other extreme,
- 18:14Speaker 2: natchy st five is insane, lightening fast, very aggressive, sense
- 18:19Speaker 2: packets as quickly as.
- 18:20Speaker 1: Possible, which could easily trigger alarms.
- 18:22Speaker 2: Oh definitely. But these timing policies are invaluable. You can
- 18:26Speaker 2: use them to gently probe a network without causing disruption.
- 18:29Speaker 2: Nashty two two or polite is off the good. Or
- 18:33Speaker 2: you can use the faster modes to say, stress test
- 18:35Speaker 2: an intrusion detection or prevention system IDSP and see at
- 18:39Speaker 2: what point it actually triggers Understanding those thresholds.
- 18:42Speaker 1: Is crucial, so you can dial the aggression up or down.
- 18:44Speaker 1: Oh cool, I heard. You can also use decoys make
- 18:47Speaker 1: it look like the scan is coming from somewhere else.
- 18:48Speaker 2: Yes, that's the decoys option, Ashid. This is quite clever.
- 18:52Speaker 2: You provide enmat with a list of IP addresses the
- 18:54Speaker 2: decoys along with your own real IP, or you can
- 18:57Speaker 2: use me to represent your IP NMP, then send scan
- 19:00Speaker 2: packets seemingly originating from all those decoy addresses, mixed in
- 19:04Speaker 2: with packets from your real address. The idea is to
- 19:07Speaker 2: flood the logs with bogus source ips, making it much
- 19:10Speaker 2: harder for network defenders to figure out where the actual
- 19:13Speaker 2: scan originated.
- 19:14Speaker 1: So you hide in the noise you create.
- 19:16Speaker 2: Pretty much. You can even omit your real IP entirely,
- 19:19Speaker 2: though that's obviously less useful if you need replies back.
- 19:23Speaker 2: There's a caution here though, If you use decoyips that
- 19:27Speaker 2: don't actually exist or belong to machines that aren't online,
- 19:30Speaker 2: you could inadvertently cause a s yn flood on your target,
- 19:35Speaker 2: because the target might try to send soyanac replies back
- 19:38Speaker 2: to those non existent decoys using up its own resources
- 19:41Speaker 2: waiting for ACKs that will never arrive. It could potentially
- 19:44Speaker 2: disrupt the target's service, so use decoys responsibly. And yes,
- 19:48Speaker 2: this needs privileged access for the IP spoofing.
- 19:50Speaker 1: Good warning. Okay, what about hiding on the local network right?
- 19:54Speaker 2: For local network steff Within the same subnet, you can
- 19:56Speaker 2: spoof your MME address using.
- 19:58Speaker 1: Spoofback your hardware address.
- 20:00Speaker 2: Yep, you can tell n map to use a completely
- 20:03Speaker 2: random MC address or even mimic the MSS address of
- 20:06Speaker 2: a specific vendor, like making your laptop look like a
- 20:10Speaker 2: Cisco router on the wire. Why only local because MC
- 20:13Speaker 2: addresses are generally only relevant on the local network segment.
- 20:16Speaker 2: When packets go through a router to another network, the
- 20:19Speaker 2: router usually strips off the original MC and puts its
- 20:22Speaker 2: none on, So spoofing your MC won't help hike you
- 20:26Speaker 2: once your traffic leaves your local subnet. And again privileged
- 20:29Speaker 2: access is needed as this involves sending raw ethernet frames directly.
- 20:33Speaker 1: Got it local effect only any other subtle tricks?
- 20:37Speaker 2: Yeah, A couple more quick ones. You can use fragmented
- 20:40Speaker 2: IP packets dash FF or FF or M two. This
- 20:43Speaker 2: breaks your probe packets into smaller pieces, sometimes very simple
- 20:47Speaker 2: packet filters or firewalls might only inspect the first fragment
- 20:50Speaker 2: and miss the real intent if it's split across multiple parts.
- 20:53Speaker 2: It's an older trick, less effective now but still available.
- 20:56Speaker 1: Trying to sneak past simple guards sort of.
- 20:58Speaker 2: And you can also set a custom time to live
- 21:00Speaker 2: TTL for your packets using Chittle. The TTL value basically
- 21:04Speaker 2: determines how many router hawks a packet is allowed to
- 21:07Speaker 2: take before it's discarded.
- 21:08Speaker 1: Okay.
- 21:09Speaker 2: By setting a low TTL, you can ensure your scan
- 21:12Speaker 2: probes don't travel too far. For instance, you could limit
- 21:15Speaker 2: them so they don't leave your local network or don't
- 21:18Speaker 2: cross a specific WAN link. It's a way to keep
- 21:20Speaker 2: your scan localized.
- 21:22Speaker 1: Subtle controls for scope in evasion. It's quite an arsenal,
- 21:25Speaker 1: it really is. Now. It's probably worth noting just quickly
- 21:28Speaker 1: that NMAP, while it works incredibly well on Windows, does
- 21:31Speaker 1: face some maybe minor limitations there compared to Linux or macOS.
- 21:36Speaker 2: That's fair to say. Historically, things like the raw socket
- 21:39Speaker 2: implementation on Windows meant certain scan types, particularly the TCP
- 21:43Speaker 2: connect scan, were a bit slower than their counterparts on
- 21:47Speaker 2: PO six systems like Linux and some advanced features like
- 21:50Speaker 2: SSL version detection might not have been available or as
- 21:53Speaker 2: robust initially.
- 21:54Speaker 1: But it still works very well.
- 21:55Speaker 2: Oh absolutely. It's truly a testament to Feodor and the
- 21:58Speaker 2: en map development community that it works as well as
- 22:01Speaker 2: it does across such a wide range of platforms, including Windows.
- 22:04Speaker 2: They've done a remarkable job.
- 22:05Speaker 1: Agreed. So okay, we've covered the tool, the techniques, the scalf.
- 22:10Speaker 1: What does this all mean for you, the listener, the
- 22:12Speaker 1: learner out in the real world. Endmap isn't just for
- 22:15Speaker 1: theoretical hacking exercises, right, not at all.
- 22:18Speaker 2: It's an indispensable day to day tool for network administrators, security, professional,
- 22:23Speaker 2: system engineers, really anyone responsible for understanding and securing a network.
- 22:28Speaker 2: It has countless practical, legitimate uses.
- 22:31Speaker 1: Let's run through a few compelling use cases. Then. How
- 22:34Speaker 1: would you use end map at a real world scenario?
- 22:37Speaker 1: For instance, maybe identifying virus or spyware remnants?
- 22:41Speaker 2: Okay, yeah, good one. Let's say you suspect some machines
- 22:43Speaker 2: might be infected with malware, maybe something older like my
- 22:46Speaker 2: Doom or netbus, which were known to open specific ports.
- 22:50Speaker 2: You could use end map to scan your network specifically
- 22:53Speaker 2: for those ports. You'd likely combine a stealthy TCP syn scans,
- 22:58Speaker 2: maybe a UDP scan at Dutch SU. The malware use
- 23:00Speaker 2: that focusing just on the suspect ports DUSHPT dot port
- 23:04Speaker 2: one doutch SV. You probably want host discovery Dutch PE
- 23:07Speaker 2: for ICMT echo could work, and crucially you'd add version
- 23:10Speaker 2: detection Dutch SV.
- 23:11Speaker 1: Why version detection there.
- 23:13Speaker 2: Because dashesv could help pinpoint the exact malicious application listening
- 23:17Speaker 2: on that port, even if it's trying to disguise itself.
- 23:19Speaker 2: It helps confirm its malware and not some legitimate unexpected service.
- 23:23Speaker 2: Then you can quickly isolate those machines.
- 23:25Speaker 1: Nice, Okay, how about vulnerability assessments checking for known weaknesses?
- 23:30Speaker 2: Definitely, say there's a known vulnerability in a specific version
- 23:33Speaker 2: of Microsoft SQL server, maybe related to its discovery service
- 23:36Speaker 2: on UDP port fourteen thirty four. Version detection dashes V
- 23:40Speaker 2: is absolutely key y Here, you'd craft an NMP command
- 23:43Speaker 2: to scan a list of your servers dashisl input dot
- 23:46Speaker 2: LST maybe excluding known good ones, exclude bashviileband dot LSD,
- 23:50Speaker 2: specifically probing UDP port fourteen three four DASH and you
- 23:53Speaker 2: bought one four three four, you'd probably disabled DNS lorge
- 23:56Speaker 2: N for speed and stealth. Maybe add verbosity dash VV
- 24:00Speaker 2: and ensure host discovery DASHIL. The command might look something
- 24:03Speaker 2: like n map dosh vvvsh SZ input dot LSD, exclude
- 24:07Speaker 2: file band dot l stgu dot one four three four
- 24:09Speaker 2: dash NA s qu l s v r SSV, and
- 24:12Speaker 2: the nashes.
- 24:12Speaker 1: Fee gives you the precise version info exactly.
- 24:15Speaker 2: It tells you which servers are running that potentially vulnerable version,
- 24:18Speaker 2: allowing you to prioritize patching. It's like finding all the
- 24:20Speaker 2: houses on your block with a specific model of old
- 24:23Speaker 2: easily picked block.
- 24:24Speaker 1: Great analogy. What about security policy compliance testing? Making sure
- 24:28Speaker 1: only approved stuff is running?
- 24:30Speaker 2: Another big one. You need to ensure only approved operating
- 24:33Speaker 2: systems and software versions are present on your network.
- 24:36Speaker 1: How does en map help there?
- 24:37Speaker 2: You'd combine several things, maybe multiple ping types to maximize
- 24:40Speaker 2: host discovery dash PA eighty, SHP DASH twenty three, a
- 24:44Speaker 2: broad PCP s y N scan dash SS to find
- 24:48Speaker 2: open ports and crucially OS fingerprinting too to identify the
- 24:53Speaker 2: operating system right and for large networks, Professor Messer suggests
- 24:57Speaker 2: using a scan limit. This tells to only attempt the
- 25:01Speaker 2: more intensive OS finger printing on hosts that look promising,
- 25:04Speaker 2: specifically hosts that show at least one open and one
- 25:08Speaker 2: closed TCP port. This improves the accuracy of the guests
- 25:11Speaker 2: without scanning every single device quite as intensely smart optimization.
- 25:15Speaker 1: Yeah, okay, what if you need to manage assets across
- 25:17Speaker 1: slow links like a remote office connected via.
- 25:19Speaker 2: One, Yeah, you need in inventory devices there, but you
- 25:21Speaker 2: can't just blast the network. It'll kill the link or
- 25:23Speaker 2: set off alarms, So be gentle, exactly. You'd use a
- 25:26Speaker 2: very gentle approach, maybe just a ping scan just misspe
- 25:29Speaker 2: to see what's alive, or a very slow tcpsyn scan dashass.
- 25:35Speaker 2: Combine it with OS fingerprinting to get basic device info,
- 25:39Speaker 2: and definitely use a slow, non aggressive timing policy like
- 25:42Speaker 2: Polite Dataity Polite or even nash T two. It'll work
- 25:46Speaker 2: slowly passively in the background, collecting valuable asset data over
- 25:49Speaker 2: that WAN link without disrupting normal traffic.
- 25:52Speaker 1: Patient and passive. Good for remote sites. How about checking
- 25:55Speaker 1: the firewall itself?
- 25:56Speaker 2: Firewall auditing essential task. You need to understand what your
- 26:00Speaker 2: firewall truly allows from an external perspective, not just what
- 26:03Speaker 2: the config file says it allows.
- 26:05Speaker 1: So test it live.
- 26:06Speaker 2: Yep, use the ack scan dashi taissa. Remember this tells
- 26:09Speaker 2: you filtered versus unfiltered ports that directly maps to the
- 26:13Speaker 2: firewalls rules. You'd likely disable the initial ping dashes misero
- 26:16Speaker 2: or dash PN because you want to hit the firewall directly.
- 26:19Speaker 2: And maybe if you're trying to analyze the traffic later
- 26:22Speaker 2: with something like wireshark, you'd tell end map not to
- 26:24Speaker 2: randomize the source ports so the connections are easier to
- 26:26Speaker 2: follow in the packet capture.
- 26:28Speaker 1: Uh are for easier debugging later. Clever okay. Last one
- 26:33Speaker 1: perpetual network auditing, like continuously monitoring for changes.
- 26:38Speaker 2: Yeah, this is about ongoing vigilance. Setting up a recurring
- 26:41Speaker 2: end map scan to keep an eye on your network
- 26:42Speaker 2: over time, looking for new devices popping up or services
- 26:46Speaker 2: changing unexpectedly.
- 26:47Speaker 1: How would you configure that.
- 26:48Speaker 2: You'd want it to be very low impact, so probably
- 26:51Speaker 2: a TCP syn scan dash SS. Definitely include OS fingerprinting
- 26:56Speaker 2: to track device types, use a polite timing policy nash
- 26:59Speaker 2: is T two again, and maybe use randomized hosts to
- 27:02Speaker 2: scan the targets in a random order each time. This
- 27:04Speaker 2: keeps the stand passive, spreads the load out and gathers
- 27:07Speaker 2: information over days or weeks, without any single burst of
- 27:10Speaker 2: activity that might cause disruption or look suspicious. It becomes
- 27:13Speaker 2: part of the background noise.
- 27:15Speaker 1: Wow, what an incredible journey into the world of endmap. Yeah,
- 27:17Speaker 1: we've really seen how this one tool acts as your
- 27:21Speaker 1: network's eyes and ears, from silently mapping out devices to
- 27:24Speaker 1: precisely identifying software versions and operating systems.
- 27:27Speaker 2: It really does.
- 27:28Speaker 1: It's truly a cornerstone, isn't it for network pros, security folks,
- 27:32Speaker 1: anyone wanting to truly understand their digital environment.
- 27:34Speaker 2: Indeed, and I think end Map's real power lies in
- 27:37Speaker 2: its adaptability, its flexibility, and fundamentally its ability to turn
- 27:42Speaker 2: those subtle network behaviors the way a system responds to
- 27:45Speaker 2: a weird packet, the tiny timing differences into profound insights. Yeah,
- 27:50Speaker 2: it really encourages you, forces you almost to think critically
- 27:53Speaker 2: about how information flows online and how even the smallest details,
- 27:58Speaker 2: the slightest variations from the stand can reveal crucial vulnerabilities
- 28:02Speaker 2: or compliance issues. It's a constant reminder that understanding the
- 28:07Speaker 2: underlying protocols is absolutely paramount to true network security.
- 28:11Speaker 1: Absolutely, And as we said earlier, with great power comes
- 28:14Speaker 1: great responsibility. Using end map wisely ethically, it can transform
- 28:18Speaker 1: you into a true network cartographer, making your digital world
- 28:21Speaker 1: safer and definitely more transparent.
- 28:24Speaker 2: And maybe here's a provocative thought for you, the listener,
- 28:26Speaker 2: to consider as we wrap up. If nmap, this tool
- 28:29Speaker 2: we've been talking about, can uncover so much detailed information
- 28:32Speaker 2: about a system, it's OS, its services, its potential weaknesses
- 28:36Speaker 2: without ever needing to log in, without needing any credentials.
- 28:41Speaker 2: What does that tell you about the fundamental transparency and
- 28:44Speaker 2: maybe the potential fragility of pretty much every single device
- 28:46Speaker 2: connected to the Internet today.
- 28:49Speaker 1: That is something to think about, the inherent visibility of
- 28:52Speaker 1: being online. Great point, something to mull over indeed. Yeah, well,
- 28:55Speaker 1: until next time, keep exploring, keep questioning, and stay well informed.