Land #11044, Add pretty 'authenticating' message to MS17-010 modules

4.x
Brendan Coles 2018-12-01 07:06:03 +00:00 committed by Metasploit
parent 2236e79771
commit eeff29167a
No known key found for this signature in database
GPG Key ID: CDFB5FA52007B954
2 changed files with 6 additions and 0 deletions

View File

@ -71,6 +71,9 @@ class MetasploitModule < Msf::Auxiliary
def run_host(ip)
begin
if datastore['SMBUser'].present?
print_status("Authenticating to #{ip} as user '#{splitname(datastore['SMBUser'])}'...")
end
eternal_pwn(ip) # exploit Admin session
smb_pwn(ip) # psexec

View File

@ -102,6 +102,9 @@ class MetasploitModule < Msf::Exploit::Remote
def exploit
begin
if datastore['SMBUser'].present?
print_status("Authenticating to #{datastore['RHOSTS']} as user '#{splitname(datastore['SMBUser'])}'...")
end
eternal_pwn(datastore['RHOST'])
smb_pwn()