option to hide banner
This commit is contained in:
@@ -41,7 +41,8 @@ class WpscanOptions
|
|||||||
:cache_ttl,
|
:cache_ttl,
|
||||||
:request_timeout,
|
:request_timeout,
|
||||||
:connect_timeout,
|
:connect_timeout,
|
||||||
:max_threads
|
:max_threads,
|
||||||
|
:no_banner
|
||||||
]
|
]
|
||||||
|
|
||||||
attr_accessor *ACCESSOR_OPTIONS
|
attr_accessor *ACCESSOR_OPTIONS
|
||||||
@@ -273,7 +274,8 @@ class WpscanOptions
|
|||||||
['--batch', GetoptLong::NO_ARGUMENT],
|
['--batch', GetoptLong::NO_ARGUMENT],
|
||||||
['--no-color', GetoptLong::NO_ARGUMENT],
|
['--no-color', GetoptLong::NO_ARGUMENT],
|
||||||
['--cookie', GetoptLong::REQUIRED_ARGUMENT],
|
['--cookie', GetoptLong::REQUIRED_ARGUMENT],
|
||||||
['--log', GetoptLong::NO_ARGUMENT]
|
['--log', GetoptLong::NO_ARGUMENT],
|
||||||
|
['--no-banner', GetoptLong::NO_ARGUMENT]
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ def main
|
|||||||
|
|
||||||
$log = wpscan_options.log
|
$log = wpscan_options.log
|
||||||
|
|
||||||
banner() # called after $log set
|
banner() unless wpscan_options.no_banner # called after $log set
|
||||||
|
|
||||||
unless wpscan_options.has_options?
|
unless wpscan_options.has_options?
|
||||||
# first parameter only url?
|
# first parameter only url?
|
||||||
|
|||||||
Reference in New Issue
Block a user