Skip to content

Commit bd9b5ad

Browse files
committed
Dont report creds
We dont know if a DOMAIN or IP is specified etc.
1 parent fc018eb commit bd9b5ad

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

modules/post/windows/manage/change_password.rb

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ def run
6666
err_msg = 'NERR_PasswordTooShort'
6767
when 0
6868
print_good('Password change successful.')
69-
report_creds(username, new_password, domain)
7069
else
7170
err_msg = "unknown error code: #{result['return']}"
7271
end
@@ -77,26 +76,5 @@ def run
7776

7877
end
7978

80-
def report_creds(user, pass, domain)
81-
if session.db_record
82-
source_id = session.db_record.id
83-
else
84-
source_id = nil
85-
end
86-
87-
unless domain
88-
domain = session.sock.peerhost
89-
end
90-
91-
report_auth_info(
92-
:host => domain,
93-
:port => 445,
94-
:sname => 'smb',
95-
:proto => 'tcp',
96-
:source_id => source_id,
97-
:source_type => "exploit",
98-
:user => user,
99-
:pass => pass)
100-
end
10179
end
10280

0 commit comments

Comments
 (0)