Skip to content

Commit c220053

Browse files
committed
Tidy up of output
1 parent fa2aa47 commit c220053

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/auxiliary/scanner/smb/smb_login.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def run_host(ip)
8080

8181
unless datastore['RECORD_GUEST']
8282
if accepts_guest_logins?(domain)
83-
print_status("#{ip} - This system allows guest sessions with any credentials, these instances will not be reported.")
83+
print_status("#{ip} - This system allows guest sessions with any credentials, these instances will not be recorded.")
8484
end
8585
end
8686

@@ -197,15 +197,15 @@ def try_user_pass(domain, user, pass)
197197
# Auth user indicates if the login was as a guest or not
198198
if(simple.client.auth_user)
199199
print_good(output_message % "SUCCESSFUL LOGIN")
200-
vprint_status("Auth-User: #{simple.client.auth_user}")
201200
validuser_case_sensitive?(domain, user, pass)
202201
report_creds(domain,user,pass,true)
203202
else
204203
if datastore['RECORD_GUEST']
205204
print_status(output_message % "GUEST LOGIN")
206-
@accepts_guest_logins[rhost] = [user, pass]
207205
report_creds(domain,user,pass,true)
208-
end
206+
elsif datastore['VERBOSE']
207+
print_status(output_message % "GUEST LOGIN")
208+
end
209209
end
210210
when *@correct_credentials_status_codes
211211
print_status(output_message % "FAILED LOGIN, VALID CREDENTIALS" )

0 commit comments

Comments
 (0)