示例#1
0
 def parse(self, data):
     rb = HaspASN1.de_asn1(data)[self.packet_id]
     self.val_80 = HaspASN1.asn1_get_intval(rb[0x80])
     self.hasp_id = HaspASN1.asn1_get_intval(rb[0x81])
     self.scope = HaspASN1.asn1_get_strval(rb[0x82])
     self.format = HaspASN1.asn1_get_strval(rb[0x83])
     self.val_84 = HaspASN1.asn1_get_intval(rb[0x84])
示例#2
0
 def parse(self, data):
     rb = HaspASN1.de_asn1(data)[self.packet_id]
     self.pid = HaspASN1.asn1_get_intval(rb[0x80])
     self.tid = HaspASN1.asn1_get_intval(rb[0x81])
     self.hasp_uid = HaspASN1.asn1_get_intval(rb[0x82])
     self.vendor_id = HaspASN1.asn1_get_intval(rb[0x83])
     self.feature_id = HaspASN1.asn1_get_intval(rb[0x84])
     self.username = HaspASN1.asn1_get_strval(rb[0x85])
     self.machine_name = HaspASN1.asn1_get_strval(rb[0x86])
     self.login_type = HaspASN1.asn1_get_strval(rb[0x87])
     self.val_88 = HaspASN1.asn1_get_intval(rb[0x88])
     self.val_89 = HaspASN1.asn1_get_intval(rb[0x89])
     self.timestamp = HaspASN1.asn1_get_intval(rb[0x8A])
     self.val_8b = HaspASN1.asn1_get_intval(rb[0x8B])
     self.val_8c = HaspASN1.asn1_get_intval(rb[0x8C])
     self.val_8d = HaspASN1.asn1_get_intval(rb[0x8D])
     self.val_8e = HaspASN1.asn1_get_intval(rb[0x8E])
     self.volume_serial = HaspASN1.asn1_get_intval(rb[0x8F])
     self.val_90 = HaspASN1.asn1_get_intval(rb[0x90])
     self.hasp_handle = HaspASN1.asn1_get_intval(rb[0x91])
示例#3
0
 def parse(self, data):
     rb = HaspASN1.de_asn1(data)[self.packet_id]
     self.status = HaspASN1.asn1_get_intval(rb[0x80])
     self.info = HaspASN1.asn1_get_strval(rb[0x81])