Added debug output

This commit is contained in:
Christian Mehlmauer
2013-06-09 09:19:25 +02:00
parent fc0373fccc
commit bbefdfc4e5
4 changed files with 31 additions and 2 deletions

16
README
View File

@@ -180,6 +180,22 @@ Enumerate installed plugins...
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==
--help | -h This help screen.

View File

@@ -204,6 +204,10 @@ Update WPScan...
```ruby wpscan.rb --update```
Debug output...
```ruby wpscan.rb --url www.example.com --debug-output 2>debug.log```
#### WPSTOOLS ARGUMENTS
--help | -h This help screen.

View File

@@ -49,6 +49,9 @@ def usage
puts '-Update ...'
puts "ruby #{script_name} --update"
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
end

View File

@@ -28,7 +28,8 @@ class WpscanOptions
:help,
:config_file,
:exclude_content_based,
:basic_auth
:basic_auth,
:debug_output
]
attr_accessor *ACCESSOR_OPTIONS
@@ -126,6 +127,10 @@ class WpscanOptions
@basic_auth = "Basic #{Base64.encode64(basic_auth).chomp}"
end
def debug_output=(debug_output)
Typhoeus::Config.verbose = debug_output
end
def has_options?
!to_h.empty?
end
@@ -231,7 +236,8 @@ class WpscanOptions
['--wp-plugins-dir', GetoptLong::REQUIRED_ARGUMENT],
['--config-file', '-c', 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