Skip to content

Commit

Permalink
SNMP: Check for closed UDP ports instead of TCP ports
Browse files Browse the repository at this point in the history
  • Loading branch information
cakekoa authored and mssalvatore committed May 5, 2023
1 parent 9b2a716 commit 808b503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monkey/agent_plugins/exploiters/snmp/src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# dependencies to get rid of or internalize
from infection_monkey.exploit import IAgentBinaryRepository, IAgentOTPProvider
from infection_monkey.exploit.tools import all_exploitation_ports_are_closed
from infection_monkey.exploit.tools import all_udp_ports_are_closed
from infection_monkey.exploit.tools.http_agent_binary_server import start_agent_binary_server
from infection_monkey.i_puppet import ExploiterResultData, TargetHost
from infection_monkey.network import TCPPortSelector
Expand Down Expand Up @@ -41,7 +41,7 @@ def __init__(self, *args, **kwargs):


def should_attempt_exploit(host: TargetHost) -> bool:
return not all_exploitation_ports_are_closed(host, SNMP_PORTS)
return not all_udp_ports_are_closed(host, SNMP_PORTS)


class Plugin:
Expand Down

0 comments on commit 808b503

Please sign in to comment.