from pwn import * # stage1 argv2 = ["" for i in range(100)] argv2[ord("A")] = "\x00" # argv2[65] argv2[ord("B")] = "\x20\x0a\x0d" # argv2[66] argv2[ord("C")] = "33333" # for stage5 # stage2 with open("./stderr", "a") as f: f.write("\x00\x0a\x02\xff") # stage3 envVal = {"\xde\xad\xbe\xef": "\xca\xfe\xba\xbe"} # stage4 with open("./\x0a", "a") as f: f.write("\x00\x00\x00\x00") p = process(executab..