I'm doing a telnet client in python and I need to send a code to another machine, but the code needs to put a Ctrl + A (CODE) ^A
(code) does not work, heeelp me
serv = raw_input("[+] SERVER: ")
port = raw_input("[+] PORT: ")
tn = telnetlib.Telnet(serv, port)
mess = ("^AXXXX")
tn.write(mess)
out=tn.read_all()
print(out)
tn.close()