Files
Win32_Exploitation/tools/findpattern.py
2021-09-10 12:39:21 +02:00

16 lines
309 B
Python

#!/usr/bin/python3
from pwn import *
def main():
address = raw_input("[+] Enter address from debugger: ").strip()
hex_address = "0x" + address
unpacked = p32(int(hex_address, 16))
print("[+] Offset is: " + str(cyclic_find(unpacked)))
if __name__ == "__main__":
main()