0
0
Cybersecurityknowledge~20 mins

Port scanning with Nmap in Cybersecurity - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Nmap Port Scanning Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📋 Factual
intermediate
2:00remaining
What does the Nmap command nmap -sS 192.168.1.1 perform?

Choose the correct description of what the command nmap -sS 192.168.1.1 does.

Cybersecurity
nmap -sS 192.168.1.1
APerforms a TCP SYN scan to check open ports on the target IP 192.168.1.1
BPerforms a UDP scan to check open UDP ports on the target IP 192.168.1.1
CPerforms a full TCP connect scan on all ports of 192.168.1.1
DPerforms a ping sweep to check if the host 192.168.1.1 is alive
Attempts:
2 left
💡 Hint

The -sS option is a common scan type in Nmap that uses a stealthy method.

🧠 Conceptual
intermediate
2:00remaining
Which Nmap option is used to scan only specific ports?

Identify the correct Nmap option to scan only ports 22, 80, and 443 on a target.

A-sP 22,80,443
B-p 22,80,443
C-T 22,80,443
D-oN 22,80,443
Attempts:
2 left
💡 Hint

Look for the option that specifies ports directly.

🔍 Analysis
advanced
2:00remaining
What is the main difference between nmap -sS and nmap -sT scans?

Analyze the difference in behavior between the two scan types and select the correct statement.

A<code>-sS</code> scans all ports; <code>-sT</code> scans only top 1000 ports
B<code>-sS</code> scans UDP ports; <code>-sT</code> scans TCP ports
C<code>-sS</code> performs a ping scan; <code>-sT</code> performs a SYN scan
D<code>-sS</code> performs a stealthy SYN scan without completing TCP handshake; <code>-sT</code> performs a full TCP connect scan completing the handshake
Attempts:
2 left
💡 Hint

Consider how each scan interacts with the TCP handshake process.

Reasoning
advanced
2:00remaining
If you want to scan a target without sending any packets that establish a full TCP connection, which Nmap scan should you use?

Select the Nmap scan type that avoids completing the TCP handshake to reduce detection risk.

A-sS (SYN scan)
B-sT (TCP connect scan)
C-sU (UDP scan)
D-sA (ACK scan)
Attempts:
2 left
💡 Hint

Think about which scan sends SYN packets but does not complete the handshake.

Comparison
expert
2:00remaining
Given the Nmap output below, which port is confirmed open and why?
PORT    STATE  SERVICE
22/tcp  open   ssh
80/tcp  filtered http
443/tcp closed https

Analyze the port states and select the correct explanation for the open port.

APort 80 is open because filtered means it is reachable
BPort 443 is open because it is closed but responds to probes
CPort 22 is open because Nmap received a response indicating the port is accepting connections
DPort 80 is open because it is filtered and may be open or closed
Attempts:
2 left
💡 Hint

Recall what 'open', 'filtered', and 'closed' mean in Nmap results.