def run(self): plist_path = get_full_path("auxiliary/poisonapple.plist") trigger_path = get_full_path("auxiliary/poisonapple.sh") with open(plist_path) as f: plist_data = f.read() with open(f"/etc/emond.d/rules/{self.name}.plist", "w") as f: f.write(plist_data.format(trigger_path)) os.system(f"touch /private/var/db/emondClients/{self.name}")
def remove(self): login_items_rm_path = get_full_path("auxiliary/login-items-rm.sh") os.system(f"{login_items_rm_path} {self.name}")
def run(self): app_path = create_app(self.name, self.command, "LoginItem") login_items_add_path = get_full_path("auxiliary/login-items-add.sh") os.system(f"{login_items_add_path} {app_path}")
def remove(self): login_items_rm_path = get_full_path('auxiliary/login-items-rm.sh') os.system(f'{login_items_rm_path} {self.name}')
def run(self): app_path = create_app(self.name, self.command, 'LoginItem') login_items_add_path = get_full_path('auxiliary/login-items-add.sh') os.system(f'{login_items_add_path} {app_path}')