2010-02-05 Fri
作者:Fenng 发布在 dbanotes.net.
前几天从 Sourceforge 上的一篇文章了解到 Complemento 这个工具包,其中的 LetDown 用来做网站网络的压力测试,预防 DoS (拒绝服务)攻击还是不错的,起码可以熟悉一些常见的场景。另外,这个工具可以比较方便的嵌入到 Python 脚本中,用来做更大规模的压力测试(注意随意测试是有风险的)。
Complemento 的 HowTo 文档比较完备,可以用作参考。这个工具包现在也已经内置到 BackTrack 这个用作安全渗透的 Linux 发行版中了。
最近一两年,DDoS 攻击在国内现在更加"流行"而且商业目的明显,经常用做打击竞争对手的武器。当然现在也不只是打Web服务器,也可能会打打 DNS 什么的...
其实我非常好奇各个公司的技术人如何应对 DDoS 的,除了拼硬件,拼带宽,或许饭桌和钱是最好的防御手段。
--EOF--
BTW,Nessus 仍然是扫描系统漏洞的最佳工具,居家旅行...必备...
最近文章|Recent Articles
本站赞助商:豆瓣网
评论数(0)|添加评论 | 最近作者还说了什么? Follow Fenng@Twitter
本文网址:http://www.dbanotes.net/security/complemento_denial-of-service.html
DBA Notes 理念: 用简约的技术取得最大的收益...
最近一直在看中医,主要么,是调理肠胃兼气血。
发现自从吃了中药以后,每天吃饭都会比以前多很多,以前吃饭都不会添第二碗的,现在一般米饭要吃两碗了,而且,第一次哟,体重称的时候,超过60kg(当然是毛重了),以前都是56-58的。
看来中医还是很牛逼的,就是中药有点贵,基本上,一副中药分两次喝,每杯都和两岸的卡布奇诺价格差不多了。
继续中医。
推荐一本书,著名语言学家周有光先生的新作《朝闻道集》。包括梁文道在内,最近有很多人都在推荐这本书。
推荐这本书,不是因为周先生已经是一位105岁的老人,也不是因为他敢讲,这年头敢讲的人其实也少,网络上就有很多,我有的时候也很敢讲,关键在于,他讲的很有道理,都是些真知灼见,特别是他针对中国社会的批评具有难得的世界精神。
我以前曾推荐他的《语文闲谈》,还有《周有光百岁口述》:http://mumu6.blog.sohu.com/113361585.html
当当网关于《朝闻道集》的介绍: http://product.dangdang.com/product.aspx?product_id=20732729
梁文道的推荐:http://book.ifeng.com/psl/kjbfz/201002/0202_3554_1534072.shtml
http://book.ifeng.com/psl/kjbfz/201002/0203_3554_1535641.shtml
《南方人物周刊》采访:http://news.sina.com.cn/c/sd/2010-02-05/103219635742.shtml
《南方都市报》采访:http://epaper.nddaily.com/C/html/2010-01/24/content_999668.htm
凤凰卫视许戈辉名人面对面20100110周有光A
http://www.letv.com/ptv/vplay/501067.html
凤凰卫视许戈辉名人面对面20100110周有光B
http://www.letv.com/ptv/vplay/501070.html
凤凰卫视许戈辉名人面对面20100117周有光c
http://www.letv.com/ptv/vplay/512329.html
《凤凰大视野》生命的光芒.周有光http://www.56.com/u50/v_MjU4NzM3MTE.html
《小崔说事》:http://vsearch.cctv.com/plgs_play-CCTVNEWSprog_20071217_2587930_0.html?
Author:NinGoo posted on NinGoo.net
在oschina上闲逛,发现一款不错的os实时监控工具dstat,整合了vmstat, iostat, ifstat, netstat等常见os监控工具的优点,输出的结果简单直观,并且结果可以保存到csv文件,这样再写一个简单的perl脚本,就能将os的主要监控信息一次性全部抓取出来,保存到监控数据库中用于分析展示。试用了一下觉得非常不错,因此在这里分享一下这个用python写的工具。
$dstat ----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system-- usr sys idl wai hiq siq| read writ| recv send| in out | int csw 2 0 98 0 0 0| 80k 54k| 0 0 | 335B 381B|1297 1301 22 2 74 0 0 2| 0 416k| 621k 219k| 0 0 |1158 26k 23 3 72 0 0 2| 64k 484k| 11k 11k| 0 0 |1109 30k 21 3 75 0 0 2|4096B 416k| 77k 77k| 0 0 |2104 25k 29 4 66 0 0 2| 0 1240k| 996k 425k| 0 0 |1350 28k
$dstat -ta --output osstat.csv -----time----- ----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system-- date/time |usr sys idl wai hiq siq| read writ| recv send| in out | int csw 05-02 11:37:08| 2 0 98 0 0 0| 80k 54k| 0 0 | 335B 381B|1297 1301 05-02 11:37:09| 16 4 78 0 0 3| 0 1404k|1478k 939k| 0 0 |4316 33k 05-02 11:37:10| 20 2 76 0 0 2| 0 1144k|1109k 828k| 0 0 |5653 28k 05-02 11:37:11| 13 2 83 0 0 2| 0 588k|2590k 1684k| 0 0 |4256 23k
$dstat -h
Usage: dstat [-afv] [options..] [delay [count]]
Versatile tool for generating system resource statistics
Dstat options:
-c, --cpu enable cpu stats
-C 0,3,total include cpu0, cpu3 and total
-d, --disk enable disk stats
-D total,hda include hda and total
-g, --page enable page stats
-i, --int enable interrupt stats
-I 5,eth2 include int5 and interrupt used by eth2
-l, --load enable load stats
-m, --mem enable memory stats
-n, --net enable network stats
-N eth1,total include eth1 and total
-p, --proc enable process stats
-s, --swap enable swap stats
-S swap1,total include swap1 and total
-t, --time enable time/date output
-T, --epoch enable time counter (seconds since epoch)
-y, --sys enable system stats
--ipc enable ipc stats
--lock enable lock stats
--raw enable raw stats
--tcp enable tcp stats
--udp enable udp stats
--unix enable unix stats
-M stat1,stat2 enable external stats
--mods stat1,stat2
-a, --all equals -cdngy (default)
-f, --full expand -C, -D, -I, -N and -S discovery lists
-v, --vmstat equals -pmgdsc -D total
--integer show integer values
--nocolor disable colors (implies --noupdate)
--noheaders disable repetitive headers
--noupdate disable intermediate updates
--output file write CSV output to file
delay is the delay in seconds between each update
count is the number of updates to display before exiting
The default delay is 1 and count is unspecified (unlimited)
Related Articles
PermLink: http://www.ningoo.net/html/2010/dstat_os_monitor_tool.html
Add Comments(0) | Follow NinGoo@Twitter | Google Reader













