Python pyasn1.debug.setLogger() Examples
The following are 1
code examples of pyasn1.debug.setLogger().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
pyasn1.debug
, or try the search function
.
Example #1
Source File: blobparser.py From iChainbreaker with GNU General Public License v2.0 | 5 votes |
def ParseIt(self, data, tblname, export): record = {} #debug.setLogger(debug.Debug('all')) Decoded, _ = decoder.decode(data) count = 0 while 1: try: seq = Decoded.getComponentByPosition(count) k = seq.getComponentByPosition(0) data = '%s' % seq.getComponentByPosition(1) except: #print ' [-] Decrypted', count, 'items in', tblname break if k == 'atyp': data = self.GetAuthType(data) elif k == 'pdmn': data = self.GetAccessibleName(data) elif k == 'cdat' or k == 'mdat': data = self.Getdate(data) elif k == 'ptcl': data = self.GetProtoFullName(data) elif k == 'klbl': data = data.encode('hex') if export == 0: k = self.GetColumnFullName('%s'%k) record[k] = data count += 1 return record