Stop trying to execute when it shouldn't

This commit is contained in:
g0tmi1k
2018-05-08 17:14:48 +01:00
parent 95d39cce5a
commit e9fba126d2

View File

@@ -524,10 +524,13 @@ def main
end
exit(1)
ensure
# Ensure a clean abort of Hydra
# See https://github.com/wpscanteam/wpscan/issues/461#issuecomment-42735615
Browser.instance.hydra.abort
Browser.instance.hydra.run
# Make sure there was an argument
if ARGV.length != 0
# Ensure a clean abort of Hydra
# See https://github.com/wpscanteam/wpscan/issues/461#issuecomment-42735615
Browser.instance.hydra.abort
Browser.instance.hydra.run
end
end
end