CEH Enumeration and System Hacking Practice Question
A penetration tester executes the command: snmpwalk -c public -v2c 192.168.1.50. Which of the following BEST describes the purpose of this command?
⚠ Common exam trap
A common mix-up: candidates confuse `snmpwalk` with a modification or attack tool, but the CEH exam expects you to recognize it as a standard enumeration command that leverages the SNMP GETNEXT operation to walk the MIB tree.
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
✓
Enumerate the MIB tree of the SNMP agent using the 'public' community string
The `snmpwalk` command is used to retrieve a subtree of management information from an SNMP agent. By specifying `-c public` (the community string) and `-v2c` (SNMP version 2c), the command performs a GETNEXT request cycle to walk the entire MIB tree, enumerating all accessible OIDs and their values. Option D correctly identifies this as enumerating the MIB tree using the 'public' community string.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Modify SNMP settings on the remote device
Why it's wrong here
The `snmpwalk` command is designed exclusively for querying and retrieving information from an SNMP agent. It performs read-only operations by traversing the Management Information Base (MIB) tree and fetching Object Identifiers (OIDs) and their associated values. To modify SNMP settings or write new values to an agent, a different command like `snmpset` is required, which explicitly sends SET requests. Therefore, `snmpwalk` cannot alter device configurations.
- ✗
Perform a brute-force attack on the SNMP community string
Why it's wrong here
The command `snmpwalk c public` explicitly specifies "public" as the community string to be used for authentication. This is a direct attempt to access the SNMP agent with a known or guessed string, not a brute-force attack. A brute-force attack would involve systematically trying numerous community strings from a dictionary or generated list until a valid one is discovered, which `snmpwalk` alone does not facilitate.
- ✗
Test the SNMP agent for denial of service vulnerabilities
Why it's wrong here
The `snmpwalk` command sends legitimate SNMP GETNEXT requests to an agent to enumerate its MIB tree. While excessive legitimate traffic *could* potentially contribute to network congestion, `snmpwalk` itself is a standard query tool and not designed to exploit specific vulnerabilities that lead to a denial of service. DoS attacks typically involve malformed packets, resource exhaustion, or exploiting specific software flaws, none of which are inherent to the `snmpwalk` utility's primary function.
- ✓
Enumerate the MIB tree of the SNMP agent using the 'public' community string
Why this is correct
The `snmpwalk` utility is specifically designed to query an SNMP agent and traverse its Management Information Base (MIB) tree. By sending a series of GETNEXT requests, it systematically retrieves all Object Identifiers (OIDs) and their corresponding values accessible through the agent. The `c public` argument specifies the community string "public," which is a common default or weak credential used to gain read-only access for enumeration purposes. This command effectively maps the device's configuration and status information.
Go deeper
Related to this question
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 →
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.