From c77290fd51db5a5d8129b2d2e8c3f751070d8853 Mon Sep 17 00:00:00 2001 From: katboi01 Date: Sat, 25 Jan 2025 01:12:26 +0100 Subject: [PATCH] removed wmi to improve compatibility --- dmmBypass.py | 8 +++----- requirements.txt | 3 --- 2 files changed, 3 insertions(+), 8 deletions(-) delete mode 100644 requirements.txt diff --git a/dmmBypass.py b/dmmBypass.py index 78806d9..56d7723 100644 --- a/dmmBypass.py +++ b/dmmBypass.py @@ -16,7 +16,7 @@ args = parser.parse_args() config_name = args.game + '.cfg' if not os.path.exists(config_name): - subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", "requirements.txt"]) + subprocess.check_call([sys.executable, "-m", "pip", "install", "beautifulsoup4", "PyPasser"]) config = { "game_id" : args.game, "file_path" : input('Enter full file path to KF3 .exe: ').strip('\"'), @@ -48,9 +48,6 @@ def get_mac(): mac = getnode() return ':'.join(("%012X" % mac)[i:i+2] for i in range(0, 12, 2)).lower() -def get_motherboard(): - return wmi.WMI().Win32_BaseBoard()[0].SerialNumber - def retrieve_login_token(session : requests.Session): try: print("Retrieving login form") @@ -125,7 +122,8 @@ def main(config): use_proxy = config["use_proxy"] if "use_proxy" in config else False mac_addr = get_mac() hdd_serial = get_hash('') - motherboard = get_hash(get_motherboard()) + #actual moterboard serial is unknown, but this works + motherboard = get_hash(getnode()) with requests.Session() as session: token = retrieve_login_token(session) diff --git a/requirements.txt b/requirements.txt deleted file mode 100644 index 2e72b53..0000000 --- a/requirements.txt +++ /dev/null @@ -1,3 +0,0 @@ -beautifulsoup4 -PyPasser -wmi \ No newline at end of file