LinuxÈñ½ÝÉÏÍø,°²×°¹ý³Ì£º
ÏÂÔØÈñ½ÝÉÏÍø°ü,½âѹ,ÓÐĿ¼: libpcap.so.0.6.2, libstdc++.so.5,compat-libstdc%2B%2B-33_3.2.3-48_i386.deb,xrgsu
1½øÈëruijieĿ¼
sudo cd ./ruijie(½«¸ÃÎļþ¼Ð·ÅÔÚµ±Ç°Óû§Ä¿Â¼ÏÂ)
2¸´ÖÆÎļþ
sudo cp xrgsu /bin
sudo cp libpcap.so.0.6.2 /usr/lib
sudo cp libstdc++.so.5 /usr/lib
find /usr/lib -name "libpcap.so.*"
ÎÒµÄÊÇ°æ±¾ÊÇ9.10·µ»Ø"libpcap.so.1.0.0"ÆäËü°æ±¾¿ÉÄÜ·µ»ØÆäËüÖµ
sudo ln -sv /usr/lib/libpcap.so.1.0.0£¨Äã·µ»ØµÄÖµ£© /usr/lib/libpcap.so.0.6.2
find /usr/lib -name "libstdc++.so.*"
·µ»Ølibstdc++.so.6
sudo ln -sv /usr/lib/libstdc++.so.6£¨Äã·µ»ØµÄÖµ£© /usr/lib/libstdc++.so.5
¸´ÖÆÍêºó½«compat-libstdc%2B%2B-33_3.2.3-48_i386.debË«»÷°²×°
ÔËÐйý³Ì:
½«ipÉèÖóɾ²Ì¬µÄ£¨Äã¿ÉÒÔÔÚwindowsÏÂ,ÔËÐÐcmd,ÊäÈëipconfig /all²é¿´,
È»ºó½«ÏÔʾµÄEthernetÐÅÏ¢£¬ÔÚUbuntuÉϵÄAuto eth0µÄipÉèÖÃÖÐÌîÈë)
sudo ifconfig eth0 172.20.85.206(ÓëÍø¿¨ipµØÖ·Ò»ÖÂ.£©
sudo xrgsu
È»ºó°´ÌáʾÊäÈëÓû§ÃûºÍÃÜÂë
È»ºó»áÓÐÎÊÄãÊÇ·ñʹÓÃDHCP¶¯Ì¬»ñÈ¡ip£¬²»ÄÜÖ±½Ó»Ø³µ£¬Ó¦Ñ¡1£¬¼´Ê¹ÓÃDHCP£¨ÕâÀïÊDz»ÊǺÜÆæ¹Ö£¬ÉÏÃæÉè³É¾²Ì¬ip
ÕâÀïȴҪʹÓö¯Ì¬ip£¬ÎÒÒ²²»ÖªÔÒò£¬¡£²»¹ýÈç¹ûÖ±½Ó»Ø³µ£¬µ½Ê±¿ÉÒÔÈÏÖ¤³É¹¦£¬µ«²»ÄÜÉÏÍø¡£
root@user-desktop:/home/user# xrgsu
XRGSupplicant 1.1.1
Ruijie Network CopyRight 2004-2005
Please input your user name: £¨×¢£ºÊäÈë×Ô¼ºµÄѧºÅÒ²¾ÍÊÇÉÏÍøÕ˺ţ©
Please input your password: £¨×¢£ºÊäÈë×Ô¼ºÉÏÍøÕ˺ŵÄÃÜÂ룩
Use DHCP,1-Use,0-UnUse(Default: 0):1 £¨×¢£ºÒ»¶¨ÒªÊäÈë1 1-Use£©
Use default auth parameter,0-Use 1-UnUse(Default: 0):0 £¨×¢£ºÒ»¶¨ÒªÊäÈë0 0-Use£©
Searching server...
Connecting server...
Authenticating...
Authenticate SUCCESSFULLY!
Please input 'unauth' to LogOff:
Please input 'unauth' to LogOff:
Ïà¹ØÎĵµ£º
Ò»¡¢ÒýÑÔ£º
±¾ÎĵµµÄÄÚÈݴ󲿷ÝÄÚÈݶ¼ÊÇ´ÓÍøÉÏÊÕ¼¯¶øÀ´£¬È»ºóÅäºÏһЩеĽØͼ£¨Äں˰汾£ºV2.4.19£©¡£ÔÚÿһÅäÖÃÏîºó»áÓÐÒ»¸öÑ¡ÔñÖ¸ÄϵIJ¿·Ý£¬ÓÃÀ´Ö¸µ¼´ó¼ÒÔõôÑù¸ù¾Ý×Ô¼ºµÄÇé¿öÀ´×öÏàÓ¦µÄÑ¡Ôñ£»»¹ÓÐÔÚÿһ¸ö´óÏîºÍÎĵµµÄ×îºó»áÓÐÒ»¸ö¾Ñé̸£¬ËüÊÇһЩ¸ßÊÖÃÇÔÚÓ¦¶ÔÎÊÌâºÍ´¦ÀíÌØÓÐÓ²¼þʱµÄһЩ¾Ñ飨Õâ¸ö»¹µ ......
¡¡¡¡ÕâÊǹØÓÚÈçºÎÓø÷ÖÖ¿ÉÒԵõ½µÄ½Ó¿ÚΪLinux¿ª·¢ÍøÂç³ÌÐòµÄϵÁÐÎÄÕµĵÚһƪ¡£¾ÍÏñ´ó¶àÊýUnix-basedµÄ²Ù×÷ϵͳһÑù£¬LinuxÖ§³Ö½«TCP/IP×÷Ϊ±¾µØµÄÍøÂç´«ÊäÐÒé¡£ÔÚÕâ¸öϵÁÐÖУ¬ÎÒÃǼٶ¨ÄãÒѾ±È½ÏÊìϤLinuxÉϵÄC±à³ÌºÍLinuxµÄһЩϵͳ֪ʶÖîÈçsignals,forkingµÈµÈ¡£
¡¡¡¡ÕâƪÎÄÕÂÊǹØÓÚÈçºÎÓÃBSDÌ×½Ó¿ ......
Socket ¾ÍÊÇÌ×½Ó×Ö¡£
Socket ¿ÉÒԺͱ¾µØĿ¼°ó¶¨£¬Ò²¿ÉÒÔºÍÒ»¸öIPµØÖ·°ó¶¨¡£
int socketpair(sa_family, socket_type, protocal, int sz[2]);
sa_family: AF_LOCAL( ºÍ AF_UNIXÒ»Ñù) ±íʾ±¾µØµÄsocket Á¬½Ó
A ......
Linux MakefileÒѱ»¹ã·ºÓ¦Óõ«ÊÇÒ²ÔÚ²»¶ÏµÄ¸üУ¬ÕâÀï½éÉÜLinux Makefile°²×°ÉèÖÃʹÓ㬰ïÖú´ó¼Ò°²×°¸üÐÂLinux Makefileϵͳ¡£×÷ΪLinuxϵijÌÐò¿ª·¢ÈËÔ±£¬´ó¼ÒÒ»¶¨¶¼Óöµ½¹ýLinux Makefile£¬ÓÃmakeÃüÁîÀ´±àÒë×Ô¼ºÐ´µÄ³ÌÐòȷʵÊǺܷ½±ã¡£Ò»°ãÇé¿öÏ£¬´ó¼Ò¶¼ÊÇÊÖ¹¤Ð´Ò»¸ö¼òµ¥Linux Makefile£¬Èç¹ûÒªÏëд³öÒ»¸ö·ûºÏ×ÔÓÉÈí¼þ¹ßÀ ......
½ñÌìʹÓÃselect±à³Ì£¬ÎÊÌâºÜ¶à£¬ÒÔÇ°ÕæµÄûÓÐ×ÐϸÑо¿¹ý¡£
³öÏÖÁËÒÔϼ¸¸öÎÊÌâ
1 recvfromÔÚ½ÓÊÕʱ£¬Ìṩ¸øϵͳµ÷ÓõÄ×îºóÒ»¸ö²ÎÊý£¬¿Í»§¶ËµÄµØÖ·½á¹¹£¬Æ䳤¶È±ØÐë½øÐгõʼ»¯£¬Èç¹ûΪ0£¬Ôò²»ÄܽÓÊÕÊý¾Ý¡£
2 selectµÄµÚÒ»¸ö²ÎÊýΪËùÓмàÊÓµÄÎļþÃèÊö·ûµÄ×î´óÖµ+1£¬¶ø²»ÊǼàÊÓµÄÎļþÃèÊö·û¸öÊý+1¡£
3 ²»Òª¼àÊÓÄÇЩ¾³£¿ÉÓ ......