Created
May 3, 2016 12:31
-
-
Save eleloya23/8bde63f0d899735e15396a4ed547a254 to your computer and use it in GitHub Desktop.
Simple Ruby POP3 Fuzzer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# ELELOYA | |
# Simple POP3 Fuzzer | |
require 'socket' | |
host = ARGV[0] || "127.0.0.1" | |
port = ARGV[1] || 110 | |
buffer = ["A"] | |
(1..29).each do |counter| | |
buffer << "A"*(counter*100) | |
end | |
#Currently fuzzes only the pass parameter | |
buffer.each do |string| | |
puts "Fuzzing PASSS with %s bytes" % string.length | |
s = TCPSocket.open host, port | |
s.recv 1024 | |
s.send "USER test\r\n", 0 | |
s.recv 1024 | |
s.send "PASS %s\r\n" % string, 0 | |
s.send "QUIT\r\n", 0 | |
s.close | |
sleep 0.5 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment