First commit for more generic enumerating and scanning
This commit is contained in:
@@ -50,7 +50,7 @@ class WpTarget
|
||||
url = @uri.merge("wp-login.php").to_s
|
||||
|
||||
# Let's check if the login url is redirected (to https url for example)
|
||||
if redirection = redirection(url)
|
||||
if redirection == redirection(url)
|
||||
url = redirection
|
||||
end
|
||||
|
||||
@@ -70,6 +70,11 @@ class WpTarget
|
||||
@error_404_hash
|
||||
end
|
||||
|
||||
# Valid HTTP return codes
|
||||
def self.valid_response_codes
|
||||
[200, 403, 301, 302]
|
||||
end
|
||||
|
||||
# return WpTheme
|
||||
def theme
|
||||
WpTheme.find(@uri)
|
||||
|
||||
Reference in New Issue
Block a user