> For the complete documentation index, see [llms.txt](https://ceh-practical.cavementech.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ceh-practical.cavementech.com/module-4.-enumeration/2.-snmp-enumeration-port-161-162.md).

# 2. SNMP Enumeration (Port 161,162)

## <mark style="color:red;">1. SNMP Enumeration using snmp-check</mark>

first scan the target to check open port

```
sudo nmap -sU -sV -p 161 192.168.18.110
```

Now enumerate it

```
snmp-check 192.168.18.110
```

## <mark style="color:red;">2. SNMP Enumeration with softperfect Network scanner</mark>

Windows.

{% embed url="<https://www.softperfect.com/products/networkscanner/>" %}

<figure><img src="/files/lMl98l3f4AtPzxtmUhXN" alt=""><figcaption></figcaption></figure>

## 3. Perform SNMP Enumeration using SnmpWalk

```
snmpwalk -v1 -c public 192.168.18.110
```

{% hint style="info" %}
-v1 is the version

-c is the string
{% endhint %}

<figure><img src="/files/gMsPvgtb8icTD3A0gxxC" alt=""><figcaption></figcaption></figure>

For snmp version 2,use the following command

```
snmpwalk -v2c -c public 192.168.18.110
```

<figure><img src="/files/491CYJTn5W62mjvI4ov8" alt=""><figcaption></figcaption></figure>

## <mark style="color:red;">4. SNMP Enumeration using NMAP</mark>

```
sudo nmap -sU -P 161 --script snmp-sysdesc 192.168.18.110
sudo nmap -sU -P 161 --script snmp-processes 192.168.18.110
```

```
sudo nmap -sU -P 161 --script snmp-win32-software 192.168.18.110// List processes running on windows servers
```

```
sudo nmap -sU -P 161 --script snmp-interfaces 192.168.18.110
```

## <mark style="color:red;">5. Other SNMP enumeration Tools</mark>

```
nmap -sU -p 161 10.10.1.2
nmap -sU -p 161 --script=snmp-brute 10.10.1.2

# Expoilt SNMP with Metasploit
msfdb init && msfconsole ↵
use auxilary/scanner/snmp/snmp_login ↵
set RHOSTS 10.10.1.2 ↵
exploit ↵
  
use auxilary/scanner/snmp/snmp_enum ↵
set RHOSTS 10.10.1.2 ↵
exploit ↵
```

{% embed url="<https://www.udemy.com/course/ethical-hacker-practical/?referralCode=289CF01CF51246BCAD6C>" %}
