Fix #12 Argument added to use another config file : --config-file | -c
This commit is contained in:
18
README
18
README
@@ -79,14 +79,16 @@ WPScan comes pre-installed on BackTrack5 R1 in the /pentest/web/wpscan directory
|
|||||||
--force | -f Forces WPScan to not check if the remote site is running WordPress.
|
--force | -f Forces WPScan to not check if the remote site is running WordPress.
|
||||||
|
|
||||||
--enumerate | -e [option(s)] Enumeration.
|
--enumerate | -e [option(s)] Enumeration.
|
||||||
option :
|
option :
|
||||||
u usernames from id 1 to 10
|
u usernames from id 1 to 10
|
||||||
u[10-20] usernames from id 10 to 20 (you must write [] chars)
|
u[10-20] usernames from id 10 to 20 (you must write [] chars)
|
||||||
p plugins
|
p plugins
|
||||||
p! only vulnerable plugins
|
p! only vulnerable plugins
|
||||||
t timthumbs
|
t timthumbs
|
||||||
Multiple values are allowed : '-e tp' will enumerate timthumbs and plugins
|
Multiple values are allowed : '-e tp' will enumerate timthumbs and plugins
|
||||||
If no option is supplied, the default is 'tup!'
|
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
|
--follow-redirection If the target url has a redirection, it will be followed without asking if you wanted to do so or not
|
||||||
|
|
||||||
|
|||||||
@@ -72,6 +72,8 @@ WPScan only supports Ruby => 1.9.
|
|||||||
Multiple values are allowed : '-e tp' will enumerate timthumbs and plugins
|
Multiple values are allowed : '-e tp' will enumerate timthumbs and plugins
|
||||||
If no option is supplied, the default is 'tup!'
|
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
|
--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
|
--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 " Multiple values are allowed : '-e tp' will enumerate timthumbs and plugins"
|
||||||
puts " If no option is supplied, the default is 'tup!'"
|
puts " If no option is supplied, the default is 'tup!'"
|
||||||
puts
|
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 "--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-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"
|
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,
|
:follow_redirection,
|
||||||
:wp_content_dir,
|
:wp_content_dir,
|
||||||
:wp_plugins_dir,
|
:wp_plugins_dir,
|
||||||
:help
|
:help,
|
||||||
|
:config_file
|
||||||
]
|
]
|
||||||
|
|
||||||
attr_accessor *ACCESSOR_OPTIONS
|
attr_accessor *ACCESSOR_OPTIONS
|
||||||
@@ -176,7 +177,8 @@ class WpscanOptions
|
|||||||
["--update", GetoptLong::NO_ARGUMENT],
|
["--update", GetoptLong::NO_ARGUMENT],
|
||||||
["--follow-redirection", GetoptLong::NO_ARGUMENT],
|
["--follow-redirection", GetoptLong::NO_ARGUMENT],
|
||||||
["--wp-content-dir", GetoptLong::REQUIRED_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
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user