repo push
This commit is contained in:
15
tools/findpattern.py
Normal file
15
tools/findpattern.py
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/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()
|
||||
Reference in New Issue
Block a user