Skip to content

Instantly share code, notes, and snippets.

@L0xm1

L0xm1/pow.py Secret

Created March 7, 2024 13:12
Show Gist options
  • Save L0xm1/b6ece05590ea2ab819b3a833c702089c to your computer and use it in GitHub Desktop.
Save L0xm1/b6ece05590ea2ab819b3a833c702089c to your computer and use it in GitHub Desktop.
Pow Solver
import hashlib
def solvepow(x, target):
x = bytes.fromhex(x)
target = bytes.fromhex(target)
for i in range(256**3):
if hashlib.md5(x + i.to_bytes(3, "big")).digest() == target:
br=x.hex()+hex(i)[2:][-6:] #a
print(br[-6::])
x = input("X=").strip()
target = input("target=").strip()
solvepow(x,target)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment