diff --git a/py_arkose_generator/__init__.py b/py_arkose_generator/__init__.py index e69de29..bb5d392 100644 --- a/py_arkose_generator/__init__.py +++ b/py_arkose_generator/__init__.py @@ -0,0 +1,2 @@ +# This project was originally translated from 'funcapctha' with the help of ChatGPT. +# https://github.com/noahcoolboy/funcaptcha diff --git a/py_arkose_generator/arkose.py b/py_arkose_generator/arkose.py index 2c21870..c4138a4 100644 --- a/py_arkose_generator/arkose.py +++ b/py_arkose_generator/arkose.py @@ -55,16 +55,3 @@ def get_values_for_request(options): "data": data, } return args - - -if __name__ == "__main__": - opt = { - "pkey": "3D86FBBA-9D22-402A-B512-3420086BA6CC", - "surl": "https://tcr9i.chat.openai.com", - "headers": { - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0" - }, - "site": "https://chat.openai.com", - } - - print(get_values_for_request(opt)) diff --git a/py_arkose_generator/murmur.py b/py_arkose_generator/murmur.py index 482d49c..92197ae 100644 --- a/py_arkose_generator/murmur.py +++ b/py_arkose_generator/murmur.py @@ -4,10 +4,7 @@ import mmh3 def x64hash128(data, seed=0): - # Compute the hash using MurmurHash3 x64 hash_bytes = mmh3.hash_bytes(data, seed=seed, x64arch=True) - - # Convert the 128-bit hash to an unsigned hex string hash_hex = struct.unpack("