Merge pull request #3 from wchen-r7/pr6226

Do a version check for wordpress_xmlrpc_login
bug/bundler_fix
KING SABRI 2016-01-21 02:49:20 +03:00
commit bb4db6b501
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,8 @@ class Metasploit3 < Msf::Auxiliary
def check_setup
vprint_status("Checking #{peer} status!")
version = wordpress_version
vprint_status("Found Wordpress version: #{version}")
if !wordpress_and_online?
print_error("#{peer}:#{rport}#{target_uri} does not appear to be running Wordpress or you got blocked! (Do Manual Check)")
@ -68,6 +70,8 @@ class Metasploit3 < Msf::Auxiliary
elsif !wordpress_xmlrpc_enabled?
print_error("#{peer}:#{rport}#{wordpress_url_xmlrpc} does not enable XMLRPC")
false
elsif Gem::Version.new(version) >= Gem::Version.new('4.4.1')
false
else
print_status("Target #{peer} is running Wordpress")
true