Skip to content

Commit a47b883

Browse files
committed
Remove redundant simple.connect
Remove redundant simple.connect. Thanks @jlee-r7
1 parent b2eeaef commit a47b883

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

modules/auxiliary/scanner/smb/smb_login.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,7 @@ def check_login_status(domain, user, pass)
135135
begin
136136
simple.connect("\\\\#{datastore['RHOST']}\\admin$")
137137
status_code = :admin_access
138-
# Restore the orginal connection
139138
simple.disconnect("\\\\#{datastore['RHOST']}\\admin$")
140-
simple.connect("\\\\#{datastore['RHOST']}\\IPC$")
141139
rescue
142140
status_code = :not_admin
143141
ensure

0 commit comments

Comments
 (0)