Versions in this module Expand all Collapse all v0 v0.2.2 Nov 18, 2022 Changes in this version + const ComplexPing + const NDR64Syntax + const NDRSyntax + const PDUAck + const PDUAlter_Context + const PDUAlter_Context_Resp + const PDUBind + const PDUBind_Ack + const PDUBind_Nak + const PDUCancel_Ack + const PDUCl_Cancel + const PDUCo_Cancel + const PDUFack + const PDUFault + const PDUFlagBroadcast + const PDUFlagFrag + const PDUFlagIdemPotent + const PDUFlagLastFrag + const PDUFlagMayBe + const PDUFlagNoFack + const PDUFlagPending + const PDUFlagReserved_01 + const PDUFlagReserved_80 + const PDUNoCall + const PDUOrphaned + const PDUPing + const PDUReject + const PDURequest + const PDUResponse + const PDUShutdown + const PDUWorking + const RChangeServiceConfig2A + const RChangeServiceConfig2W + const RChangeServiceConfigA + const RChangeServiceConfigW + const RCloseNotifyHandle + const RCloseServiceHandle + const RControlService + const RControlServiceExA + const RControlServiceExW + const RCreateServiceA + const RCreateServiceW + const RCreateServiceWOW64A + const RCreateServiceWOW64W + const RCreateWowService + const RDeleteService + const REnumDependentServicesA + const REnumDependentServicesW + const REnumServiceGroupW + const REnumServicesStatusA + const REnumServicesStatusExA + const REnumServicesStatusExW + const REnumServicesStatusW + const RGetNotifyResults + const RGetServiceDisplayNameA + const RGetServiceDisplayNameW + const RGetServiceKeyNameA + const RGetServiceKeyNameW + const RLockServiceDatabase + const RNotifyBootConfigStatus + const RNotifyServiceStatusChange + const ROpenSCManager2 + const ROpenSCManagerA + const ROpenSCManagerW + const ROpenServiceA + const ROpenServiceW + const RQueryServiceConfig2A + const RQueryServiceConfig2W + const RQueryServiceConfigA + const RQueryServiceConfigEx + const RQueryServiceConfigW + const RQueryServiceLockStatusA + const RQueryServiceLockStatusW + const RQueryServiceObjectSecurity + const RQueryServiceStatus + const RQueryServiceStatusEx + const RSetServiceObjectSecurity + const RSetServiceStatus + const RStartServiceA + const RStartServiceW + const RUnlockServiceDatabase + const ResolveOxid + const ResolveOxid2 + const SC_MANAGER_CONNECT + const SC_MANAGER_CREATE_SERVICE + const SERVICE_ALL_ACCESS + const SERVICE_AUTO_START + const SERVICE_BOOT_START + const SERVICE_DEMAND_START + const SERVICE_DISABLED + const SERVICE_ERROR_CRITICAL + const SERVICE_ERROR_IGNORE + const SERVICE_ERROR_NORMAL + const SERVICE_ERROR_SEVERE + const SERVICE_FILE_SYSTEM_DRIVER + const SERVICE_INTERACTIVE_PROCESS + const SERVICE_KERNEL_DRIVER + const SERVICE_SYSTEM_START + const SERVICE_WIN32_OWN_PROCESS + const SERVICE_WIN32_SHARE_PROCESS + const ServerAlive + const ServerAlive2 + const SimplePing + type AddressStruct struct + NumEntries uint16 + SecurityOffset uint16 + type CtxEItemResponseStruct struct + AckReason uint16 + AckResult uint16 + SyntaxVer uint32 + TransferSyntax []byte + type CtxEItemStruct struct + AbstractSyntax SyntaxIDStruct + ContextId uint16 + NumTransItems uint8 + Reserved uint8 + TransferSyntax SyntaxIDStruct + type MSRPCBindAckStruct struct + AssocGroup uint32 + CtxItem CtxEItemResponseStruct + MaxRecvFrag uint16 + MaxXmitFrag uint16 + NumResults uint8 + ScndryAddr []byte + ScndryAddrlen uint16 + func NewMSRPCBindAck() MSRPCBindAckStruct + type MSRPCBindStruct struct + AssocGroup uint32 + CtxItem CtxEItemStruct + MaxRecvFrag uint16 + MaxXmitFrag uint16 + NumCtxItems uint8 + Reserved uint8 + Reserved2 uint16 + type MSRPCHeaderStruct struct + AuthLength uint16 + CallId uint32 + DataRepresentation uint32 + FragLength uint16 + PacketFlags uint8 + PacketType uint8 + Version uint8 + VersionMinor uint8 + func NewMSRPCHeader() MSRPCHeaderStruct + type MSRPCRequestHeaderStruct struct + AllocHint uint32 + Buffer interface{} + ContextId uint16 + OpNum uint16 + func NewOpenSCManagerWRequest() MSRPCRequestHeaderStruct + func NewRCloseServiceHandleRequest(contextHandle []byte) MSRPCRequestHeaderStruct + func NewRCreateServiceWRequest(contextHandle []byte, servicename, uploadPathFile string) MSRPCRequestHeaderStruct + func NewRDeleteServiceRequest(contextHandle []byte) MSRPCRequestHeaderStruct + func NewROpenServiceWRequest(contextHandle []byte, servicename string) MSRPCRequestHeaderStruct + func NewRStartServiceWRequest(contextHandle []byte) MSRPCRequestHeaderStruct + type OpenSCManagerWResponse struct + AllocHint uint32 + CancelCount uint8 + ContextHandle []byte + ContextId uint16 + Reserved uint8 + ReturnCode uint32 + func NewOpenSCManagerWResponse() OpenSCManagerWResponse + type OpenSCManagerWStruct struct + AccessMask uint32 + Database database + MachineName machineName + type RCloseServiceHandleRequestStruct struct + ContextHandle []byte + type RCloseServiceHandleResponseStruct struct + AllocHint uint32 + CancelCount uint8 + ContextHandle []byte + ContextId uint16 + Reserved uint8 + ReturnCode uint32 + func NewRCloseServiceHandleResponse() RCloseServiceHandleResponseStruct + type RCreateServiceWRequestStruct struct + AccessMask uint32 + BinaryPathName binaryPathName + ContextHandle []byte + DependSize uint32 + DisplayName displayName + NULLPointer uint32 + NULLPointer2 uint32 + NULLPointer3 uint32 + NULLPointer4 uint32 + PasswordSize uint32 + ServiceErrorControl uint32 + ServiceName serviceName + ServiceStartType uint32 + ServiceType uint32 + TagId uint32 + type RCreateServiceWResponseStruct struct + AllocHint uint32 + CancelCount uint8 + ContextHandle []byte + ContextId uint16 + Reserved uint8 + ReturnCode uint32 + TagId uint32 + func NewRCreateServiceWResponse() RCreateServiceWResponseStruct + type RDeleteServiceRequestStruct struct + ContextHandle []byte + type RDeleteServiceResponseStruct struct + AllocHint uint32 + CancelCount uint8 + ContextId uint16 + Reserved uint8 + ReturnCode uint32 + func NewRDeleteServiceResponse() RDeleteServiceResponseStruct + type ROpenServiceWRequestStruct struct + AccessMask uint32 + ContextHandle []byte + ServiceName serviceName + type ROpenServiceWResponseStruct struct + AllocHint uint32 + CancelCount uint8 + ContextHandle []byte + ContextId uint16 + Reserved uint8 + ReturnCode uint32 + func NewROpenServiceWResponse() ROpenServiceWResponseStruct + type RStartServiceWRequestStruct struct + Argc uint32 + Argv []byte + ContextHandle []byte + type RStartServiceWResponseStruct struct + AllocHint uint32 + CancelCount uint8 + ContextId uint16 + Reserved uint8 + StubData uint32 + func NewRStartServiceWResponse() RStartServiceWResponseStruct + type SMBClient struct + func SMBTransport() (client *SMBClient, err error) + func (c *SMBClient) CloseService(treeId uint32, fileId, serviceHandle []byte, callId uint32) error + func (c *SMBClient) CreateService(treeId uint32, fileId, contextHandle []byte, ...) (handler []byte, err error) + func (c *SMBClient) DeleteService(treeId uint32, fileId, serviceHandle []byte, callId uint32) (err error) + func (c *SMBClient) FileUpload(file, Path string) (filename string, err error) + func (c *SMBClient) MSRPCBind(treeId uint32, fileId []byte, uuid string, version uint32) (err error) + func (c *SMBClient) OpenService(treeId uint32, fileId, contextHandle []byte, servicename string, callId uint32) (err error) + func (c *SMBClient) OpenSvcManager(treeId, callId uint32) (fileid, handler []byte, err error) + func (c *SMBClient) ServiceDelete(serviceHandle []byte) (err error) + func (c *SMBClient) ServiceInstall(servicename, file, path string) (service string, servicehandle []byte, err error) + func (c *SMBClient) StartService(treeId uint32, fileId, serviceHandle []byte, callId uint32) (err error) + type ServerAlive2RequestStruct struct + AllocHint uint32 + ContextId uint16 + Opnum uint16 + func NewServerAlive2Request() ServerAlive2RequestStruct + type ServerAlive2ResponseStruct struct + AllocHint uint32 + CancelCount uint8 + ContextId uint16 + PpdsaOrBindings AddressStruct + Reserved uint8 + Reserved2 uint64 + Unknown uint64 + VersionMajor uint16 + VersionMinor uint16 + func NewServerAlive2Response() ServerAlive2ResponseStruct + type SyntaxIDStruct struct + UUID []byte + Version uint32 + type TCPClient struct + func NewTCPSession(opt common.ClientOptions, debug bool) (client *TCPClient, err error) + func TCPTransport() (client *TCPClient, err error) + func (c *TCPClient) MSRPCBind(uuid string, version uint32) (err error) + func (c *TCPClient) ServerAlive2Request(callId uint32) (address []string, err error)