Courseiva
Enumeration and System HackingmediumMultiple ChoiceObjective-mapped

CEH Enumeration and System Hacking Practice Question

A penetration tester is performing SNMP enumeration against a network device and wants to retrieve the entire Management Information Base (MIB) tree. Which command should they use?

⚠ Common exam trap

It's easy for candidates to confuse `snmpbulkwalk` as the correct answer because it is faster for large MIBs, but the CEH exam expects `snmpwalk` as the standard enumeration tool, and `snmpbulkwalk` may not be supported by all SNMP agents.

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

snmpwalk -v 2c -c public 192.168.1.1 .1

`snmpwalk` is specifically designed to retrieve a subtree of MIB objects by performing a series of GETNEXT requests starting from a given OID. Using `.1` as the root OID (which corresponds to the entire ISO tree) with the SNMPv2c community string 'public' will enumerate all accessible OIDs in the MIB tree, effectively dumping the entire Management Information Base.

Answer analysis

Option-by-option breakdown

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

  • snmpwalk -v 2c -c public 192.168.1.1 .1

    Why this is correct

    This command correctly utilizes `snmpwalk` to perform comprehensive SNMP enumeration. The `-v 2c` flag specifies the use of SNMPv2c, a widely adopted version, and `-c public` employs the common default read-only community string. Crucially, initiating the walk with `.1` as the starting Object Identifier (OID) instructs `snmpwalk` to traverse and retrieve all available information from the entire Management Information Base (MIB) tree on the target device, which is the precise objective of thorough SNMP enumeration.

  • snmpset -v 2c -c private 192.168.1.1 1.3.6.1.2.1.1.0 s 'test'

    Why it's wrong here

    The `snmpset` command is specifically designed to modify or set values for particular Object Identifiers (OIDs) within a device's Management Information Base (MIB), rather than to enumerate or retrieve information. While the command syntax correctly specifies SNMPv2c and targets the given IP address, the fundamental action it performs is a write operation. Furthermore, employing the `private` community string typically implies an attempt to gain write access, which is irrelevant when the primary goal is passive information gathering through enumeration.

  • snmpbulkwalk -v 2c -c public 192.168.1.1 .1

    Why it's wrong here

    While `snmpbulkwalk` is a valid and often more efficient command for retrieving large datasets via SNMP, particularly in SNMPv2c and SNMPv3, its primary advantage lies in performance optimization for bulk data transfer. For general MIB traversal and comprehensive enumeration, `snmpwalk` remains the foundational and most commonly recognized tool. In a context where the 'standard' or most straightforward approach to walking the MIB is sought, `snmpwalk` is typically considered the primary and most appropriate command, making it a more direct answer for a general enumeration task.

  • snmpget -v 2c -c public 192.168.1.1 1.3.6.1.2.1.1

    Why it's wrong here

    The `snmpget` command is specifically engineered to retrieve the value of a *single*, explicitly defined Object Identifier (OID) from an SNMP agent. For the purpose of comprehensive SNMP enumeration, which aims to discover and collect all available configuration and operational data across the entire Management Information Base (MIB) tree, retrieving only one OID is fundamentally insufficient. Therefore, `snmpget` is not suitable for the broad information gathering implied by the term "SNMP enumeration."

About these practice questions

One of 870 original CEH practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.