Monday, May 28, 2018

Python Fuzzer

Python Fuzzer
#!/usr/bin/python

import socket

#Create an array of buffers,from 20 to 2000,with increments of 20.

buffer=["A"]
counter=20
while len(buffer) <= 100:
    buffer.append("A"*counter)
    counter=counter+20

#define the FTP commands to be fuzzed
commands=["MKD","CWD","STOR"]

#run the fuzzing loop
for command in commands:
    for string in buffer:
        print "Fuzzing" + command + ":" +str(len(string))
        s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        connect=s.connect(('192.168.244.129',21))
        s.recv(1024)
        s.send('USER ftp\r\n')
        s.recv(1024)
        s.send('PASS ftp\r\n')
        s.recv(1024)
        s.send(command + ' ' + string + '\r\n')
        s.recv(1024)
        s.send('QUIT\r\n')
        s.close()

       

from BITCOIN NEWS https://ift.tt/2LvTspX
via Bitcoin News Update