Skip to content

Instantly share code, notes, and snippets.

@eleloya23
Created May 3, 2016 12:31
Show Gist options
  • Save eleloya23/8bde63f0d899735e15396a4ed547a254 to your computer and use it in GitHub Desktop.
Save eleloya23/8bde63f0d899735e15396a4ed547a254 to your computer and use it in GitHub Desktop.
Simple Ruby POP3 Fuzzer
#!/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