Skip to content

Commit a71fcae

Browse files
agixMeatballs1
authored andcommitted
add comments on change description call
1 parent bc4cb3f commit a71fcae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ def psexec(command, disconnect=true, service_description=nil)
105105
vprint_status("#{peer} - Changing service description...")
106106
stubdata =
107107
svc_handle +
108-
NDR.long(1) +
109-
NDR.long(1) +
110-
NDR.long(0x0200) +
108+
NDR.long(1) + # dwInfoLevel = SERVICE_CONFIG_DESCRIPTION
109+
NDR.long(1) + # lpInfo -> *SERVICE_DESCRIPTION
110+
NDR.long(0x0200) + # SERVICE_DESCRIPTION struct
111111
NDR.long(0x04000200) +
112112
NDR.wstring(service_description)
113113
begin
114-
response = dcerpc.call(0x25, stubdata)
114+
response = dcerpc.call(0x25, stubdata) # ChangeServiceConfig2
115115
rescue Rex::Proto::DCERPC::Exceptions::Fault => e
116116
print_error("#{peer} - Error changing service description : #{e}")
117117
end

0 commit comments

Comments
 (0)