-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path5-SNMPRecon.sh
23 lines (17 loc) · 1.08 KB
/
5-SNMPRecon.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
echo Onesixty bruteforcing
#onesixty
onesixtyone -c ./results/community -i ./results/UDP161-IP.txt >./results/SNMP-onesixty.txt
#Full SNMP Tree
for word in $(cat ./results/UDP161-IP.txt);do snmpwalk -c public -v1 $word>./results/$word/$word-SNMPFullTree.txt & done
#Winuser
for word in $(cat ./results/UDP161-IP.txt);do snmpwalk -c public -v1 $word 1.3.6.1.4.1.77.1.2.25 >./results/$word/$word-SNMPWinUser.txt & done
#Enumerating Running Windows Processes
echo Enumerating Running Windows Processes
for word in $(cat ./results/UDP161-IP.txt);do snmpwalk -c public -v1 $word 1.3.6.1.2.1.25.4.2.1.2 >./results/$word/$word-SNMPWinProcess.txt & done
#Enumerating Open TCP Ports:
echo Enumerating Open TCP Ports
for word in $(cat ./results/UDP161-IP.txt);do snmpwalk -c public -v1 $word 1.3.6.1.2.1.6.13.1.3 >./results/$word/$word-SNMPWinTCPPorts.txt & done
#Enumerating Installed Software:
echo Enumerating Installed Software
for word in $(cat ./results/UDP161-IP.txt);do snmpwalk -c public -v1 $word 1.3.6.1.2.1.25.6.3.1.2 >./results/$word/$word-SNMPWinInstalledSoftware.txt & done