Merge pull request #973 from pierre-dargham/feature_option_cache

Enable --cache-dir option in command line parameters, which solves write permission issues when wpscan is installed in system or root-owned directories
This commit is contained in:
Ryan Dewhurst
2016-08-12 12:16:11 +02:00
committed by GitHub

View File

@@ -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