About this exam
This is the knowledge exam for version 13 of EC-Council's Certified Ethical Hacker (CEH); the official exam code is 312-50. It covers reconnaissance, scanning, vulnerability analysis, system hacking, attacks on web applications, wireless and cloud, and cryptography, from the standpoint of understanding attacker techniques in order to defend against them.
Try a sample question
This is an original sample question written by itmoshi based on the exam objectives.
As part of an authorized assessment, a penetration tester uses Nmap on an internal Linux jump server to scan the TCP ports of a target host. The tester's account has neither root nor sudo rights and cannot send raw packets. Under these conditions, which scan is appropriate for finding out which TCP ports on the target are open?
- Anmap -sS (TCP SYN scan)
- Bnmap -sA (TCP ACK scan)
- Cnmap -sT (TCP connect scan)
- Dnmap -sU (UDP scan)
Show answer and explanation
Answer:C The TCP connect scan (-sT), which uses the OS connect() call, finds open TCP ports without special privileges.
Why it is correct
-sT opens connections through the operating system's normal socket API (connect()), so it needs no privilege to create raw sockets. A successful connect() means the port is open; a connection-refused result means it is closed. Because connections are completed it is more likely to be logged by the target, but it is the method that can determine open TCP ports under these conditions.
The other options
- ✗ A A SYN scan is a half-open scan that never completes the connection; it crafts its own packets and therefore needs root or similar privileges. It is the default choice when you have privileges and want to avoid completing connections.
- ✗ B An ACK scan also uses raw packets and needs privileges, and its results are only filtered/unfiltered, so it cannot tell whether a port is open. It is used to map firewall rules and see whether a firewall is stateful.
- ✗ D A UDP scan targets UDP ports rather than TCP (and on Linux it also needs privileges). It is for finding UDP services such as DNS or SNMP.
Key takeaway
Nmap scan types: privileged and quieter → -sS. Unprivileged → -sT. Mapping firewall rules → -sA. UDP services → -sU. Narrow it down by your privileges and what you need to learn.
Try 33 questions like this for free
Most frequent topics
- Passive and active reconnaissance45 questions
- Identifying common web vulnerabilities45 questions
- Network scanning28 questions
- Applying cryptographic algorithms22 questions
- Vulnerability classification and prioritization21 questions
- Understanding evasion techniques19 questions
Number of questions per topic among the 327 in this bank (top topics), as classified by itmoshi.
Exam domains
- Introduction to Ethical Hacking11 questions
- Reconnaissance and Footprinting45 questions
- Scanning and Enumeration28 questions
- Vulnerability Analysis21 questions
- Web Application Security45 questions
- System Hacking12 questions
- Malware Threats16 questions
- Sniffing and Man-in-the-Middle Attacks11 questions
- Social Engineering14 questions
- Denial-of-Service Attacks14 questions
- Session Hijacking7 questions
- Evading Firewalls and IDS/IPS19 questions
- Hacking Wireless Networks9 questions
- Hacking Mobile Platforms9 questions
- Cryptography22 questions
- Cloud Computing Security19 questions
- Penetration Testing15 questions
- Emerging Threats and Defense Strategies10 questions
← All exams
itmoshi is an unofficial study service and is not affiliated with EC-Council or any exam provider.