option to hide banner

This commit is contained in:
Christian Mehlmauer
2015-04-30 21:38:26 +02:00
parent e6751e0d89
commit 9a7afe1549
2 changed files with 5 additions and 3 deletions

View File

@@ -41,7 +41,8 @@ class WpscanOptions
:cache_ttl,
:request_timeout,
:connect_timeout,
:max_threads
:max_threads,
:no_banner
]
attr_accessor *ACCESSOR_OPTIONS
@@ -273,7 +274,8 @@ class WpscanOptions
['--batch', GetoptLong::NO_ARGUMENT],
['--no-color', GetoptLong::NO_ARGUMENT],
['--cookie', GetoptLong::REQUIRED_ARGUMENT],
['--log', GetoptLong::NO_ARGUMENT]
['--log', GetoptLong::NO_ARGUMENT],
['--no-banner', GetoptLong::NO_ARGUMENT]
)
end

View File

@@ -13,7 +13,7 @@ def main
$log = wpscan_options.log
banner() # called after $log set
banner() unless wpscan_options.no_banner # called after $log set
unless wpscan_options.has_options?
# first parameter only url?