Example #1
0
 def _scan(self, context):
     mop = MachOParser(context.data)
     try:
         mop.parse()
     except MachOParserError, e:
         self._error("ERROR: %s" % e)
         return
Example #2
0
 def run(self, obj, config):
     data = obj.filedata.read()
     mop = MachOParser(data)
     try:
         mop.parse()
     except MachOParserError, e:
         self._error("ERROR: %s" % e)
         return
Example #3
0
 def run(self, obj, config):
     data = obj.filedata.read()
     mop = MachOParser(data)
     try:
         mop.parse()
     except MachOParserError, e:
         self._error("ERROR: %s" % e)
         return