112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
# File 'lib/snackhack2/wordpress.rb', line 112
def wp_plugin
wp_plugin_score = 0
wp = ['Index of', 'Name', 'Last modified', 'Size', 'Parent Directory', '/wp-content/plugins']
plug = Snackhack2::get(File.join(@site, '/wp-content/plugins/'))
if plug.code == 200
puts "[+] Looks like #{File.join(@site,
'/wp-content/plugins/')} is giving status 200. Checking to make sure...\n\n\n"
wp.each do |e|
if plug.body.include?(e)
wp_plugin_score += 10
end
end
end
puts "[+] WordPress Plugin Score: #{wp_plugin_score}"
end
|