From 8492190f4cf0b00533ecbbd31671dd88d80ecf81 Mon Sep 17 00:00:00 2001 From: Pierre Dargham Date: Fri, 5 Aug 2016 10:56:40 +0200 Subject: [PATCH] Allow --cache-dir option in command line parameters --- lib/wpscan/wpscan_options.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/wpscan/wpscan_options.rb b/lib/wpscan/wpscan_options.rb index 72a66c24..45da908f 100644 --- a/lib/wpscan/wpscan_options.rb +++ b/lib/wpscan/wpscan_options.rb @@ -45,7 +45,8 @@ class WpscanOptions :no_banner, :throttle, :disable_accept_header, - :disable_referer + :disable_referer, + :cache_dir ] attr_accessor *ACCESSOR_OPTIONS @@ -288,7 +289,8 @@ class WpscanOptions ['--no-banner', GetoptLong::NO_ARGUMENT], ['--throttle', GetoptLong::REQUIRED_ARGUMENT], ['--disable-accept-header', GetoptLong::NO_ARGUMENT], - ['--disable-referer', GetoptLong::NO_ARGUMENT] + ['--disable-referer', GetoptLong::NO_ARGUMENT], + ['--cache-dir', GetoptLong::REQUIRED_ARGUMENT] ) end