File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
lib/metasploit/framework/login_scanner Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,10 @@ class WordpressMulticall < HTTP
29
29
30
30
31
31
def set_default
32
- self . wordpress_url_xmlrpc = 'xmlrpc.php'
33
- self . block_wait = 6
34
- self . base_uri = '/'
35
- self . chunk_size = 1700
32
+ @ wordpress_url_xmlrpc || = 'xmlrpc.php'
33
+ @ block_wait || = 6
34
+ @ base_uri || = '/'
35
+ @ chunk_size || = 1700
36
36
end
37
37
38
38
# Returns the XML data that is used for the login.
@@ -110,6 +110,8 @@ def send_wp_request(xml)
110
110
# @param credential [Metasploit::Framework::Credential]
111
111
# @return [Metasploit::Framework::LoginScanner::Result]
112
112
def attempt_login ( credential )
113
+ set_default
114
+ @passwords ||= [ credential . private ]
113
115
generate_xml ( credential . public ) . each do |xml |
114
116
send_wp_request ( xml )
115
117
req_xml = Nokogiri ::Slop ( xml )
You can’t perform that action at this time.
0 commit comments