Skip to content

Commit b702263

Browse files
Royce DavisRoyce Davis
authored andcommitted
Added fix form Eric Milam to simple.disconnect
1 parent 13140d0 commit b702263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/exploit/psexec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def psexec(command)
148148
end
149149

150150
select(nil, nil, nil, 1.0)
151-
simple.disconnect("IPC$")
151+
simple.disconnect("\\\\#{datastore['RHOST']}\\IPC$")
152152
return true
153153
end
154154

0 commit comments

Comments
 (0)