
SNMPv1/v2c 호스트를 쿼리하여 시스템 정보, TCP 연결 및 쓰기 접근 권한을 추출하는 SNMP 열거 도구로, 침투 테스트 및 정찰에 사용됩니다.
snmpcheck를 아시나요? 좋습니다, snmpen도 같은 일을 합니다. SNMP가 활성화된 호스트를 위한 또 다른 열거 도구입니다. 2018/2019년에 더 이상 유지보수되지 않던 snmpcheck의 드롭인 대체품으로 시작했습니다. 오늘날 snmpen은 나름의 철학을 갖고 있지만 여전히 snmpcheck와 유사한 CLI 인터페이스를 공유합니다.
열거는 RFC1157을 준수하는 시스템을 대상으로 수행됩니다. 무거운 작업은 pysnmp가 담당합니다.
pip install snmpen
Nix 또는 NixOS 사용자를 위한 패키지가 있습니다. 최신 릴리스는 unstable 채널에만
있을 수 있다는 점을 유의하세요.
nix-env -iA nixos.snmpen
이 도구는 IPv4 주소, IPv6 주소 및 FQDN을 입력으로 지원합니다.
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
호스트 파일은 한 줄에 하나의 대상을 지원합니다. 빈 줄과 #으로 시작하는 줄은 무시됩니다.
-o를 파일명 없이 사용하면 snmpen은 성공한 각 대상마다 <target>.txt를 사용하여 파일 하나를 작성합니다.
시스템 정보 섹션에는 호스트에서 감지된 지원 SNMP 버전도 표시됩니다(현재 SNMPv1 및 SNMPv2c 감지).
snmpen은 MIT 라이선스로 배포됩니다.