Useful Codes

To delete the ptrace function from the binary file

from pwn import *


exe = 'split' #CHANGE (file to be patched)

elf =  context.binary = ELF(exe,checksec=False)

elf.asm(elf.symbols.ptrace, 'ret') #changing the ptrace function 


elf.save('patched') #saving the patched file as the name "patched"

Last updated