Added debug output
This commit is contained in:
16
README
16
README
@@ -180,6 +180,22 @@ Enumerate installed plugins...
|
|||||||
|
|
||||||
ruby wpscan.rb --url www.example.com --enumerate p
|
ruby wpscan.rb --url www.example.com --enumerate p
|
||||||
|
|
||||||
|
Run all enumeration tools...
|
||||||
|
|
||||||
|
ruby wpscan.rb --url www.example.com --enumerate
|
||||||
|
|
||||||
|
Use custom content directory...
|
||||||
|
|
||||||
|
ruby wpscan.rb -u www.example.com --wp-content-dir custom-content
|
||||||
|
|
||||||
|
Update WPScan...
|
||||||
|
|
||||||
|
ruby wpscan.rb --update
|
||||||
|
|
||||||
|
Debug output...
|
||||||
|
|
||||||
|
ruby wpscan.rb --url www.example.com --debug-output 2>debug.log
|
||||||
|
|
||||||
==WPSTOOLS ARGUMENTS==
|
==WPSTOOLS ARGUMENTS==
|
||||||
|
|
||||||
--help | -h This help screen.
|
--help | -h This help screen.
|
||||||
|
|||||||
@@ -204,6 +204,10 @@ Update WPScan...
|
|||||||
|
|
||||||
```ruby wpscan.rb --update```
|
```ruby wpscan.rb --update```
|
||||||
|
|
||||||
|
Debug output...
|
||||||
|
|
||||||
|
```ruby wpscan.rb --url www.example.com --debug-output 2>debug.log```
|
||||||
|
|
||||||
#### WPSTOOLS ARGUMENTS
|
#### WPSTOOLS ARGUMENTS
|
||||||
|
|
||||||
--help | -h This help screen.
|
--help | -h This help screen.
|
||||||
|
|||||||
@@ -49,6 +49,9 @@ def usage
|
|||||||
puts '-Update ...'
|
puts '-Update ...'
|
||||||
puts "ruby #{script_name} --update"
|
puts "ruby #{script_name} --update"
|
||||||
puts
|
puts
|
||||||
|
puts '-Debug output ...'
|
||||||
|
puts "ruby #{script_name} --url www.example.com --debug-output 2>debug.log"
|
||||||
|
puts
|
||||||
puts 'See README for further information.'
|
puts 'See README for further information.'
|
||||||
puts
|
puts
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ class WpscanOptions
|
|||||||
:help,
|
:help,
|
||||||
:config_file,
|
:config_file,
|
||||||
:exclude_content_based,
|
:exclude_content_based,
|
||||||
:basic_auth
|
:basic_auth,
|
||||||
|
:debug_output
|
||||||
]
|
]
|
||||||
|
|
||||||
attr_accessor *ACCESSOR_OPTIONS
|
attr_accessor *ACCESSOR_OPTIONS
|
||||||
@@ -126,6 +127,10 @@ class WpscanOptions
|
|||||||
@basic_auth = "Basic #{Base64.encode64(basic_auth).chomp}"
|
@basic_auth = "Basic #{Base64.encode64(basic_auth).chomp}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def debug_output=(debug_output)
|
||||||
|
Typhoeus::Config.verbose = debug_output
|
||||||
|
end
|
||||||
|
|
||||||
def has_options?
|
def has_options?
|
||||||
!to_h.empty?
|
!to_h.empty?
|
||||||
end
|
end
|
||||||
@@ -231,7 +236,8 @@ class WpscanOptions
|
|||||||
['--wp-plugins-dir', GetoptLong::REQUIRED_ARGUMENT],
|
['--wp-plugins-dir', GetoptLong::REQUIRED_ARGUMENT],
|
||||||
['--config-file', '-c', GetoptLong::REQUIRED_ARGUMENT],
|
['--config-file', '-c', GetoptLong::REQUIRED_ARGUMENT],
|
||||||
['--exclude-content-based', GetoptLong::REQUIRED_ARGUMENT],
|
['--exclude-content-based', GetoptLong::REQUIRED_ARGUMENT],
|
||||||
['--basic-auth', GetoptLong::REQUIRED_ARGUMENT]
|
['--basic-auth', GetoptLong::REQUIRED_ARGUMENT],
|
||||||
|
['--debug-output', GetoptLong::NO_ARGUMENT]
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user