Merge pull request #1180 from g0tmi1k/fixes

Stop trying to execute when it shouldn't
This commit is contained in:
Ryan Dewhurst
2018-05-09 10:05:14 +02:00
committed by GitHub

View File

@@ -524,12 +524,15 @@ def main
end
exit(1)
ensure
# 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
main()
exit($exit_code)