, 13 2010 . 18:59
+
DoS CONNECT SMTP .
postfix, sendmail, exim4 smtpx.
smtpx - SMTP , .
DoS CONNECT
: "" .
1 , - 10 000 .
2 - , Ethernet 1 /
- Linux CentOS 5.5 i386, 256 RAM, 1 CPU 2,6
postfix, exim4, smtpx sendmail. - tcp- 127.0.0.1:25 192.168.2.227 - .
.
python
POSTFIX
10 000 : 0m45.557s, 7 smtpd master 30%.
SENDMAIL
10 000 : 10m40.115s, 1%, smtp 70-100ms
EXIM
10 000 : 1m7.163s, 10%.
SMTPX
10 000 : 0m44.462s, 8,7%
, smtp .
DoS (python):
PHP:
#!/usr/bin/python.
import socket
import time
HOST = '192.168.2.227'
PORT = 25
for i in range(1,10000):
time.sleep(0.001)
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect((HOST, PORT))
s.close()
if (i%200)==0:
print i.
print