Exemplo n.º 1
0
 def __init__(self):
     osxLocalExploit.__init__(self)
     self.name           = NAME
     self.node           = None
     self.local_res      = os.path.join(os.path.dirname(__file__), 'Resources')
     self.local_exp      = os.path.join(self.local_res, 'x')
     self.remote_exp     = '/tmp/x'
     self.remote_helper  = '/tmp/h'
Exemplo n.º 2
0
    def __init__(self):
        osxLocalExploit.__init__(self)
        self.name = NAME
        self.node = None
        self.local_res = os.path.join(os.path.dirname(__file__), 'Resources')
        self.remote_exp = '/tmp/x'
        self.remote_helper = '/tmp/h'

        # Indicates if we should remove or simply backup crontab (if it existed before)
        self.should_remove_cron = True
Exemplo n.º 3
0
 def __init__(self):
     osxLocalExploit.__init__(self)
     self.name = NAME
     self.node = None
     self.local_res = os.path.join(os.path.dirname(__file__), 'Resources')
     self.local_helper = self.local_helper_64
     self.local_exp = os.path.join(self.local_res, 'x')
     self.local_info = os.path.join(self.local_res, 'Info.plist')
     self.remote_app = '/System/Library/CoreServices/Applications/Directory\ Utility.app'
     self.remote_tmp_dir = '/tmp/Directory Utility.app'
     self.remote_bundle = os.path.join(self.remote_tmp_dir,
                                       'Contents/Plugins/x.daplug')
     self.remote_info = os.path.join(self.remote_bundle, "Contents",
                                     os.path.basename(self.local_info))
     self.remote_exp = os.path.join(self.remote_bundle, "Contents", "MacOS",
                                    os.path.basename(self.local_exp))
     self.remote_app_bin = '/tmp/Directory Utility.app/Contents/MacOS/Directory Utility'
     self.remote_helper = '/tmp/h'