# 161/162 - SNMP

## Nmap

Para facilitar información de este puerto puedes usar sus NSE's correspondientes

{% code overflow="wrap" %}

```
#opcion 1 - todos los que contengan *nbs* en el NSE
nmap -p 161,162 -sV --script=*snmp* IP

#opcion 2 - específicamente los siguientes
nmap -p 161,162 -sV ---script=snmp-info,snmp-interfaces,snmp-processes,snmp-sysdescr,snmp-brute,snmp-netstat,snmp-win32-shares IP
```

{% endcode %}

## Probar

* snmp-check&#x20;

```
snmp-check IP
```

* onesistyone&#x20;

```
onesixtyone -c <community> -i IP
```

* snmpenum

```
snmpenum IP public linux.txt
snmpenum IP public windows.txt
```

* Snmpwalk

```
snmpwalk -c public -v1 IP
snmpwalk -c private -v1 IP

# Enumeración de usuarios
snmpwalk -c public -v1 IP 1.3.6.1.4.1.77.1.2.25

# Enumeración de procesos Windows
snmpwalk -c public -v1 IP 1.3.6.1.2.1.25.4.2.1.2

# Enumeración de puertos TCP Abiertos en Windows
snmpwalk -c public -v1 IP 1.3.6.1.2.1.6.13.1.3

# Enumeraciṕon de puertos UDP abiertos en Windows
snmpwalk -v2c -c public IP 1.3.6.1.2.1.7.5.1.2

# Enumeración del software instalado en Windows
snmpwalk -c public -v1 IP 1.3.6.1.2.1.25.6.3.1.2
```

{% hint style="info" %}
Contraseñas por defecto SNMP

/usr/share/metasploit-framework/data/wordlists/snmp\_default\_pass.txt
{% endhint %}

## Máquinas resueltas que usan SNMP

## Referencias


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.securiters.com/securiters-wiki/puertos-and-servicios/161-162-snmp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
