-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenum-snmp
More file actions
21 lines (17 loc) · 765 Bytes
/
enum-snmp
File metadata and controls
21 lines (17 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
cyan='\033[1;32m'
red='\033[1;31m'
yellow='\033[0;33m'
none='\033[0m'
mkdir snmp 2>/dev/null
touch ./snmp/snmpwlk
echo -e "${cyan}==========( SNMP Enumeration w/ SNMPWalk )==========" 2>&1 | tee -a ./snmp/snmpwlk
echo -e "${red}snmpwalk -Os -c public -v1 $1" 2>&1 | tee -a ./snmp/snmpwlk
echo -e "${yellow}" 2>&1 | tee -a ./snmp/snmpwlk
$(which snmpwalk) -Os -c public -v1 $1 2>&1 | tee -a ./snmp/snmpwlk
touch ./snmp/check
echo -e "${cyan}==========( SNMP Enumeration w/ SNMP-Check )==========" 2>&1 | tee -a ./snmp/check
echo -e "${red}snmp-check -t $1 -c public" 2>&1 | tee -a ./snmp/check
echo -e "${yellow}" 2>&1 | tee -a ./snmp/check
$(which snmp-check) -t $1 -c public 2>&1 | tee -a ./snmp/check
echo -e "${none}" 2>&1 | tee -a ./snmp/check