Fixes #150 BackupBuddy added

This commit is contained in:
erwanlr
2013-03-26 13:02:00 +01:00
parent 634a6222f7
commit 130a2a44e8
2 changed files with 18 additions and 0 deletions

View File

@@ -155,6 +155,16 @@ class WpTarget < WebSite
resp.code == 200 && resp.body[%r{by interconnect}i]
end
# FIXME: a plugin which does not follow the wordpress plugin system
def backupbuddy_url
@uri.merge('importbuddy.php').to_s
end
def has_backupbuddy?
response = Browser.instance.get(backupbuddy_url)
response.code == 200 && response.body[%r{BackupBuddy}i]
end
# Should check wp-login.php if registration is enabled or not
def registration_enabled?
resp = Browser.instance.get(registration_url)

View File

@@ -170,6 +170,14 @@ def main
puts red("[!] searchreplacedb2.php has been found '#{wp_target.search_replace_db_2_url}'")
end
if wp_target.has_backupbuddy?
puts red("[!] BackupBuddy has been found")
puts ' |'
puts " | Location: #{wp_target.backupbuddy_url}"
puts ' | ' + red('* Reference: http://seclists.org/fulldisclosure/2013/Mar/206')
puts
end
if wp_target.is_multisite?
puts green('[+]') + ' This site seems to be a multisite (http://codex.wordpress.org/Glossary#Multisite)'
end