Created
October 12, 2018 15:35
-
-
Save 0xPwny/29b68a356c04ff5a670bab05ed806aef to your computer and use it in GitHub Desktop.
root-me heap overflow 2 - SKELET
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pwn import * | |
r = process("/root/pwnvm/challs/rootit/ch38") | |
pause() | |
def new(data): | |
r.sendline("new {}".format(data)) | |
r.recvuntil(">") | |
def free(idx): | |
r.sendline("free {}".format(idx)) | |
r.recvuntil(">") | |
def modif(idx,data): | |
r.sendline("modif {} {}".format(idx,data)) | |
r.recvuntil(">") | |
def getID(idx): | |
r.sendline("show") | |
r.recvuntil(str(idx)+"\nID = ") | |
return r.recvline().strip() | |
r.interactive() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment