Skip to content

Commit 62d6243

Browse files
committed
Readme added
1 parent 2875632 commit 62d6243

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ret2libc/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
First, run compile_retlib.sh
2+
Then run get_add.sh
3+
It gives you the address of /bin/sh
4+
Next the gdb command runs:
5+
Type in: b main : adds breakpoint
6+
r,
7+
p system : gives you address of system env variable
8+
p exit : gives you address of exit env variable
9+
10+
Add these addresses to your exploit.c
11+
And run "run.sh": A shell is spawned!

0 commit comments

Comments
 (0)