Nmap and Scanning Review Quiz Flashcards
Which type of hacker is considered unethical?
- White Hat
- Grey Hat
- Black Hat
- Blue Hat
3. Black Hat
What is the main difference between ethical and malicious hackers?
- Ethical hackers have written permission
- Ethical hackers have verbal permission
- Ethical hackers don’t use real exploits
- Malicious hackers never perform information gathering
1. Ethical hackers have written permission
Which type of testing takes place when pentesters have no knowledge of the target network?
- Grey Box
- Black Box
- White Box
- Blind test
2. Black Box
Suppose an attacker alters the contents of two files on the server. Which of the following best describes what was compromised?
- Authentication
- Confidentiality
- Integrity
- Availability
3. Integrity
Which of the following is _not_ a part of information gathering?
- Host Discovery
- Finding Physical Addresses
- Spidering the Client’s Website
- Exploiting a Database Server
- Exploiting a Database Server
A SYN Scan is used in which kind of reconnaissance?
- Active Reconnaissance
- Passive Reconnaissance
- Open Source Information Gathering
- Internal Reconnaissance
1. Active Reconnaissance
An ICMP Type 8 message indicates which of the following?
- Ping Request
- Router Advertisement
- Host Unreachable Message
- TTL Failure
1. Ping Request
Suppose you run a SYN scan against a target host. Which of the following best describes the state of connections to the target machine after the scan?
- Half-Open
- Fully Open
- Full Duplex
- Half Duplex
1. Half-Open
Which of the following is a Layer 2 attack?
- ARP Spoofing
- SQL Injection
- BGP Hijacking
- Ping Sweep
1. ARP Spoofing
Which of the following Nmap flags is used for OS fingerprinting?
- -A
- oN
- -sS
- sU
- -A
Identify what the following Nmap command does: nmap -sn 192.168.12.0/24
- Port-Scan all devices in `192.168.12.0/24
- Perform a UDP scan on `192.168.12.0/24
- Service-Scan `192.168.12.0/24
- Perform a Ping Sweep on `192.168.12.0/24
- Perform a Ping Sweep on `192.168.12.0/24
Suppose you run the following command. If port 22 is open, which TCP flag is set on the response?
bash $ nmap -sS -p 22 192.168.12.7
- ACK
- SYN
- RST
- URG
- SYN
Which argument will be used for OS detection in Nmap?
- -G
- -L
- -S
- -O
- -O
What will the following nmap command accomplish?
NMAP -sS -O -p 123,153 192.168.100.4
- A stealth scan, opening port 123 and 153
- A stealth scan, determine the operating system, and scanning of ports 123 and 153
- A stealth scan checking all open ports excluding ports 123 and 153
2. A stealth scan, determine the operating system, and scanning of ports 123 and 153
Regarding port enumeration, which port does DNS zone transfer use?
- UDP port 161
- TCP/UDP port 389
- TCP port 137
- TCP port 53