diff --git a/lib/msf/core/exploit/smb/psexec.rb b/lib/msf/core/exploit/smb/psexec.rb index 32ed876d24..d3a6ccf13c 100644 --- a/lib/msf/core/exploit/smb/psexec.rb +++ b/lib/msf/core/exploit/smb/psexec.rb @@ -105,13 +105,13 @@ module Exploit::Remote::SMB::Psexec vprint_status("#{peer} - Changing service description...") stubdata = svc_handle + - NDR.long(1) + - NDR.long(1) + - NDR.long(0x0200) + + NDR.long(1) + # dwInfoLevel = SERVICE_CONFIG_DESCRIPTION + NDR.long(1) + # lpInfo -> *SERVICE_DESCRIPTION + NDR.long(0x0200) + # SERVICE_DESCRIPTION struct NDR.long(0x04000200) + NDR.wstring(service_description) begin - response = dcerpc.call(0x25, stubdata) + response = dcerpc.call(0x25, stubdata) # ChangeServiceConfig2 rescue Rex::Proto::DCERPC::Exceptions::Fault => e print_error("#{peer} - Error changing service description : #{e}") end