Пример #1
0
 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}")
Пример #2
0
 def remove(self):
     login_items_rm_path = get_full_path("auxiliary/login-items-rm.sh")
     os.system(f"{login_items_rm_path} {self.name}")
Пример #3
0
 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}")
Пример #4
0
 def remove(self):
     login_items_rm_path = get_full_path('auxiliary/login-items-rm.sh')
     os.system(f'{login_items_rm_path} {self.name}')
Пример #5
0
 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}')