示例#1
0
文件: pptp.py 项目: sprout42/CanCat
 def __init__(self):
     VStruct.__init__(self)
     self.msgsize    = v_uint16(bigend=True)
     self.msgtype    = v_uint16(bigend=True)
     self.pptpmagic  = v_uint32(bigend=True)
     self.ctrltype   = v_uint16(bigend=True)
     self.res0       = v_uint16(bigend=True)
示例#2
0
 def __init__(self,shape=1):
     VStruct.__init__(self)
     self.Ratio  = v_uint8()
     if shape <= 2:
         self.Color = RGB()
     else:
         self.Color = RGBA()
 def __init__(self):
     VStruct.__init__(self)
     self.a = v_uint8()
     self.b = v_uint16()
     self.c = v_uint32()
     self.d = v_uint8()
     self.e = VArray((v_uint32(), v_uint32(), v_uint32(), v_uint32()))
示例#4
0
 def __init__(self,shape=1):
     VStruct.__init__(self)
     self._swf_shape = shape
     self.BitFields       = VBitField()
     self.BitFields.SpreadMode           = v_bits(2)
     self.BitFields.InterpolationMode    = v_bits(2)
     self.BitFields.NumGradients         = v_bits(4)
     self.GradientRecords = VArray()
示例#5
0
文件: swf.py 项目: bat-serjo/vivisect
 def __init__(self,shape=1):
     VStruct.__init__(self)
     self._swf_shape = shape
     self.Width  = v_uint16()
     colorcls = RGB
     if shape >= 3:
         colorcls = RGBA
     self.Color = colorcls()
示例#6
0
文件: swf.py 项目: bat-serjo/vivisect
 def __init__(self, shape=1):
     VStruct.__init__(self)
     self.FillStyles     = FILLSTYLEARRAY(shape=shape)
     self.LineStyles     = LINESTYLEARRAY(shape=shape)
     self.NumBits        = VBitField()
     self.NumBits.NumFillBits    = v_bits(4)
     self.NumBits.NumLineBits    = v_bits(4)
     self.ShapeRecords           = VArray()
示例#7
0
文件: swf.py 项目: bat-serjo/vivisect
    def __init__(self, size):
        VStruct.__init__(self)
        self.CharacterId    = v_uint16()
        self.Depth          = v_uint16()
        self.Matrix         = MATRIX()
        self.ColorTransform = SwfColorTransform()

        self._swf_tagsize = size
示例#8
0
文件: swf.py 项目: bat-serjo/vivisect
 def __init__(self):
     VStruct.__init__(self)
     self.Signature  = v_str(3)
     self.Version    = v_uint8()
     self.FileLength = v_uint32()
     self.FrameSize  = RECT()
     self.FrameRate  = v_uint16()
     self.FrameCount = v_uint16()
示例#9
0
 def __init__(self):
     VStruct.__init__(self)
     self.opcode = v_uint32(enum=PATCH_ACTIONS)
     self.action_size = v_uint32()  # size of entire structure
     self.pattern_size = v_uint32()  # size of pattern field
     self.rva = v_uint32()
     self.unknown = v_uint32()
     self.module_name = v_wstr(size=MAX_MODULE)
     self.pattern = v_bytes(size=0)
 def __init__(self):
     VStruct.__init__(self)
     self.opcode = v_uint32(enum=PATCH_ACTIONS)
     self.action_size = v_uint32()  # size of entire structure
     self.pattern_size = v_uint32()  # size of pattern field
     self.rva = v_uint32()
     self.unknown = v_uint32()
     self.module_name = v_wstr(size=MAX_MODULE)
     self.pattern = v_bytes(size=0)
示例#11
0
 def __init__(self, shape=1):
     VStruct.__init__(self)
     self._swf_shape = shape
     self.FillStyleType      = v_uint8()
     self.Color              = RGB()
     self.GradientMatrix     = MATRIX()
     self.Gradient           = GRADIENT(shape=shape)
     self.BitmapId           = v_uint16()
     self.BitmapMatrix       = MATRIX()
示例#12
0
    def __init__(self, format):
        VStruct.__init__(self)
        self.format = format

        self.flags = v_uint32()
        self.name = v_zstr_utf8()
        self.ordinal = v_uint32()
        self.type_info = v_zbytes()
        self.cmt = v_zstr_utf8()
        self.fields_buf = v_zbytes()
        self.fieldcmts = v_zbytes()
        self.sclass = v_uint8()
示例#13
0
文件: swf.py 项目: bat-serjo/vivisect
    def __init__(self, size):
        VStruct.__init__(self)
        self.ShapeId        = v_uint16()
        self.ShapeBounds    = RECT()
        self.EdgeBounds     = RECT()
        self.ShapeFlags     = VBitField()
        self.Shapes         = SHAPEWITHSTYLE(shape=4)

        self.ShapeFlags.Reserved                = v_bits(5)
        self.ShapeFlags.UsesFillWindingRule     = v_bits(1)
        self.ShapeFlags.UsesNonScalingStrokes   = v_bits(1)
        self.ShapeFlags.UsesScalingStrokes      = v_bits(1)
示例#14
0
    def __init__(self, flags, format):
        VStruct.__init__(self)

        self.flags = flags
        self.format = format
        self.defs = None

        self.ndefs = v_uint32()
        self.size = v_uint32()

        if self.flags & TIL_ZIP:
            self.csize = v_uint32()
        else:
            self.csize = None

        self.buf = v_bytes()
示例#15
0
    def __init__(self, buf=None, wordsize=4, inf=None):
        VStruct.__init__(self)
        self.wordsize = wordsize
        self.inf = inf

        self.signature = v_str(size=0x06)

        # https://github.com/aerosoul94/tilutil/blob/master/distil.py#L545

        self.format = v_uint32()
        self.flags = v_uint32()

        self.title_len = v_uint8()
        self.title = v_str()

        self.base_len = v_uint8()
        self.base = v_str()

        self.id = v_uint8()
        self.cm = v_uint8()
        self.size_i = v_uint8()
        self.size_b = v_uint8()
        self.size_e = v_uint8()
        self.def_align = v_uint8()
示例#16
0
文件: swf.py 项目: bat-serjo/vivisect
 def __init__(self):
     VStruct.__init__(self)
     self.Header = SwfHeader()
     self.Tags = VArray()
示例#17
0
文件: pptp.py 项目: sprout42/CanCat
 def __init__(self):
     VStruct.__init__(self)
     # break it up into fixed header and dyn fields
     self.pptphdr = PPTPHeader()
     self.pptpmsg = VStruct()
示例#18
0
文件: swf.py 项目: bat-serjo/vivisect
 def __init__(self):
     VStruct.__init__(self)
     self.TagHeader = SwfTagHeader()
     self.TagData = VStruct()
示例#19
0
文件: swf.py 项目: bat-serjo/vivisect
 def __init__(self, size):
     VStruct.__init__(self)
     self.SceneCount         = EncodedU32()
     self.Scenes             = VArray()
     self.FrameLabelCount    = EncodedU32()
     self.Frames             = VArray()
示例#20
0
文件: swf.py 项目: bat-serjo/vivisect
 def __init__(self):
     VStruct.__init__(self)
     self.Offset     = EncodedU32()
     self.Name       = v_zstr()
示例#21
0
文件: swf.py 项目: bat-serjo/vivisect
 def __init__(self, size):
     VStruct.__init__(self)
     self.BackgroundColor = RGB()
示例#22
0
文件: swf.py 项目: bat-serjo/vivisect
 def __init__(self):
     VStruct.__init__(self)
     self.TagCodeAndLength = v_uint16()
     self.OptionalLength   = v_uint32()
示例#23
0
文件: swf.py 项目: bat-serjo/vivisect
 def __init__(self,shape=1):
     VStruct.__init__(self)
     self._swf_shape = 1
     self.LineStyleCount     = v_uint8()
     self.LineStyleCountEx   = v_uint16()
     self.LineStyles         = VArray()
示例#24
0
 def __init__(self):
     VStruct.__init__(self)
示例#25
0
 def __init__(self):
     VStruct.__init__(self)
     self.Red    = v_uint8()
     self.Green  = v_uint8()
     self.Blue   = v_uint8()
     self.Alpha  = v_uint8()