Courseiva
Enumeration and System HackingmediumMultiple ChoiceObjective-mapped

CEH Enumeration and System Hacking Practice Question

During an internal penetration test, you run 'smbclient -L //192.168.1.100 -N' and get an empty response. Which of the following is the MOST likely reason?

⚠ Common exam trap

Test-takers frequently assume an empty response means the service is down or not SMB, but CEH expects you to recognize that a silent empty output from `smbclient -L -N` is a classic indicator of null session restrictions being enabled.

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

Null sessions are disabled on the target

The `-N` flag in smbclient suppresses password prompts, attempting a null session. An empty response (no error, no output) typically indicates the SMB service is running but null sessions are explicitly disabled, often via the registry key `HKLM\SYSTEM\CurrentControlSet\Control\Lsa\RestrictAnonymous` set to 1 or 2. This prevents anonymous enumeration of shares and users, which is a common security hardening measure on Windows systems.

Answer analysis

Option-by-option breakdown

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

  • The target is not running SMB

    Why it's wrong here

    If the target were truly not running SMB, the smbclient -L command would typically result in a connection error, such as "Connection refused," "Host unreachable," or a timeout. An empty response from smbclient -L implies that a connection to the SMB service was successfully established, but no shares were accessible or enumerated. This scenario indicates the SMB service is active, but access to share information is restricted.

  • Null sessions are disabled on the target

    Why this is correct

    The smbclient -L command, when executed without explicit credentials, attempts to establish an anonymous or "null" session with the target SMB server. Modern Windows operating systems, starting with Windows XP SP2, disable null sessions by default as a security measure. Consequently, if null sessions are disabled, the server will reject this unauthenticated connection attempt, preventing the enumeration of shares and resulting in an empty or access denied response from smbclient.

  • The target requires NTLM authentication

    Why it's wrong here

    If the target SMB server required NTLM or any form of authenticated access, the smbclient -L command, which attempts an unauthenticated null session by default, would typically fail with an explicit "Access denied" error or prompt for credentials. An empty list of shares, without an explicit authentication failure message, suggests that the connection itself was established but no shares were made available for anonymous enumeration, rather than a direct rejection due to a lack of NTLM authentication.

  • The target is a Linux server

    Why it's wrong here

    While a Linux server running Samba could be configured to disallow null sessions and thus return an empty share list, this is not a default or typical behavior that uniquely identifies it as a Linux system. Many default Samba configurations on Linux distributions are designed to allow null sessions for public share enumeration. Therefore, an empty response from smbclient -L is not a definitive indicator of a Linux server, as it could also occur on a Windows server with null sessions disabled.

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.