exploit template
code:template.py
import warnings
from pwn import *
warnings.simplefilter('ignore', category = BytesWarning)
bin_file = ''
binf = ELF(bin_file, checksec = False)
context.binary = binf
context.log_level = 'debug'
def attack(conn):
def main():
conn = process(bin_file)
# conn = remote('target.com', port)
attack(conn)
conn.interactive()
if __name__ == '__main__':
main()