diff --git a/monkey/infection_monkey/exploit/struts2.py b/monkey/infection_monkey/exploit/struts2.py index ff5b9887b..f29f6acac 100644 --- a/monkey/infection_monkey/exploit/struts2.py +++ b/monkey/infection_monkey/exploit/struts2.py @@ -52,7 +52,7 @@ class Struts2Exploiter(WebRCE): request = urllib.request.Request(url, headers=headers) try: return urllib.request.urlopen( - request, context=ssl._create_unverified_context() + request, context=ssl._create_unverified_context() # noqa: DUO122 ).geturl() except urllib.error.URLError: LOG.error("Can't reach struts2 server")