rodionovd/cuckoo-osx-analyzer

View on GitHub
analyzer/darwin/modules/packages/macho.py

Summary

Maintainability
A
0 mins
Test Coverage
#!/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)