Land #2626 - Add wordpress scanner

bug/bundler_fix
sinn3r 2013-11-12 11:30:23 -06:00
commit 970e70a853
No known key found for this signature in database
GPG Key ID: 2384DB4EF06F730B
1 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,39 @@
##
# This module requires Metasploit: http//metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
class Metasploit3 < Msf::Auxiliary
include Msf::HTTP::Wordpress
include Msf::Auxiliary::Scanner
include Msf::Auxiliary::Report
def initialize
super(
'Name' => 'Wordpress Scanner',
'Description' => 'Detects Wordpress Installations and their version number',
'Author' => [ 'Christian Mehlmauer <FireFart[at]gmail.com>' ],
'License' => MSF_LICENSE
)
end
def run_host(target_host)
print_status("Trying ip #{target_host}")
if wordpress_and_online?
version = wordpress_version
version_string = version ? version : '(no version detected)'
print_good("#{target_host} running Wordpress #{version_string}")
report_note(
{
:host => target_host,
:proto => 'tcp',
:sname => (ssl ? 'https' : 'http'),
:port => rport,
:type => "Wordpress #{version_string}",
:data => target_uri
})
end
end
end