# Copyright (c) 2003-2006 CORE Security Technologies # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # $Id: dcom.py,v 1.5 2006/05/23 21:19:26 gera Exp $ # import array from impacket import ImpactPacket import dcerpc import ndrutils from struct import * MSRPC_UUID_REMOTE_ACTIVATION ='\xb8\x4a\x9f\x4d\x1c\x7d\xcf\x11\x86\x1e\x00\x20\xaf\x6e\x7c\x57\x00\x00\x00\x00' MSRPC_UUID_SYSTEM_ACTIVATOR = '\xa0\x01\x00\x00\x00\x00\x00\x00\xc0\x00\x00\x00\x00\x00\x00\x46\x00\x00\x00\x00' class ORPCTHIS: __SIZE = 32 def __init__(self,data=0): self._version_hi = 5 self._version_low = 6 self._flags = 1 self._reserved1 = 0 self._cid = '\xf1\x59\xeb\x61\xfb\x1e\xd1\x11\xbc\xd9\x00\x60\x97\x92\xd2\x6c' self._extensions = '\x60\x5e\x0d\x00' def set_version(self, mayor, minor): self._version_hi = mayor self._version_low = minor def set_cid(self, uuid): self._cid = uuid def rawData(self): return pack('