An open API service indexing awesome lists of open source software.

https://github.com/the-viper-one/snmp-scan

PowerShell script to enumerate for and authenticate to SNMP servers.
https://github.com/the-viper-one/snmp-scan

hacking powershell snmp

Last synced: 8 months ago
JSON representation

PowerShell script to enumerate for and authenticate to SNMP servers.

Awesome Lists containing this project

README

          

# SNMP-Scan
Simple Powershell script which can be used to scan CIDR ranges and Active Directory for systems running SNMP. Default Community string used is "public" unless specified otherwise. Supports SNMPv1 and SNMPv2c.

# Load into memory
```
IEX(New-Object System.Net.WebClient).DownloadString("https://raw.githubusercontent.com/The-Viper-One/SNMP-Scan/main/SNMP-Scan.ps1")
```

# Usage
At minimum -Targets is required, otherwise SNMP-Scan supports optional parameters as shown below
```
# Mandatory parameters
SNMP-Scan -Targets DC01.security.local # Specifc name or IP
SNMP-Scan -Targets All # All enabled systems in Acitve Directory
SNMP-Scan -Targets Servers # All servers in Active Directory
SNMP-Scan -Targets 10.10.10.0/24 # Scan an entire CIDR range

# Optional Parameters
-Community [Community String] # Community string to use (Default: public)
-Threads 10 # Specify number of threads to run (Default: 40)
-SuccessOnly # Show only successful results
-Domain [Domain] # Run against an alternate domain (Default: $env:userdnsdomain)
-Port [UDP Port] # Specify alternate port (Default: UDP 161)
```

# Images

![image](https://github.com/The-Viper-One/SNMP-Scan/assets/68926315/2a8ca32a-974c-4a0c-8d41-2f450b1c9a27)