Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/lib/rex/proto/dcerpc/wdscp/constants.rb
Views: 11766
# -*- coding: binary -*-1module Rex2module Proto3module DCERPC4module WDSCP5# http://msdn.microsoft.com/en-us/library/dd891406(prot.20).aspx6# http://msdn.microsoft.com/en-us/library/dd541332(prot.20).aspx7# Not all values defined by the spec have been imported...8class Constants9WDSCP_RPC_UUID = "1A927394-352E-4553-AE3F-7CF4AAFCA620"10OS_DEPLOYMENT_GUID = "\x5a\xeb\xde\xd8\xfd\xef\xb2\x43\x99\xfc\x1a\x8a\x59\x21\xc2\x27"1112VAR_NAME_ARCHITECTURE = "ARCHITECTURE"13VAR_NAME_CLIENT_GUID = "CLIENT_GUID"14VAR_NAME_CLIENT_MAC = "CLIENT_MAC"15VAR_NAME_VERSION = "VERSION"16VAR_NAME_MESSAGE_TYPE = "MESSAGE_TYPE"17VAR_NAME_TRANSACTION_ID = "TRANSACTION_ID"18VAR_NAME_FLAGS = "FLAGS"19VAR_NAME_CC = "CC" #Client Capabilities20VAR_NAME_IMDC = "IMDC"2122VAR_TYPE_LOOKUP = {23VAR_NAME_ARCHITECTURE => :ULONG,24VAR_NAME_CLIENT_GUID => :WSTRING,25VAR_NAME_CLIENT_MAC => :WSTRING,26VAR_NAME_VERSION => :ULONG,27VAR_NAME_MESSAGE_TYPE => :ULONG,28VAR_NAME_TRANSACTION_ID => :WSTRING,29VAR_NAME_FLAGS => :ULONG,30VAR_NAME_CC => :ULONG,31VAR_NAME_IMDC => :ULONG32}3334CC_FLAGS = {35:V2 => 1,36:VHDX => 237}3839DOMAIN_JOIN_FLAGS = {40:JOIN_DOMAIN => 1,41:ACCOUNT_EXISTS => 2,42:PRESTAGE_USING_MAC => 3,43:RESET_BOOT_PROGRAM => 25644}4546ARCHITECTURE = {47:X64 => 9,48:X86 => 0,49:IA64 => 6,50:ARM => 551}5253PACKET_TYPE = {54:REQUEST => 1,55:REPLY => 256}5758OPCODE = {59:IMG_ENUMERATE => 2,60:LOG_INIT => 3,61:LOG_MSG => 4,62:GET_CLIENT_UNATTEND => 5,63:GET_UNATTEND_VARIABLES => 6,64:GET_DOMAIN_JOIN_INFORMATION => 7,65:RESET_BOOT_PROGRAM => 8,66:GET_MACHINE_DRIVER_PACKAGES => 20067}6869BASE_TYPE = {70:BYTE => 0x0001,71:USHORT => 0x0002,72:ULONG => 0x0004,73:ULONG64 => 0x0008,74:STRING => 0x0010,75:WSTRING => 0x0020,76:BLOB => 0x004077}7879TYPE_MODIFIER = {80:NONE => 0x0000,81:ARRAY => 0x100082}8384end85end86end87end88end899091