analyzer/darwin/modules/packages/macho.py
#!/usr/bin/env python
# Copyright (C) 2015 Dmitry Rodionov
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
from os import system
from lib.core.packages import Package
class Macho(Package):
""" Mach-O executable analysys package. """
def prepare(self):
# Make sure that our target is executable
system("/bin/chmod +x \"%s\"" % self.target)