Ir al contenido

Cheatsheet de SNMP

Por

Madurezreviewed
Última revisión
Publicado
Última actualización

Consulta el workflow y las condiciones de automatización.

Pregunta Comando Señal
¿responde v2c? snmpget -v2c -c COMMUNITY TARGET_IP 1.3.6.1.2.1.1.1.0 sysDescr.0
¿qué expone system? snmpwalk -v2c -c COMMUNITY -On TARGET_IP 1.3.6.1.2.1.1 OID y valores
¿qué interfaces expone? snmpbulkwalk -v2c -c COMMUNITY -On TARGET_IP 1.3.6.1.2.1.2 tabla de interfaces
¿qué matriz responde? onesixtyone -c communities.txt -i targets.txt candidatos
¿qué ve NSE? sudo nmap -sU -p 161 --script snmp-info --script-args creds.snmp=COMMUNITY TARGET_IP inventario breve
SNMPv3 authPriv
snmpget -v3 -l authPriv -u USERNAME \
-a SHA -A AUTH_PASSWORD -x AES -X PRIV_PASSWORD \
-On -t 2 -r 1 TARGET_IP OID

-On conserva OID numéricos, -t 2 fija el timeout por intento y -r 1 permite un reintento. Los secretos en argumentos pueden aparecer en procesos e historial. Un timeout sigue sin distinguir filtro, pérdida, Engine ID, usuario y material criptográfico. La automatización SNMP explica el debug acotado.