Ensures a clean abort of Hydra, Ref #461
This commit is contained in:
@@ -382,6 +382,11 @@ def main
|
|||||||
puts red(e.backtrace.join("\n"))
|
puts red(e.backtrace.join("\n"))
|
||||||
end
|
end
|
||||||
exit(1)
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user