Package: snmpcheck
Version: 1.9-0kali1
snmpcheck isn’t using snmpwalk correctly.
I believe its missing calling ‘-C’.
Example
$ sudo apt -y install snmpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
snmpd is already the newest version (5.7.3+dfsg-1.8).
The following packages were automatically installed and are no longer required:
geoclue-2.0 libqt5positioning5 libqt5qml5 libqt5quick5 libqt5sensors5 libqt5webchannel5 libqt5webkit5
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
g0tmi1k@kali-dev:~$
g0tmi1k@kali-dev:~$ sudo systemctl start snmpd
g0tmi1k@kali-dev:~$
g0tmi1k@kali-dev:~$ snmpcheck -x -H -y -f 127.0.0.1
test: .1.3.6.1.4.1.2021.2.1
suff: .2.1
test: .1.3.6.1.4.1.2021.4
suff:
test: .1.3.6.1.4.1.2021.8.1
suff: .8.1
test: .1.3.6.1.4.1.2021.9.1
suff: .9.1
test: .1.3.6.1.4.1.2021.10.1
suff: .10.1
test: .1.3.6.1.4.1.2021.101
suff:
No community name specified.s
USAGE: snmpwalk [OPTIONS] AGENT [OID]
Version: 5.7.3
...SNIP...
E {OID}: End the walk at the specified OID
No community name specified.
USAGE: snmpwalk [OPTIONS] AGENT [OID]
Version: 5.7.3
...SNIP...
E {OID}: End the walk at the specified OID
$
``
- - -
**Patch**
I believe the following patch fixes the issue:
$ git diff
diff --git a/snmpcheck b/snmpcheck
index a69e640..2df103f 100755
--- a/snmpcheck
+++ b/snmpcheck
@@ -27,8 +27,8 @@ $mibupdateconfig="$mibheadall.100.VERUPDATECONFIG";
'.10.1' => 1,
'.101' => 1);
$errlog="/net/tyfon/1/OV/log/ece-log";
-$default_get_args = "-v 1 %s private";
-$default_set_args = "-v 1 %s private";
+$default_get_args = "-v 1 -c private %s";
+$default_set_args = "-v 1 -c private %s";
$andlog=0;
$snmppath="/usr/bin";
$eraseline=" \r";
$
```
Kali Linux Bug Report: https://bugs.kali.org/view.php?id=4655