Fixes #150 BackupBuddy added
This commit is contained in:
@@ -155,6 +155,16 @@ class WpTarget < WebSite
|
|||||||
resp.code == 200 && resp.body[%r{by interconnect}i]
|
resp.code == 200 && resp.body[%r{by interconnect}i]
|
||||||
end
|
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
|
# Should check wp-login.php if registration is enabled or not
|
||||||
def registration_enabled?
|
def registration_enabled?
|
||||||
resp = Browser.instance.get(registration_url)
|
resp = Browser.instance.get(registration_url)
|
||||||
|
|||||||
8
main.rb
8
main.rb
@@ -170,6 +170,14 @@ def main
|
|||||||
puts red("[!] searchreplacedb2.php has been found '#{wp_target.search_replace_db_2_url}'")
|
puts red("[!] searchreplacedb2.php has been found '#{wp_target.search_replace_db_2_url}'")
|
||||||
end
|
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?
|
if wp_target.is_multisite?
|
||||||
puts green('[+]') + ' This site seems to be a multisite (http://codex.wordpress.org/Glossary#Multisite)'
|
puts green('[+]') + ' This site seems to be a multisite (http://codex.wordpress.org/Glossary#Multisite)'
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user