ÉîÈëLinuxÍøÂçºËÐĶÑÕ»
´´½¨Ê±¼ä£º2003-08-22
ÎÄÕÂÊôÐÔ£º·Òë
ÎÄÕÂÌá½»£ºraodan
(raod_at_30san.com)
==Phrack Inc.==
¾í±ê 0x0b, ÆÚ¿¯ºÅ 0x3d, Phile #0x0d of 0x0f
|=---------------------=[ ÉîÈëLinuxÍøÂçºËÐĶÑÕ» ]=-----------------------=|
|=-----------------------------------------------------------------------=|
|=------------------=[ bioforge <alkerr@yifan.net> ]=--------------------=|
|=------------------------=[ ·Òë : raodan ]=----------------------------=|
Ŀ¼
1 - ¼ò½é
1.1 - ±¾ÎÄÉæ¼°µÄÄÚÈÝ
1.2 - ±¾ÎIJ»Éæ¼°µÄÄÚÈÝ
2 - ¸÷ÖÖNetfilter hook¼°ÆäÓ÷¨
2.1 - LinuxÄں˶ÔÊý¾Ý°üµÄ´¦Àí
2.2 - Netfilter¶ÔIPv4µÄhook
3 - ×¢²áºÍ×¢ÏúNetfilter hook
4 - Netfilter »ù±¾µÄÊý¾Ý±¨¹ýÂ˼¼Êõ[1]
4.1 - ÉîÈëhookº¯Êý
4.2 - »ùÓÚ½Ó¿Ú½øÐйýÂË
4.3 - »ùÓÚµØÖ·½øÐйýÂË
4.4 - »ùÓÚTCP¶Ë¿Ú½øÐйýÂË
5 - Netfilter hookµÄÆäËü¿ÉÄÜÓ÷¨
5.1 - Òþ²ØºóÃŵÄÊØ»¤½ø³Ì
5.2 - »ùÓÚÄں˵ÄFTPÃÜÂëÐá̽Æ÷
5.2.1 - Ô´´úÂë : nfsniff.c
5.2.2 - Ô´´úÂë : getpass.c
6 - ÔÚLibpcapÖÐÒþ²ØÍøÂçͨÐÅ
6.1 - SOCK_PACKET¡¢SOCK_RAWÓëLibpcap
6.2 - ¸øÀÇÅûÉÏÑòƤ
7 - ½áÊøÓï
A - ÇáÁ¿¼¶·À»ðǽ
A.1 - ¸ÅÊö
A.2 - Ô´´úÂë : lwfw.c
A.3 - Í·Îļþ : lwfw.h
B - µÚ6½ÚÖеÄÔ´´úÂë
--[ 1 - ¼ò½é
±¾
ÎĽ«ÏòÄãչʾ£¬LinuxµÄÍøÂç¶ÑÕ»µÄһЩ¹ÖÒìÐÐΪ£¨²¢²»Ò»¶¨ÊÇÈõµã£©ÈçºÎ±»ÓÃÓÚа¶ñµÄ»òÕßÊÇÆäËüÐÎÐÎÉ«É«µÄÄ¿µÄ¡£ÔÚÕâÀォҪÌÖÂÛµÄÊǽ«±íÃæÉÏ¿´ÆðÀ´ºÏ·¨
µÄNetfilter hookÓÃÓÚºóÃŵÄͨÐÅ£¬ÒÔ¼°Ò»ÖÖʹÌض¨µÄÍøÂçͨÐÅÔÚÔËÐÐÓÚ±¾»úµÄ»ùÓÚLibpcapµÄÐá̽Æ÷ÖÐÏûÉùÄä¼£µÄ¼¼Êõ¡£
Netfilter
ÊÇLinux
2.4Äں˵ÄÒ»¸ö×Óϵͳ£¬NetfilerʹµÃÖîÈçÊý¾Ý°ü¹ýÂË¡¢ÍøÂçµØַת»»(NAT)ÒÔ¼°ÍøÂçÁ¬½Ó¸ú×ٵȼ¼ÇɳÉΪ¿ÉÄÜ£¬ÕâЩ¹¦Äܽöͨ¹ýʹÓÃÄÚºËÍøÂç´úÂë
ÌṩµÄ¸÷ʽ¸÷ÑùµÄhook¼È¿ÉÒÔÍê³É¡£ÕâЩhookλÓÚÄں˴úÂëÖУ¬ÒªÃ´ÊǾ²Ì¬Á´½ÓµÄ£¬ÒªÃ´Ê
Ïà¹ØÎĵµ£º
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. gatewayÉèÖÃ
ÅäÖÃÎļþ£º/etc/sysconfig/network
ʾÀý£º
NETWORKING=yes
HOSTNAME=hostname
GATEWAY=xx.xx.xx.xx
²é¿´ÃüÁroute
2. ipµØÖ·ÉèÖÃ
ÅäÖÃÎļþ£º/etc/sysconfig/network-scripts/ifcfg-eth0
ʾÀý£º
BOOTPROTO=static
IPADDR=xx.xx.xx.yy
NETMASK=255.255.255.0
²é¿´ÃüÁ ......
1£ºÏµÍ³°²×°£¬ÕâÀï¾Í²»ËµÁË£¬ÍøÉÏÓкܶ࣬ҲºÜ¼òµ¥¡£Ë³±ã˵Ï£¬ÎÒÓõÄÊÇredhat 9£»
2£ºÔÚͼÐνçÃæÏÂÏÂÔØapache °²×°°ü£¬ÎÒϵÄÊÇ httpd-2.2.9.tar.gz Ô´Âë°²×°°ü£¬µØÖ·ÊÇhttp://httpd.apache.org/download.cgi
3£º½«ÏÂÔØÎļþ±£´æµ½/home/redhat/src Ŀ¼Ï£¬ÆðÖØredhatÊÇÆÕͨÓû§ËùÔÚÎļþ¼Ð£¬Ò²¿ÉÒÔ×Ô¼º½¨Á¢ÆäËûµÄ ......
Linux»·¾³ÏµÄÈí¼þ°²×°£¬²¢²»ÊÇÒ»¼þÈÝÒ×µÄÊÂÇ飻Èç¹ûͨ¹ýÔ´´úÂë±àÒëºóÔÚ°²×°£¬µ±È»ÊÂÇé¾Í¸üΪ¸´ÔÓһЩ£»ÏÖÔÚ°²×°¸÷ÖÖÈí¼þµÄ½Ì³Ì¶¼·Ç³£Æձ飻µ«Íò±ä²»
ÀëÆäÖУ¬¶Ô»ù´¡ÖªÊ¶µÄÔúʵÕÆÎÕ£¬°²×°¸÷ÖÖÈí¼þµÄÎÊÌâ¾ÍÓÈжø½âÁË¡£Configure½Å±¾ÅäÖù¤¾ß¾ÍÊÇ»ù´¡Ö®Ò»£¬ËüÊÇautoconfµÄ¹¤¾ßµÄ»ù±¾Ó¦Óá£
¡¡¡¡
¡¡¡¡ÓëһЩ¼¼ÇÉÏà±È ......
ºÜ¶àLINUX³õѧÕß·Ö²»Çå³þlinuxºÍXÖ®¼ä,XºÍXfree86Ö®¼ä,XºÍKDE,GNOMEµÈÖ®¼äÊÇʲô¹Øϵ.³£³£»ìÏý¸ÅÄî,ÎÒÏëÒԱȽÏÒ×ÓÚÀí½âµÄ·½Ê½ËµÃ÷Ò»ÏÂX,X11,XFREE,WM,KDE,GNOMEµÈÖ®¼äµÄ¹Øϵ.ÓÉÓÚ±¾ÈËˮƽÓÐÏÞ¿ÉÄÜ´æÔÚ´íÎó,Çë¸ßÊÖÖ¸Õý.
Ò»,linux±¾ÉíûÓÐͼÐνçÃæ,linuxÏÖÔÚµÄͼÐνçÃæµÄʵÏÖÖ»ÊÇlinuxϵÄÓ¦ÓóÌÐòʵÏÖµÄ ......