Code:#!/usr/bin/python #Created by khanisgr8 #basic script for education purpose #usage : ./ftpfuzer.py import socket #buffers from 20 to 2000 with increament of 20 buffer = ["A"] counter = 20 while len(buffer) <= 30: buffer.append("A"*counter) counter = counter+100 commands = ["MKD",'CWD','STOR'] #loap start for command in commands: for string in buffer: print "Sending command " + command + " with " + str(len(string)) + "bytes" s= socket.socket (socket.AF_INET , socket.SOCK_STREAM) connect=s.connect (('192.168.15.83',21)) #replace host s.recv (1024) s.send ('USER ftp\r\n') #replace ftp with username s.recv(1024) s.send ('pass ftp\r\n') #replace ftp with password s.recv(1024) s.send (command + ' ' + string + '\r\n') s.recv(1024) s.send('Quite\r\n') s.close()


1Likes
LinkBack URL
About LinkBacks
Reply With Quote
