LinuxϵÄÉñÆæÖ¸Áî——netcat
netcat
¾ÍÏñ cat
Ö¸ÁîÒ»樣£¬Ö»ÊÇ將簡單µÄ
cat
¹¦ÄÜÍêÈ«¡¸網·»¯¡¹£¬ºÃÓÃ與靈»îµÄ³Ì¶È¿É說ÊǺÜ驚ÈË£¬¶øÔÚ
Top 100 Network Security Tools
ÅÅÐаñÖÐ還ÅÅÐеÚËÄÃûÄØ£¡
netcat ³ýÁË¿ÉÒÔ當
TCP Client
¹¤¾ßÒÔÍ⣬還¿ÉÒÔ當
TCP Server
µÄ¹¤¾ß£¬ÒÔÏÂÎÒÓÃ幾個簡單µÄÀý×Ó說Ã÷£º
ʾ範 netcat
ÈçºÎ當
TCP Client
¹¤¾ß
µ×ÏÂ這¶ÎÖ¸Áî´ú±íÄãÒª將 /etc
Ä¿錄Õû個´ò°ü並壓縮Æð來£¬並將資ÁÏ傳Ë͵½
10.0.0.99
Ö÷機µÄ
Port 3456
£¬並Ö¸¶¨Èô³¬過
30
Ãë沒ÓÐ連ÉÏÄ¿µÄµØ»ò
30
Ãë沒ÓлØ應µÄ話×Ô動
Timeout
¡£
# tar -zcf - /etc | netcat -w 30 10.0.0.99 3456
ʾ範 netcat
ÈçºÎ當
TCP Server
¹¤¾ß
Èç¹ûÄÃÒÔÉϵÄÀý×Ó£¬Äã¿ÉÄÜ會Ïë說ÄÇÄã還Òª×Ô¼º寫Ò»個 Server
½ÓÊÜ這Щ·â°ü°¡£¡´ð°¸ÊÇ£º¡¸Ö»ÒªÓÃ
netcat
¾Í¿ÉÒÔÄÃ來當
Server
ÓÃÁË£¬Ò»ÐгÌʽҲ²»ÓÃ寫¡¹£¬µ×ÏÂ這¶ÎÖ¸ÁîÊǼÙ設從
10.0.0.99
Ö÷機執Ðеġ£
# netcat -l -p 3456 > /backup/my_etc_backup.tar.gz
-l 參數´ú±í進Èë
Listen mode
-p ´ú±í
Listen
µÄ
Port
為
3456
Ö®ááµÄ > my_etc_backup.tar.gz
´ú±íÄãÒª將從
TCP
傳ÈëµÄËùÓÐ資Á϶¼導Èëµ½
/backup/my_etc_backup.tar.gz
檔°¸ÖС£
ÓÃÒÔÉÏ兩個·Ç³£簡單µÄÀý×ӾͿÉÒÔÖªµÀ£¬Ô來ÔÚ網·֮間傳輸資ÁÏ¿ÉÒÔÈç´ËµÄ簡單¡£ÈôÖªµÀ
Ïà¹ØÎĵµ£º
ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......
¡¶LinuxÄÚºËÔ´´úÂëÍêȫעÊÍ¡·ÊÇͦ²»´íµÄ£¬µ«ÒªÀí½âÕûÌå¼Ü¹¹µÄ»°»¹ÊÇÏȱð¿´Õâ¸ö£¬»¹ÊǵȾßÌå·ÖÎöÄÚºËÄĸö²¿·ÖµÄʱºòÔÙÕë¶Ô×ÅÈ¥¿´ÏàÓ¦²¿·ÖµÄ×¢ÊÍ°É£®
a.ÍƼöÄÚºËѧϰÊé¼®
1.ѧϰÄÚºËÕûÌå½á¹¹ºÍ»ù±¾ÀíÂÛ֪ʶ: <Linux Kernel Development second edition>,ÖÐÎÄÃû:LinuxÄÚºËÉè¼ÆÓëʵÏÖ µÚ2°æ
2.Ñ§Ï°Ç ......
1.#uname -a
Èç¹ûÓÐx86_64¾ÍÊÇ64λµÄ£¬Ã»ÓоÍÊÇ32λµÄ
2.# uname -m
x86_64
3.# arch
x86_64
4.#file /bin/cat
/bin/cat: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped
5.²é¿´cpuÊǶàÉÙλµÄ
more /proc/cpuinfo
ÔõÑù²é¿´ LI ......
1.×Ô¶¨ÒåÊä³ö
Ïë±Ø´ó¼Ò¶¼ÓÐÀûÓÃÊä³öº¯ÊýÈçprintfÀ´°ïÖúÎÒÃǵ÷ÊÔ³ÌÐòµÄ¾Àú£¬ÕâÊÇÒ»ÖֱȽÏÔʼµÄ³ÌÐòµ÷ÊÔ¸¨Öú·½·¨£¬ÔÚLinuxÏÂÒ²¿ÉÒÔΪÎÒÃÇËùÓᣲ»¹ýÕâÖÖ·½·¨ÓÐÒ»¸öÃ÷ÏÔµÄȱµã£¬¾ÍÊÇÔÚµ÷ÊÔÍêºóÎÒÃDZØÐë×¢ÊÍ»òɾ³ýµôÕâЩ¸¨Öú´úÂë¡£Linux CÌṩÁË-DDEBUGÕâ¸ö±àÒë±ê¼ÇÀ´¶¨ÒåDEBUGÕâ¸ö·ûºÅ£¬½èÖúÓڸ÷ûºÅ£¬ÎÒÃÇ¿ÉÒÔÔÚÓ¦Ó ......
ÔÚLinuxÉϽ¨Á¢LDAP·þÎñÆ÷
ÔÚLinuxÉϽ¨Á¢LDAP·þÎñÆ÷(Ò»)
×÷ÕߣºCarla Schroder;¹Ëâý·Òë ·¢ÎÄʱ¼ä£º2003.12.30
ÄãµÄÍøÂçÔÚ¹æÄ£ºÍ¸´ÔÓÐÔ·½ÃæÕý´¦Óڳɳ¤ÆÚ¡£Ò»Â·´«²¥Ã¿¼þÊÂÎï¡¢·¢Õ¹×³´óÿ¼þÊÂÎïÈ»ºóÔÙ¶ªÆúÿ¼þÊÂÎォռÓÃÁËËüÒ»ÉúµÄʱ¼ä¡£µ±ÄãÍ´¿àµÄË«ÊÖ±§Í·£¬ÊÔͼŪÇå³þµÄʱºò£¬ÄãµÄÓû§²»ÖªµÀ´ÓÄÄÀï·¢ÏÖÁËÄãµÄÃØÃܵ绰ºÅ ......