nerdexam
CompTIA

PT0-001 · Question #146

A penetration tester, who is not on the client's network. is using Nmap to scan the network for hosts that are in scope. The penetration tester is not receiving any response on the command: nmap…

The correct answer is A. nmap -Pn -sT 100.100.1.0-125. When Nmap returns no results from an external network, the -Pn flag is required to bypass host discovery by assuming all hosts are online, combined with -sT for a reliable TCP connect scan.

Reconnaissance and enumeration

Question

A penetration tester, who is not on the client's network. is using Nmap to scan the network for hosts that are in scope. The penetration tester is not receiving any response on the command:

nmap 100.100/1/0-125 Which of the following commands would be BEST to return results?

Options

  • Anmap -Pn -sT 100.100.1.0-125
  • Bnmap -sF -p 100.100.1.0-125
  • Cnmap -sV -oA output 100.100.10-125
  • Dnmap 100.100.1.0-125 -T4

How the community answered

(42 responses)
  • A
    83% (35)
  • B
    10% (4)
  • C
    5% (2)
  • D
    2% (1)

Why each option

When Nmap returns no results from an external network, the -Pn flag is required to bypass host discovery by assuming all hosts are online, combined with -sT for a reliable TCP connect scan.

Anmap -Pn -sT 100.100.1.0-125Correct

The -Pn flag skips ICMP-based ping host discovery and treats every target address as alive, which is essential when firewalls block ICMP packets from external networks. The -sT flag performs a full TCP three-way handshake connect scan that works reliably from outside the target network without requiring raw socket privileges. Together they resolve the most common causes of no response when scanning from a remote, untrusted network.

Bnmap -sF -p 100.100.1.0-125

The -sF (FIN scan) is often dropped by stateful firewalls and the -p flag requires a port number argument, making this command syntactically invalid and unreliable from an external position.

Cnmap -sV -oA output 100.100.10-125

The -sV flag adds service version detection and -oA saves output in multiple formats, but neither flag addresses the host discovery blockage that is causing the lack of response.

Dnmap 100.100.1.0-125 -T4

The -T4 flag sets an aggressive timing template to increase scan speed, but it does not resolve the underlying issue of ICMP-based discovery being filtered by external firewalls.

Concept tested: Nmap host discovery bypass using -Pn from external network

Source: https://nmap.org/book/man-host-discovery.html

Topics

#Nmap#host discovery#firewall evasion#-Pn flag

Community Discussion

No community discussion yet for this question.

Full PT0-001 Practice