Courseiva
Enumeration and System HackingeasyMultiple ChoiceObjective-mapped

CEH Enumeration and System Hacking Practice Question

Which of the following tools is specifically used to enumerate SMB shares and retrieve file listings from Windows systems?

⚠ Common exam trap

Many exam-takers confuse nmap's ability to detect SMB services with the actual enumeration of shares and file listings, but nmap requires specific NSE scripts and does not provide the direct interactive file listing capability that smbclient offers.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

smbclient

smbclient is a tool from the Samba suite specifically designed to interact with SMB/CIFS shares. It allows an attacker to enumerate available shares on a Windows target and retrieve file listings by connecting to the SMB service (port 445 or 139) using commands like 'smbclient -L //target' or by mounting a share and listing its contents.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ldapsearch

    Why it's wrong here

    ldapsearch is a command-line utility specifically designed for querying Lightweight Directory Access Protocol (LDAP) directories. It allows users to search for, retrieve, and modify information stored in an LDAP server, such as user accounts, groups, and network resources. While it's crucial for enumerating LDAP-based services like Active Directory, it has no functionality for interacting with or enumerating Server Message Block (SMB) shares.

  • snmpwalk

    Why it's wrong here

    snmpwalk is a tool used to query devices that support the Simple Network Management Protocol (SNMP). It systematically retrieves all or a portion of the Management Information Base (MIB) tree from an SNMP agent, providing details about network device configurations, status, and performance. This tool is entirely focused on SNMP-specific data and cannot be used to discover or list SMB shares on a target system.

  • smbclient

    Why this is correct

    smbclient is a powerful command-line utility that acts as an SMB/CIFS client, similar to a Windows file explorer. It is specifically designed to interact with SMB servers, allowing users to list available shares on a target machine using the "-L" option, connect to specific shares, and browse, upload, or download files. Its direct capability to query and display network shares makes it the most appropriate tool for SMB enumeration.

  • nmap

    Why it's wrong here

    nmap is a versatile network scanner primarily used for host discovery and service identification. While it can effectively detect open SMB ports (e.g., 445/TCP) on a target, its default functionality does not extend to enumerating the actual shares available on those services. To perform SMB share enumeration with nmap, specific Nmap Scripting Engine (NSE) scripts, such as "smb-enum-shares", must be explicitly invoked, which goes beyond its basic port scanning capabilities.

About these practice questions

Courseiva writes every CEH question from scratch — 870 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This CEH practice question is part of Courseiva's free EC-Council certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CEH exam.