Connections with pwntools
Making Connections
from pwn import *
conn = remote('ftp.ubuntu.com',21)
conn.recvline()
#'220 FTP server (vsftpd)'
conn.send('USER anonymous\r\n')
conn.recvuntil(' ', drop=True)
#'331'
conn.recvline()
#'Please specify the password.\r\n'
conn.close()Setting up a listener
Last updated