guardicore / monkey

Infection Monkey - An open-source adversary emulation platform
https://www.guardicore.com/infectionmonkey/
GNU General Public License v3.0
6.68k stars 786 forks source link

Implement an SNMP exploiter #3234

Closed mssalvatore closed 1 year ago

mssalvatore commented 1 year ago

Description

Implement an exploiter that uses SNMP to propagate to Linux hosts.

Related: #3198

Tasks

cakekoa commented 1 year ago

Examples: http://www.pysnmp.com/pysnmp/examples/#high-level-snmp

Look at the Modifying variables and MIB walking operations sections, which seem to be analogs of snmpset and snmpwalk

cakekoa commented 1 year ago

Proof-of-concept: https://github.com/mxrch/snmp-shell.git

cakekoa commented 1 year ago

Here's some example code showing how to create, execute, and delete a command via SNMP: snmp.txt