New Plugin detection method

This commit is contained in:
Christian Mehlmauer
2013-01-19 19:38:25 +01:00
parent 8b9fbca73e
commit cbe439f0d7
7 changed files with 43454 additions and 33869 deletions

View File

@@ -104,11 +104,12 @@ class WpEnumerator
# Open and parse the 'most popular' plugin list...
File.open(file, "r") do |f|
f.readlines.collect do |line|
l = line.strip
targets_url << WpItem.new(
:base_url => url,
:path => line.strip,
:path => l,
:wp_content_dir => wp_content_dir,
:name => File.dirname(line.strip),
:name => l =~ /.+\/.+/ ? File.dirname(l) : l.sub(/\/$/, ""),
:vulns_file => vulns_file,
:type => type,
:wp_plugins_dir => plugins_dir