# SNMP - ports 161-162

## Énumération

avec metasploit:

```bash
$ msfconsole
msf > use auxiliary/scanner/snmp/snmp_enum
msf auxiliary(snmp_enum) > set RHOSTS <target IP>
msf auxiliary(snmp_enum) > run

//Partages
msf > use auxiliary/scanner/snmp/snmp_enumshares
msf auxiliary(snmp_enumshares) > set RHOSTS <target(s) IP(s)>
msf auxiliary(snmp_enumshares) > set THREADS 11 #par exemple
msf auxiliary(snmp_enumshares) > run

//utilisateurs
msf > use auxiliary/scanner/snmp/snmp_enumusers
msf auxiliary(snmp_enumshares) > set RHOSTS <target(s) IP(s)>
msf auxiliary(snmp_enumshares) > set THREADS 11 #par exemple
msf auxiliary(snmp_enumshares) > run
```

## Brute force

Avec metasploit:

```bash
$ msfconsole
msf > use auxiliary/scanner/snmp/snmp_login
msf auxiliary(snmp_enumshares) > set RHOSTS <target(s) IP(s)>
msf auxiliary(snmp_enumshares) > set THREADS 200 #par exemple
msf auxiliary(snmp_enumshares) > run
```

## Ressources

<https://www.offensive-security.com/metasploit-unleashed/scanner-snmp-auxiliary-modules/>


---

# 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://blog.s1rn3tz.ovh/hacking-protocols/snmp-ports-161-162.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.
