From e9fba126d272cdf02f68962c5206e5f916f7a8a7 Mon Sep 17 00:00:00 2001 From: g0tmi1k Date: Tue, 8 May 2018 17:14:48 +0100 Subject: [PATCH] Stop trying to execute when it shouldn't --- wpscan.rb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/wpscan.rb b/wpscan.rb index 5f638a3b..28ffc091 100755 --- a/wpscan.rb +++ b/wpscan.rb @@ -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