Fix #12 Argument added to use another config file : --config-file | -c
This commit is contained in:
2
README
2
README
@@ -88,6 +88,8 @@ WPScan comes pre-installed on BackTrack5 R1 in the /pentest/web/wpscan directory
|
||||
Multiple values are allowed : '-e tp' will enumerate timthumbs and plugins
|
||||
If no option is supplied, the default is 'tup!'
|
||||
|
||||
--config-file | -c <config file> Use the specified config file
|
||||
|
||||
--follow-redirection If the target url has a redirection, it will be followed without asking if you wanted to do so or not
|
||||
|
||||
--wp-content-dir <wp content dir> WPScan try to find the content directory (ie wp-content) by scanning the index page, however you can specified it. Subdirectories are allowed
|
||||
|
||||
@@ -72,6 +72,8 @@ WPScan only supports Ruby => 1.9.
|
||||
Multiple values are allowed : '-e tp' will enumerate timthumbs and plugins
|
||||
If no option is supplied, the default is 'tup!'
|
||||
|
||||
--config-file | -c <config file> Use the specified config file
|
||||
|
||||
--follow-redirection If the target url has a redirection, it will be followed without asking if you wanted to do so or not
|
||||
|
||||
--wp-content-dir <wp content dir> WPScan try to find the content directory (ie wp-content) by scanning the index page, however you can specified it. Subdirectories are allowed
|
||||
|
||||
@@ -57,6 +57,7 @@ def help()
|
||||
puts " Multiple values are allowed : '-e tp' will enumerate timthumbs and plugins"
|
||||
puts " If no option is supplied, the default is 'tup!'"
|
||||
puts
|
||||
puts "--config-file | -c <config file> Use the specified config file"
|
||||
puts "--follow-redirection If the target url has a redirection, it will be followed without asking if you wanted to do so or not"
|
||||
puts "--wp-content-dir <wp content dir> WPScan try to find the content directory (ie wp-content) by scanning the index page, however you can specified it. Subdirectories are allowed"
|
||||
puts "--wp-plugins-dir <wp plugins dir> Same thing than --wp-content-dir but for the plugins directory. If not supplied, WPScan will use wp-content-dir/plugins. Subdirectories are allowed"
|
||||
|
||||
@@ -36,7 +36,8 @@ class WpscanOptions
|
||||
:follow_redirection,
|
||||
:wp_content_dir,
|
||||
:wp_plugins_dir,
|
||||
:help
|
||||
:help,
|
||||
:config_file
|
||||
]
|
||||
|
||||
attr_accessor *ACCESSOR_OPTIONS
|
||||
@@ -176,7 +177,8 @@ class WpscanOptions
|
||||
["--update", GetoptLong::NO_ARGUMENT],
|
||||
["--follow-redirection", GetoptLong::NO_ARGUMENT],
|
||||
["--wp-content-dir", GetoptLong::REQUIRED_ARGUMENT],
|
||||
["--wp-plugins-dir", GetoptLong::REQUIRED_ARGUMENT]
|
||||
["--wp-plugins-dir", GetoptLong::REQUIRED_ARGUMENT],
|
||||
["--config-file", "-c", GetoptLong::REQUIRED_ARGUMENT]
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user