add comments on change description call

bug/bundler_fix
agix 2014-04-01 20:17:35 +02:00 committed by Meatballs
parent bc4cb3febf
commit a71fcaeefd
1 changed files with 4 additions and 4 deletions

View File

@ -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