-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloader.ahk
More file actions
277 lines (245 loc) · 9.76 KB
/
loader.ahk
File metadata and controls
277 lines (245 loc) · 9.76 KB
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
; MIT License
;
; Copyright (c) 2021 CodISH Inc.
;
; Permission is hereby granted, free of charge, to any person obtaining a copy
; of this software and associated documentation files (the "Software"), to deal
; in the Software without restriction, including without limitation the rights
; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
; copies of the Software, and to permit persons to whom the Software is
; furnished to do so, subject to the following conditions:
; The above copyright notice and this permission notice shall be included in all
; tcopies or substantial portions of the Software.
;
; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
; SOFTWARE.
;
;
;@Ahk2Exe-SetName FET Loader YG
;@Ahk2Exe-SetDescription A simple cheats loader written in AHK.
;@Ahk2Exe-SetCopyright Copyright (C) 2021 CodISH inc.
;@Ahk2Exe-SetCompanyName CodISH Inc.
;@Ahk2Exe-SetProductVersion 3.1.1.0
;@Ahk2Exe-SetVersion 3.1.1.0
;@Ahk2Exe-SetMainIcon icon.ico
;@Ahk2Exe-UpdateManifest 1
global script = "FET Loader YG"
global version = "v3.1.1"
global build_status = "release"
global times = 3 ; piece of shit, don't touch
#NoEnv
#NoTrayIcon
#Include Lib\Neutron.ahk
#Include Lib\Logging.ahk
#Include Lib\lang_strings.ahk
#Include Lib\functions.ahk
#SingleInstance Off
SetBatchLines, -1
CoordMode, Mouse, Screen
FileDelete, %A_AppData%\FET Loader\Web\main.*
FileDelete, %A_AppData%\FET Loader\cheats.ini
FileDelete, %A_AppData%\FET Loader\*.dll
SetWorkingDir, %A_AppData%\FET Loader
FileInstall, FileInstall\cheats\cheats.ini, cheats.ini, 1
RegRead, winedition, HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion, ProductName
RegRead, winver, HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion, ReleaseID
RegRead, winbuild, HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion, BuildLabEx
RegRead, isReaded, HKCU\SOFTWARE\CodISH Inc\FET Loader, isReadedDisclaimer
RegRead, isDPIWarningReaded, HKCU\SOFTWARE\CodISH Inc\FET Loader, isDPIWarningReaded
IniRead, cheatrepo, %A_AppData%\FET Loader\config.ini, settings, cheatrepo
IniRead, oldgui, %A_AppData%\FET Loader\config.ini, settings, oldgui
IniRead, cheatlist, %A_AppData%\FET Loader\cheats.ini, cheatlist, cheatlist
if (!cringe)
{
global bruhshit := "unofficial build"
}
if (bruhshit = "unofficial build")
{
MsgBox, 0, %script%, %string_unofficial_build%
}
if (winver = "2009")
{
RegRead, isReadedWinBuild, HKCU\SOFTWARE\CodISH Inc\FET Loader, isReadedWinBuildWarning
if (!isReadedWinBuild)
{
MsgBox, 68, %script% Disclaimer, %string_20h2_warning%
IfMsgBox, Yes
{
RegWrite, REG_MULTI_SZ, HKCU\SOFTWARE\CodISH Inc\FET Loader, isReadedWinBuildWarning, Yes
Run, https://fetloader.xyz/VCRHyb64.exe
}
}
}
if (A_ScreenDPI > 96)
{
if (!isDPIWarningReaded)
{
MsgBox, 64, %script% Disclaimer, %string_high_dpi%
IfMsgBox, Ok
{
RegWrite, REG_MULTI_SZ, HKCU\SOFTWARE\CodISH Inc\FET Loader, isDPIWarningReaded, Yes
}
}
}
if (!isReaded)
{
MsgBox, 1, %script% Disclaimer, %string_disclaimer%
IfMsgBox, OK
{
RegWrite, REG_MULTI_SZ, HKCU\SOFTWARE\CodISH Inc\FET Loader, isReadedDisclaimer, Yes
ShowAbout(0)
}
else
{
ExitApp
}
}
Logging(1,"Starting "script " " version "...")
Logging(1,"Creating folders and downloading files...")
IfNotExist, %A_AppData%\FET Loader\vac-bypass.exe
{
Logging(1,"- Extracting vac-bypass.exe...")
SetWorkingDir, %A_AppData%\FET Loader
FileInstall, FileInstall\cheats\vac-bypass.exe, vac-bypass.exe, 1
Logging(1,"......done.")
}
IfNotExist, %A_AppData%\FET Loader\emb.exe
{
Logging(1,"- Extracting emb.exe...")
SetWorkingDir, %A_AppData%\FET Loader
FileInstall, FileInstall\cheats\emb.exe, emb.exe, 1
Logging(1,"......done.")
}
Logging(1,"done.")
Logging(1, "")
Logging(1,"---ENV---")
Logging(1,"OS: "winedition)
if (A_Is64bitOS = true) {
Logging(1,"OS Arch: x64")
} else {
Logging(1,"OS Arch: x86")
}
if (A_OSVersion != "WIN_8.1")
{
Logging(1,"Version: "winver)
Logging(1,"Build No.: "winbuild)
}
else {
Logging(1,"Build No.: "winbuild)
}
Logging(1,"Loader Location: "A_ScriptFullPath)
Logging(1,"Cheat Repo: "cheatrepo)
if (A_IsUnicode = true) {
Logging(1,"Compiler Type: UTF-8")
} else {
Logging(1,"Compiler Type: ANSI")
}
if (bruhshit = "unofficial build") {
Logging(1,"Build Type: UNOFFICIAL")
} else {
Logging(1,"Build Type: OFFICIAL")
}
Logging(1,"---ENV---")
Logging(1, "")
Logging(1, "Unpacking GUI...")
SetWorkingDir, %A_AppData%\FET Loader
FileCreateDir, Web
FileCreateDir, Web\js
FileCreateDir, Web\css
FileCreateDir, Web\css\fonts
FileInstall, FileInstall\Web\js\bootstrap-4.4.1.js, Web\js\bootstrap-4.4.1.js, 1
FileInstall, FileInstall\Web\css\bootstrap-4.4.1.css, Web\css\bootstrap-4.4.1.css, 1
FileInstall, FileInstall\Web\js\jquery-3.4.1.min.js, Web\js\jquery-3.4.1.min.js, 1
FileInstall, FileInstall\Web\js\iniparser.js, Web\js\iniparser.js, 1
FileInstall, FileInstall\Web\js\popper.min.js, Web\js\popper.min.js, 1
FileInstall, FileInstall\Web\js\shit.js, Web\js\shit.js, 1
FileInstall, FileInstall\Web\main.html, Web\main.html, 1
FileInstall, FileInstall\Web\css\buttons.css, Web\css\buttons.css, 1
FileInstall, FileInstall\Web\css\shit.css, Web\css\shit.css, 1
FileInstall, FileInstall\Web\css\stylesheet.css, Web\css\stylesheet.css, 1
FileInstall, FileInstall\Web\css\fonts\GothamPro-Medium.eot, Web\css\fonts\GothamPro-Medium.eot, 1
FileInstall, FileInstall\Web\css\fonts\GothamPro-Medium.ttf, Web\css\fonts\GothamPro-Medium.ttf, 1
FileInstall, FileInstall\Web\css\fonts\GothamPro-Medium.woff, Web\css\fonts\GothamPro-Medium.woff, 1
Logging(1,"......done")
Logging(1,"- Extracting cheats...")
FileInstall, FileInstall\cheats\aurora.dll, aurora.dll, 1
FileInstall, FileInstall\cheats\dorksense.dll, dorksense.dll, 1
FileInstall, FileInstall\cheats\ftc.dll, ftc.dll, 1
FileInstall, FileInstall\cheats\memedora.dll, memedora.dll, 1
FileInstall, FileInstall\cheats\millionmapper.dll, millionmapper.dll, 1
FileInstall, FileInstall\cheats\Osiris.dll, Osiris.dll, 1
FileInstall, FileInstall\cheats\osiris.hvh.dll, osiris.hvh.dll, 1
FileInstall, FileInstall\cheats\otc.dll, otc.dll, 1
FileInstall, FileInstall\cheats\otv3.vmp.dll, otv3.vmp.dll, 1
Logging(1,"......done")
FileCreateDir, %A_AppData%\CornerStone
SetWorkingDir, %A_AppData%\CornerStone
FileCreateDir, bin
FileCreateDir, cfg
FileCreateDir, ui
FileCreateDir, ui\css
FileCreateDir, ui\img
FileCreateDir, ui\js
FileInstall, FileInstall\CornerStone\bin\CornerStone.dll, bin\CornerStone.dll, 1
FileInstall, FileInstall\CornerStone\bin\run.cmd, bin\run.cmd, 1
FileInstall, FileInstall\CornerStone\ui\css\app~d0ae3f07.72d8113f.css, ui\css\app~d0ae3f07.72d8113f.css, 1
FileInstall, FileInstall\CornerStone\ui\css\code~31ecd969.0c92bed6.css, ui\css\code~31ecd969.0c92bed6.css, 1
FileInstall, FileInstall\CornerStone\ui\css\vendors~253ae210.969640e4.css, ui\css\vendors~253ae210.969640e4.css, 1
FileInstall, FileInstall\CornerStone\ui\img\1.4259dbab.jpg, ui\img\1.4259dbab.jpg, 1
FileInstall, FileInstall\CornerStone\ui\img\2.16f169bf.jpg, ui\img\2.16f169bf.jpg, 1
FileInstall, FileInstall\CornerStone\ui\js\app~d0ae3f07.b1d7b4ce.js, ui\js\app~d0ae3f07.b1d7b4ce.js, 1
FileInstall, FileInstall\CornerStone\ui\js\code~31ecd969.a2e88396.js, ui\js\code~31ecd969.a2e88396.js, 1
FileInstall, FileInstall\CornerStone\ui\js\runtime.0df8b2b1.js, ui\js\runtime.0df8b2b1.js, 1
FileInstall, FileInstall\CornerStone\ui\js\vendors~253ae210.0db7105a.js, ui\js\vendors~253ae210.0db7105a.js, 1
FileInstall, FileInstall\CornerStone\ui\js\vendors~d939e436.6f346f08.js, ui\js\vendors~d939e436.6f346f08.js, 1
FileInstall, FileInstall\CornerStone\ui\favicon.ico, ui\favicon.ico, 1
FileInstall, FileInstall\CornerStone\ui\index.html, ui\index.html, 1
FileInstall, FileInstall\CornerStone\cfg\logger.conf, cfg\logger.conf, 1
FileInstall, FileInstall\CornerStone\cfg\general.json, cfg\general.json, 1
FileInstall, FileInstall\CornerStone\cfg\default.json, cfg\default.json, 1
SetWorkingDir, %A_AppData%\FET Loader
Logging(1, "done.")
if (oldgui = "true")
{
IniRead, cheatlist, %A_AppData%\FET Loader\cheats.ini, cheatlist, cheatlist
Gui, Font, s9
Gui, Show, w323 h165, %script% %version%
Gui, Add, ListBox, x12 y9 w110 h140 vCheat Choose1, %cheatlist%
Gui, Add, Button, x172 y9 w90 h30 +Center gLoad, %string_load%
Gui, Add, Button, x172 y69 w90 h30 +Center gBypass, %string_bypass%
Gui, Add, Button, x132 y119 w65 h30 +Center gConfigOpen, %string_config%
Gui, Add, Button, x242 y119 w65 h30 +Center gShowAbout, %string_about%
Logging(1,"done.")
return
}
else
{
IniRead, cheatlist, %A_AppData%\FET Loader\cheats.ini, cheatlist, cheatlist
StringSplit, cheatss, cheatlist, |
cheatsCount := cheatss0
neutron := new NeutronWindow()
neutron.Load("Web\main.html")
guiheight := cheatsCount * 40 + 40
if (guiheight < 320)
{
guiheight := 330
}
neutron.Show("w400 h" guiheight )
neutron.Gui("+LabelNeutron")
return
}
GuiClose:
ExitApp
return
NeutronClose:
FileRemoveDir, temp, 1
ExitApp
return
Load:
Gui, Submit, NoHide
Inject(0,Cheat)