forked from p15670423/monkey
Fix DUO122 warnings
This commit is contained in:
parent
af381e062f
commit
b0be14193d
|
@ -52,7 +52,7 @@ class Struts2Exploiter(WebRCE):
|
||||||
request = urllib.request.Request(url, headers=headers)
|
request = urllib.request.Request(url, headers=headers)
|
||||||
try:
|
try:
|
||||||
return urllib.request.urlopen(
|
return urllib.request.urlopen(
|
||||||
request, context=ssl._create_unverified_context()
|
request, context=ssl._create_unverified_context() # noqa: DUO122
|
||||||
).geturl()
|
).geturl()
|
||||||
except urllib.error.URLError:
|
except urllib.error.URLError:
|
||||||
LOG.error("Can't reach struts2 server")
|
LOG.error("Can't reach struts2 server")
|
||||||
|
|
Loading…
Reference in New Issue