locate searchreplacedb2.php. this file reads database credentials
This commit is contained in:
@@ -123,6 +123,17 @@ class WpTarget
|
|||||||
@uri.merge("#{wp_content_dir()}/debug.log").to_s
|
@uri.merge("#{wp_content_dir()}/debug.log").to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Script for replacing strings in wordpress databases
|
||||||
|
# reveals databse credentials after hitting submit
|
||||||
|
def search_replace_db_2_url
|
||||||
|
@uri.merge("searchreplacedb2.php").to_s
|
||||||
|
end
|
||||||
|
|
||||||
|
def search_replace_db_2_exists?
|
||||||
|
resp = Browser.instance.get(search_replace_db_2_url)
|
||||||
|
resp.status == 200 && resp.body[%r{by interconnect}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?
|
||||||
# TODO
|
# TODO
|
||||||
|
|||||||
@@ -131,6 +131,10 @@ begin
|
|||||||
puts red("[!] A wp-config.php backup file has been found '#{file_url}'")
|
puts red("[!] A wp-config.php backup file has been found '#{file_url}'")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if wp_target.search_replace_db_2_exists?
|
||||||
|
puts red("[!] searchreplacedb2.php has been found '#{wp_target.search_replace_db_2_url}'")
|
||||||
|
end
|
||||||
|
|
||||||
if wp_target.has_malwares?
|
if wp_target.has_malwares?
|
||||||
malwares = wp_target.malwares
|
malwares = wp_target.malwares
|
||||||
puts red("[!]") + " #{malwares.size} malware(s) found :"
|
puts red("[!]") + " #{malwares.size} malware(s) found :"
|
||||||
|
|||||||
Reference in New Issue
Block a user