from pwn import *
import string

# connect to remote service
conn = remote('geroglifici.challs.olicyber.it', 35000)
# receive until a given string pops up
variable_where_I_save_the_received_data = conn.recvuntil(b'something')
# receive a whole line
variable_where_I_save_the_received_data = conn.recvline()
# send a line
conn.sendline(b'my line')
# use a received line as string
variable_where_I_save_the_received_data = variable_where_I_save_the_received_data.decode()
# if I have to send it
variable_where_I_save_the_received_data = variable_where_I_save_the_received_data.encode()
# close the connection
conn.close()
