LinuxÏÂsniffer×¥°ü³ÌÐò³ÌÐòµÄʵÏÖ
LinuxÏÂSniffer³ÌÐòµÄʵÏÖ
×÷ÕߣºGianluca Insolvibile
ÕûÀí£ºSeal(ÓÀÔ¶µÄFLASH)
ÈÕÆÚ£º2004-11-05
Ðá̽——Sniffer¼¼ÊõÊÇÍøÂ簲ȫÁìÓòÀïÒ»Ïî·Ç³£ÖØÒªµÄ¼¼Êõ£¡¶ÔÓÚ¡°Hacker¡±À´Ëµ£¬ËûÃÇ¿ÉÒÔÒԷdz£Òþ±ÎµÄ·½Ê½µÃµ½ÍøÂçÖд«ÊäµÄ´óÁ¿µÄÃô¸ÐÐÅÏ¢£¬ÈçTelnet,ftpÕʺźÍÃÜÂëµÈµÈÃ÷ÎÄ´«Ë͵ÄÐÅÏ¢£¡ÓëÖ÷¶¯É¨ÃèÏà±È£¬Ðá̽µÄÐÐΪ¸ü¼ÓÄÑÒÔ±»²ì¾õ£¬²Ù×÷ÆðÀ´Ò²²»ÊǺܸ´ÔÓ£¡¶ÔÓÚÍøÂç¹ÜÀíÈËÔ±À´Ëµ£¬¿ÉÒÔÀûÓÃÐá̽¼¼Êõ¶ÔÍøÂç»î¶¯½øÐмà¿Ø£¬²¢¼°Ê±·¢ÏÖ¸÷ÖÖ¹¥»÷ÐÐΪ£¡
ÔÚÕâƪÎÄÕÂÀÎÒÃÇÖ÷Ҫ̽ÌÖÔÚLinuxÏÂÈçºÎÀûÓÃCÓïÑÔÀ´ÊµÏÖÒ»¸öSniffer£¡ÎÒÃǽ«¼ÙÉèËùÓеÄÖ÷»úÔÚÒ»¸ö¾ÖÓòÍøÄÚ¡£
Ê×ÏÈ£¬ÎÒÃǽ«¼ò¶ÌµÄ»Ø¹ËÒ»ÏÂÒ»¸öÆÕͨµÄÒÔÌ«Íø¿¨ÊÇÔõô¹¤×÷µÄ£¡£¨Èç¹ûÄã¶ÔÕâ·½ÃæµÄ֪ʶÔçÒÑÊìϤ£¬ÄÇôÄã¿ÉÒÔÖ±½ÓÌøµ½ÏÂÒ»¶Î£©À´Ô´ÓÚÓ¦ÓóÌÐòµÄIP±¨Îı»·â×°³ÉÒÔÌ«ÍøÖ¡£¨Õâ
ÊÇÔÚÒÔÌ«ÍøÉÏ´«²¥µÄÊý¾Ý±¨ÎĵÄÃû³Æ£©£¬ËüÊǵײãÁ´Â·²ã±¨ÎÄÉÏÃæµÄÒ»²ã±¨ÎÄ£¬°üº¬ÓÐÔ´µØÖ·
±¨ÎĺÍһЩÐèÒªÓÃÀ´´«ËÍÖÁÄ¿±êÖ÷»úµÄÐÅÏ¢¡£Í¨³£Çé¿öÏ£¬Ä¿µÄIPµØÖ·¶ÔÓ¦×ÅÒ»¸ö6×Ö½ÚµÄÄ¿µÄÒÔÌ«ÍøÖ·£¨¾³£½Ð×öMACµØÖ·),ËüÃÇÖ®¼äͨ¹ýARPÐÒé½øÐÐÓ³É䣡¾ÍÕâÑù£¬°üº¬×ÅÒÔÌ«ÍøÖ¡µÄ±¨ÎÄ´ÓÔ´Ö÷»ú´«Ê䵽ĿµÄÖ÷»ú£¬Öм侹ýһЩÍøÂçÉ豸£¬Èç½»»»»ú£¬Â·ÓÉÆ÷µÈµÈ£¬µ±È»£¬ÒòΪÎÒÃǵÄÇ°ÌáÊÇÖ÷»úÔÚͬһÍøÄÚ£¬ËùÒÔÎÒÃǵÄÌÖÂÛ²»Éæ¼°ÒÔÉÏÕâЩÍøÂçÉ豸£¡
ÔÚÁ´Â·²ãÖв¢²»´æÔÚ·ÏߵĸÅÄ»»¾ä»°Ëµ£¬Ô´Ö÷»ú·¢³öµÄÖ¡²»»áÖ±½ÓÖ¸ÏòÄ¿µÄÖ÷»ú£¬
¶øÊÇ»ùÓڹ㲥·½Ê½´«²¥£¬ÍøÂçÖеÄËùÓÐÍø¿¨¶¼ÄÜ¿´µ½ËüµÄ´«Ê䡣ÿ¸öÍø¿¨»á¼ì²éÖ¡¿ªÊ¼µÄ6¸ö×Ö½Ú£¨Ä¿µÄÖ÷»úµÄMACµØÖ·£©£¬µ«ÊÇÖ»ÓÐÒ»¸öÍø¿¨»á·¢ÏÖ×Ô¼ºµÄµØÖ·ºÍÆäÏà·ûºÏ£¬È»ºóËü½ÓÊÕÕâ¸öÖ¡£¬Õâ¸öÖ¡»á±»ÍøÂçÇý¶¯³ÌÐò·Ö½â£¬ÔÀ´µÄIP±¨ÎĽ«Í¨¹ýÍøÂçÐÒéÕ»´«ËÍÖÁ½ÓÊÕµÄÓ¦ÓóÌÐò£¡
¸ü׼ȷµÄ˵£¬ÍøÂçÇý¶¯³ÌÐò»á¼ì²éÖ¡Öб¨ÎÄÍ·²¿µÄÐÒé±êʶ£¬ÒÔÈ·¶¨½ÓÊÕÊý¾ÝµÄÉϲãÐ
Ò飡´ó¶àÊýÇé¿öÏ£¬ÉϲãÊÇIPÐÒ飬ËùÒÔ½ÓÊÕ»úÖƽ«È¥µôIP±¨ÎÄÍ·²¿£¬È»ºó°ÑʣϵĴ«ËÍ
ÖÁUDP»òÕßTCP½ÓÊÕ»úÖÆ£¡ÕâЩÐÒ飬½«°Ñ±¨ÎÄË͵½socket-handling»úÖÆ£¬Ëü½«×îºó°Ñ±¨
ÎÄÊý¾Ý±ä³ÉÓ¦ÓóÌÐò¿É½ÓÊյķ½Ê½·¢ËͳöÈ¥¡£ÔÚÕâ¸ö¹ý³ÌÖУ¬±¨ÎĽ«Ê§È¥ËùÓеĺÍÆäÓйصÄ
ÍøÂçÐÅÏ¢£¬±ÈÈçÔ´µØÖ·£¨IPºÍMAC),¶Ë¿ÚºÅ£¬IPÑ¡Ôñ£¬TCP²ÎÊýµÈµÈ£¡ËùÒÔÈç¹ûÄ¿µÄÖ÷»úû
ÓÐÒ»¸ö°üº¬ÕýÈ·²ÎÊýµÄ´ò¿ª¶Ë¿Ú£¬ÄÇôÕâ¸ö±¨ÎĽ«±»¶ªÆú¶øÇÒÓÀÔ¶²»»á±»Ë͵½Ó¦ÓòãÈ¥
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
1£¬½â¿ªtar.zµÄѹËõ°ü
# tar xvfz backup.tar.Z
»ò# uncompress backup.tar.Z
#tar xvf backup.tar
2£¬½â¿ª.tgzµÄÎļþ
#gunzip backup.tgz
3£¬ÈçºÎѹËõºÍ½âѹ.bz2µÄÎļþ
&nbs ......
1.¹ã¸æζ̫Ũ£¬¹ý·Ö¿äÕÅÓû§ÌåÑé¡£
ÕâÊÇLinuxÐû´«ÖÐ×î´óµÄ벡£¬Ò²Ðí¶ÔÏàÐŹã¸æµÄÀÏÍâÓÐÒ»µãÓ㬵«¶ÔÓÚÔ±¾¾Í¶Ô¹ã¸æÓз´¸Ð̬¶ÈµÄÖйúÓû§À´Ëµ£¬µ±ÕæÕýʹÓÃLinuxºó·¢ÏÖ²¢²»ÏñÐû´«µÄÄÇÑùºÃÓÃʱ£¬»á²úÉú¼«´óµÄ·´¸ÐÐÄÀï¡£
ÕâÖÖÐû´«×îµäÐ͵ÄÑÔÂÛ¾ÍÊÇ“Linux±ÈWindows¿ì£¬¶øÇÒÕ¼ÓÃÏ ......
screen.width*0.7)
{this.resized=true; this.width=screen.width*0.7; this.alt='Click here
to open new window\nCTRL Mouse wheel to zoom in/out';}"
onmouseover="if(this.width>screen.width*0.7) {this.resized=true;
this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='C ......
Linux ÕýÔÚǶÈëʽ¿ª·¢ÁìÓòÎȲ½·¢Õ¹¡£ÒòΪ Linux ʹÓà GPL£¨Çë²ÎÔı¾ÎĺóÃæµÄ²Î¿¼×ÊÁÏ
£©£¬ËùÒÔÈκζԽ« Linux ¶¨ÖÆÓÚ
PDA¡¢ÕÆÉÏ»ú»òÕß¿ÉÅå´øÉ豸¸ÐÐËȤµÄÈ˶¼¿ÉÒÔ´ÓÒòÌØÍøÃâ·ÑÏÂÔØÆäÄں˺ÍÓ¦ÓóÌÐò£¬²¢¿ªÊ¼ÒÆÖ²»ò¿ª·¢¡£Ðí¶à Linux ¸ÄÁ¼Æ·ÖÖÓºÏÁËǶÈëʽ£¯ÊµÊ±Êг¡¡£ËüÃÇ°üÀ¨
RTLinux£¨ÊµÊ± Linux£©¡¢uclinux£¨ ......