-
-
Save L0xm1/b6ece05590ea2ab819b3a833c702089c to your computer and use it in GitHub Desktop.
Pow Solver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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