Linux ÏÔʾIPµØÀíλÖà qqwryϵÁÐС¹¤¾ß
ΧÈÆ´¿ÕæÊý¾Ý¿âµÄһϵÁÐС¹¤¾ß
- qqwry.c£¬qqwry.h¡£Ò»¸öcʵÏÖµÄlib,ÓÃÀ´´Ó´¿ÕæÊý¾Ý¿âÀï»ñÈ¡ipµØÖ·ÐÅÏ¢¡£ÏÂÔØ£¬Îĵµ
- nali£¬Ò»×éip²éѯ¹¤¾ß£¬°üÀ¨¿ÉÒÔÈÃdig£¬tracerouteÏÔʾipµØÀíÐÅÏ¢¡£ÏÂÔØ£¬Îĵµ
- pecl::qqwry£¬´¿ÕæÊý¾Ý¿â²éѯµÄPHP CÀ©Õ¹ÊµÏÖ¡£ÏÂÔØ£¬Îĵµ
- ´¿ÕæÊý¾Ý¿âUTF-8°æ±¾¡£×ª»»¹¤¾ßÒ²ÒÔ¿ªÔ´ÐÎʽ·¢²¼£¬ÓÃphpʵÏÖ
nali£¬Ãû×ÖÈ¡×ÔÖÐÎÄ¡°ÄÄÀµÄÆ´Òô¡£nali°üº¬Ò»×éÃüÁîÐгÌÐò£¬ÆäÖ÷Òª¹¦ÄܾÍÊÇ°ÑһЩÍøÂ繤¾ßµÄÊä³öµÄIP×Ö·û´®£¬¸½¼ÓÉϵØÀíλÖÃÐÅÏ¢
(ʹÓô¿ÕæÊý¾Ý¿â)¡£ÀýÈç218.65.137.1»á±ä³É218.65.137.1[¹ãÎ÷ÄÏÄþÊÐ
µçÐÅ]¡£²éѯÊÇÔÚ±¾µØ½øÐУ¬²¢²»»á½øÐÐÁªÍø²éѯ£¬ËùÒÔЧÂÊ·½Ãæ²»»áÓÐʲôӰÏì¡£
Ä¿Ç°°üº¬ÒÔϼ¸¸öÃüÁ
nali
nali-dig
nali-nslookup
nali-traceroute
nali-tracepath
nali-ping
ʹÓÃÕâЩÃüÁîµÄÇ°ÌáÊÇ£¬ËûÃǶÔÓ¦µÄÃüÁî±ØÐë´æÔÚ¡£ÀýÈçÄãÒªÓÃnali-dig£¬±ØÐë±£Ö¤digÊÇ´æÔڵġ£ËûÃǵÄÓ÷¨ºÍÔʼÃüÁîÊÇÒ»ÑùµÄ¡£ÀýÈçnali-dig£¬Ó÷¨¾ÍºÍdigÒ»Ñù¡£
´ó¼Ò¿ÉÄÜ×¢Òâµ½ÁËnaliÕâ¸öÃüÁËü¿ÉÒÔ¶Ô±ê×¼Êä³öµÄIP´®¸½¼ÓÉϵØÀíÐÅÏ¢¡£nali-*ϵÁй¤¾ß¶¼ÊÇ»ùÓÚÕâ¸öÀ´ÊµÏֵġ£
wget http://qqwry.googlecode.com/files/nali-0.1.tar.gz ./configure && make && make install 1¡¢Í³¼ÆapacheµÄ·ÃÎʼǼ£¨¿ÉÒÔͳ¼ÆÄĸöipµÄ·ÃÎÊÁ¿×î¶à£¬²¢²é¿´ÊÇÀ´×ÔÄÄÀïµÄ£©£º ÃüÁ cat /data/log/log_all | awk '{print $1}' | sort | uniq -c | nali | sort -rnk1 | more Êä³ö½á¹û£º 2303 203.208.60.43[±±¾©ÊÐ ¹È¸è(Öйú)¹«Ë¾] 1442 61.135.249.210[±±¾©ÊÐ ÁªÍ¨ADSL] 827 124.207.205.1[±±¾©ÊÐ µçÐÅͨ] 607 121.14.53.65[¹ã¶«Ê¡½ÃÅÊÐ µçÐÅ] 493 117.63.249.59[½ËÕÊ¡³£ÖÝÊÐ µçÐÅ] 289 203.208.60.5[±±¾©ÊÐ ¹È¸è(Öйú)¹«Ë¾] 272 203.208.60.47[±±¾©ÊÐ ¹È¸è(Öйú)¹«Ë¾] 252 173.66.232.6[±±ÃÀµØÇø] 240 61.185.198.110[ÉÂÎ÷Ê¡Î÷°²ÊÐ µçÐÅADSL] 217 123.127.8.36[±±¾©ÊÐ ÁªÍ¨ADSL] 217 113.233.255.7[ÁÉÄþÊ¡ ÁªÍ¨] 206 222.76.18.181[¸£½¨Ê¡¸£ÖÝÊÐ µçÐÅADSL] 196 72.30.81.190[ÃÀ¹ú yahooÖ©Öë] 2¡¢Ê¹ÓÃnali-ping£º ÃüÁnali-ping www.baidu.com Êä³ö½á¹û£º
Ò²¾ÍÊÇ˵£¬naliÕâ¸öÃüÁ¿ÉÒÔ¶Ô±ê×¼Êä³öµÄip£¬¸½¼ÓÉϵØÀíÐÅÏ¢¡£Í¬Àí£¬Èç¹ûÄ㲻ϲ»¶ÓÃnali-dig£¬ÄÇôҲ¿ÉÒÔÓÃdig ip|naliÕâÑùµÄÃüÁî¡£
Èç¹ûÄã¾õµÃÊäÈënali-xxxÂé·³£¬ÄÇô¿ÉÒÔ×öһЩalias£¬ÀýÈ磺
alias traceroute='nali-traceroute' alias dig='nali-dig' 3¡¢½áºÏmtrʹÓÃnali # mtr 210.51.163.180 | nal
²Î¿¼×ÊÁÏ£º
http://www.surfchen.org/wiki/Nali
ÍƼöÐÅÏ¢
- linuxÃüÁîѧϰ±Ê¼Ç£¨11£©£ºnlÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨5£©£ºrmÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨4£©£ºmkdirÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨1£©£ºlsÃüÁî
- ½«CentosµÄyumÔ´¸ü»»Îª¹úÄڵİ¢ÀïÔÆÔ´
- ʹÓÃNginxÌí¼Óheader·ÀÖ¹ÍøÒ³±»frame
- linuxϼÓËÙscp´«Êä´óÎļþµÄËÙ¶È
- linuxϵͳÉ϶ÔnginxÈÕÖ¾·Ö¸î´¦Àí
- lnmp/nginxϵͳÕæÕýÓÐЧµÄͼƬ·ÀµÁÁ´ÍêÕûÉèÖÃÏê½â
- Í»ÆÆÊ®Íò²¢·¢µÄNginxµÄÅäÖü°ÓÅ»¯
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- ²éÕÒ²¢É¾³ý.svnĿ¼Îļþ
- redis ÆßÖÖÊý¾ÝÀàÐ͵ÄʹÓó¡¾°
- linux ÏÂÎļþ¸´ÖƵ½windowsÏÂÂÒÂëµÄ½â¾ö°ì·¨
- nginx³öÏÖ502 upstream sent too big he....
- linuxÏÂsudoÅäÖÃÏê½â
- linuxÃüÁîѧϰ±Ê¼Ç£¨15£©£ºtailÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨14£©£ºheadÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨13£©£ºlessÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨12£©£ºmoreÃüÁî
- ¼ÓÃÜËã·¨±È½Ï3DES AES RSA ECC MD5 SHA1µÈ
ÆÀÂÛ