
SNMP enumeration tool जो penetration testing और reconnaissance के लिए SNMPv1/v2c hosts को query करके system information, TCP connections, और write access निकालता है।
आप snmpcheck जानते हैं? अच्छा, snmpen भी वही कर रहा है। यह SNMP सक्षम होस्ट्स के लिए एक और enumerator है। इसकी शुरुआत snmpcheck के drop-in replacement के रूप में हुई थी, जिसे 2018/2019 में अब और मेंटेन नहीं किया जा रहा था। आजकल, snmpen का अपना दिल और दिमाग है, लेकिन फिर भी snmpcheck के साथ एक समान CLI इंटरफ़ेस साझा करता है।
Enumerations RFC1157-अनुरूप सिस्टम्स के विरुद्ध हो रही हैं। भारी काम pysnmp द्वारा किया जाता है।
pip install snmpen
Nix या NixOS उपयोगकर्ताओं के लिए एक पैकेज उपलब्ध है। ध्यान रखें कि नवीनतम रिलीज़ केवल
unstable चैनल में मौजूद हो सकती हैं।
nix-env -iA nixos.snmpen
यह टूल इनपुट के रूप में IPv4 पते, IPv6 पते और FQDNs का समर्थन करता है।
snmpen -h
options:
-p, --port PORT SNMP port (default: 161)
-c, --community COMMUNITY
SNMP community string (default: public)
-s, --snmp-version VERSION
SNMP version: 1 or 2c (default: 1)
-w, --write Detect write access (not part of the enumeration)
-d, --disable_tcp Disable TCP connections enumeration
-t, --timeout SECONDS
Timeout in seconds (default: 5)
-r, --retries RETRIES
Request retries (default: 1)
-o, --output FILE Write formatted enumeration output to FILE
--output-format FORMAT
Output format: auto, plain, or rich (default: auto)
-f, --hosts-file FILE
Read targets from FILE (one host per line)
-v, --version Show script version and exit
-h, --help Show this help message and exit
Usage examples:
snmpen 172.16.1.1
snmpen 2001:db8::10
snmpen demo.pysnmp.com
snmpen 172.16.1.1 -o
snmpen -f hosts.txt
snmpen --output-format plain -f hosts.txt
snmpen --output-format rich -o report.txt 172.16.1.1
snmpen -c private -s 2c 172.16.1.1
snmpen -w -d -t 10 172.16.1.1
hosts फ़ाइल प्रति पंक्ति एक टारगेट का समर्थन करती है। खाली पंक्तियाँ और # से शुरू होने वाली पंक्तियाँ अनदेखी की जाती हैं।
जब -o का उपयोग बिना फ़ाइलनाम के किया जाता है, तो snmpen प्रत्येक सफल टारगेट के लिए <target>.txt का उपयोग करके एक फ़ाइल लिखता है।
सिस्टम सूचना अनुभाग होस्ट के लिए पता लगाए गए समर्थित SNMP संस्करणों को भी दिखाता है (वर्तमान में SNMPv1 और SNMPv2c डिटेक्शन)।
snmpen MIT के अंतर्गत लाइसेंस प्राप्त है।