21y4d/nmapAutomator

snmpwalk doesn't specify version

Closed this issue · 0 comments

when scanning a host that has port 161 open, the command to execute snmpwalk doesn't include the version number, and fails.

changing:
echo "snmpwalk -Os -c public -v $1 | tee recon/snmpwalk_$1.txt"

to:
echo "snmpwalk -Os -c public -v1 $1 | tee recon/snmpwalk_$1.txt"

would allow a v1 search to occur...