ÀÌÄÉ Æ¼µå ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- MIT/X Consortium Lic...
- °Ô½ÃÀÚ À̸§:
- Charles Leifer
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://www.charlesleifer.com/blog/
ÀÌÄÉ Æ¼µå ű×
ÀÌÄÉ Æ¼µå ¼³¸í
ÆÄÀ̽㿡¼ ¸¸µç ½ºÅ©·¡Ä¡ IRC ¶óÀ̺귯¸® irckitÀº Pycon.Example·Î ÀÛ¼ºµÈ Made-Scratch IRC ¶óÀ̺귯¸®ÀÔ´Ï´Ù. IRC °¡Á® ¿À±â IRC IRCRBOT, RUN_BOTCLASS Greeterbot (IRCBOT) : DEF Àλç (ÀÚü, ´Ð, ¸Þ½ÃÁö, ä³Î) : '¾È³çÇϼ¼¿ä, % s'% Nick DEF Command_Patterns ( ÀÚü) : return (self.ping ( '^ hello', self.greet),) È£½ºÆ® = 'irc.freenode.net'port = 6667nick ='greeterbot'run_bot (Greeterbot, È£½ºÆ®, Æ÷Æ®, ´Ð, ) BotnetThe BotnetÀ» ½ÇÇàÇÏ´Â °ÍÀº ¸ðµç ¼öÀÇ "±Ù·ÎÀÚ"¿Í ÀÎÅÍÆäÀ̽ºÇÏ´Â "º¸½º"¸í·É ÇÁ·Î±×·¥À¸·Î ±¸¼ºµË´Ï´Ù. ¸í·É ÁÙ¿¡¼ ½ÇÇàÇÏ·Á¸é Python Boss.py -C SecretBotz -n Daboss1 ÀÌThis´Â "#secretbotz"¸¦ »ç¿ëÇÏ¿© ¸í·É ÇÁ·Î±×·¥À» ¸í·É ä³Î·Î ½ÃÀÛÇÕ´Ï´Ù. º¸½º´Â ´Ð³×ÀÓ "Daboss1"À¸·Î ½Äº°µË´Ï´Ù. ±âº» È£½ºÆ®´Â IRC.Freenode.netÀÌÁö¸¸ "-h"¿É¼ÇÀ» »ç¿ëÇÏ¿© ±¸¼º ÇÒ ¼ö ÀÖ½À´Ï´Ù .Next´Â ¸ðµç ¼öÀÇ ÀÛ¾÷ÀÚ¸¦ ½ÃÀÛÇÕ´Ï´Ù. ³ëµ¿ÀÚµéÀº ¸í·É º¿ÀÇ ´ÐÀ» ¾Ë¾Æ¾ßÇϹǷΠ½º½º·Î¸¦ µî·ÏÇÏ°í ÀÛ¾÷À» ¼ö¶ô ÇÒ ¼ö ÀÖ½À´Ï´Ù. Python Worker.py -b Daboss1Now IRC Ŭ¶óÀ̾ðÆ®¸¦ »ç¿ëÇÏ¿© #Secretbotz¿¡ °¡ÀÔÇÏ°í "Daboss1"À» º¼ ¼ö ÀÖ¾î¾ßÇÕ´Ï´Ù. <À½¿µ>! ÀÎÁõ ¾ÏÈ£ ¼º°ø <À½¿µ°Å>! »óÅ 1 ±Ù·ÎÀÚ »ç¿ë °¡´É 0 ŽºÅ©´Â ÀÛ¾÷ÀÚ ÄÄÇ»ÅÍ¿¡¼ ½ºÄÉÁÙ ·¿À» ½ÇÇàÇÕ´Ï´Ù. <À½¿µ>! vmstat ¿¹¾à µÈ ÀÛ¾÷ ½ÇÇà : ID 1 ŽºÅ© 1 ÀÛ¾÷ 1Àº ¸í·ÉÀÇ Ãâ·Â À̾ú½À´Ï±î? Á¤½ÄÈ>! Àμâ - vmstat procs - --------- ¸Þ¸ð¸® ------------ ½º¿Ò - ----- IO ----- ½Ã½ºÅÛ ----- CPU ---- RB SWPD ¹«·á ¹öÇÁ ij½Ã SI ±×·¡¼ CS US SY ID WA 00 00 9777845040049101440 046291034433 1960 ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽ã
ÀÌÄÉ Æ¼µå °ü·Ã ¼ÒÇÁÆ®¿þ¾î