Ensures a clean abort of Hydra, Ref #461

This commit is contained in:
erwanlr
2014-05-10 10:23:24 +02:00
parent a6e65d33dd
commit 302f1da066
2 changed files with 6 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ class WpUser < WpItem
File.open(wordlist).each do |password|
password.chop!
# A successfull login will redirect us to the redirect_to parameter
# Generate a random one on each request
unless redirect_url

View File

@@ -382,6 +382,11 @@ def main
puts red(e.backtrace.join("\n"))
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
end
end