Skip to content

Commit 5334f26

Browse files
agixMeatballs1
authored andcommitted
Fix a bug for backwards compatibility
1 parent 631a7b9 commit 5334f26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/exploit/smb/psexec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def smb_read_file(smbshare, host, file)
5252
# @param command [String] Should be a valid windows command
5353
# @param disconnect [Boolean] Disconnect afterwards
5454
# @return [Boolean] Whether everything went well
55-
def psexec(command, service_description,disconnect=true)
55+
def psexec(command, disconnect=true, service_description=nil)
5656
simple.connect("\\\\#{datastore['RHOST']}\\IPC$")
5757
handle = dcerpc_handle('367abb81-9844-35f1-ad32-98f038001003', '2.0', 'ncacn_np', ["\\svcctl"])
5858
vprint_status("#{peer} - Binding to #{handle} ...")

0 commit comments

Comments
 (0)