Courseiva
Enumeration and System HackinghardMultiple ChoiceObjective-mapped

CEH Enumeration and System Hacking Practice Question

A penetration tester runs the following command against a Linux server: `smbclient -L //192.168.1.10 -N`. The output lists shares including 'IPC$', 'ADMIN$', and 'data'. Which of the following is the BEST next step to enumerate the 'data' share?

⚠ Common exam trap

Test-takers frequently choose a broad enumeration tool like enum4linux or an nmap script, thinking they need more information first, when the direct connection to the already-discovered share is the logical and efficient next step in a penetration test.

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

Use `smbclient //192.168.1.10/data -N` to attempt a null session connection

The command `smbclient -L //192.168.1.10 -N` performs a null session (no password) listing of SMB shares. The output shows that the 'data' share exists and is accessible without authentication (since the -N flag succeeded). The best next step is to attempt a null session connection to that specific share using `smbclient //192.168.1.10/data -N`, which will mount the share and allow file enumeration. This directly leverages the null session already confirmed by the initial scan.

Answer analysis

Option-by-option breakdown

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

  • Run `nmap --script smb-enum-shares -p 445 192.168.1.10`

    Why it's wrong here

    The `nmap --script smb-enum-shares` command is primarily used for discovering and listing available SMB shares on a target system. While valuable for initial reconnaissance, the question implies the penetration tester has already identified the 'data' share. Re-running an enumeration script at this stage would be redundant and does not directly advance the objective of attempting to connect to and access the *known* share. The next logical step is to attempt a direct connection.

  • Run `enum4linux -a 192.168.1.10` to gather more information

    Why it's wrong here

    The `enum4linux -a` command performs a comprehensive enumeration of SMB/NBT information, including users, groups, shares, and password policies. While this tool is excellent for gathering extensive details during the reconnaissance phase, the immediate goal, given that the 'data' share name is already known, is to attempt access to that specific share. Running a broad enumeration again would likely duplicate efforts or provide information not directly pertinent to the current task of connecting to the identified share.

  • Use `rpcclient -U '' 192.168.1.10` to enumerate users

    Why it's wrong here

    `rpcclient` is a utility designed for interacting with Microsoft RPC services, commonly used for enumerating users, groups, and other domain information, often via null sessions or authenticated connections. While user enumeration can be a valuable step in a broader penetration test, the current objective is specifically to gain access to the 'data' share. Attempting to enumerate users at this point, without first trying to access the known share, diverts from the most direct path to achieving the immediate goal.

  • Use `smbclient //192.168.1.10/data -N` to attempt a null session connection

    Why this is correct

    The `smbclient` utility is the standard command-line tool for interacting with SMB/CIFS shares, making it the most appropriate choice for this scenario. The syntax `//192.168.1.10/data` correctly specifies the target server and the known share name. The `-N` flag is crucial as it instructs `smbclient` to attempt a null session connection, meaning it tries to connect anonymously without requiring a username or password. This is the most direct and efficient method to test if the 'data' share is anonymously accessible, which is a common misconfiguration.

About these practice questions

This CEH question is part of Courseiva's 870-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.