- Wordpress.com is instable

- request_timeout and connect_timeout implemented
This commit is contained in:
Christian Mehlmauer
2013-07-19 22:53:50 +02:00
parent 57755417f9
commit fd1e0da4df
5 changed files with 50 additions and 14 deletions

View File

@@ -12,8 +12,8 @@ class StatsPlugin < Plugin
def run(options = {})
if options[:stats]
puts "Wpscan Databse Statistics:"
puts "--------------------------"
puts 'Wpscan Databse Statistics:'
puts '--------------------------'
puts "[#] Total vulnerable plugins: #{vuln_plugin_count}"
puts "[#] Total vulnerable themes: #{vuln_theme_count}"
puts "[#] Total plugin vulnerabilities: #{plugin_vulns_count}"
@@ -25,19 +25,19 @@ class StatsPlugin < Plugin
end
def vuln_plugin_count(file=PLUGINS_VULNS_FILE)
xml(file).xpath("count(//plugin)").to_i
xml(file).xpath('count(//plugin)').to_i
end
def vuln_theme_count(file=THEMES_VULNS_FILE)
xml(file).xpath("count(//theme)").to_i
xml(file).xpath('count(//theme)').to_i
end
def plugin_vulns_count(file=PLUGINS_VULNS_FILE)
xml(file).xpath("count(//vulnerability)").to_i
xml(file).xpath('count(//vulnerability)').to_i
end
def theme_vulns_count(file=THEMES_VULNS_FILE)
xml(file).xpath("count(//vulnerability)").to_i
xml(file).xpath('count(//vulnerability)').to_i
end
def total_plugins(file=PLUGINS_FULL_FILE)