1588, 70/80 ȸ¿ø°¡ÀÔ  ·Î±×ÀΠ 
   kjwon15
   http://kjwon15.comoj.com
   ssh ¿¡¼­ ÀÛ¾÷À» ½ÃÄѳõ°í ³ª°¡ÀÚ

http://www.hackerschool.org/HS_Boards/zboard.php?id=Free_Lectures&no=1426 [º¹»ç]


#include<stdlib.h>
#include<string.h>
#include<stdio.h>

int
main(argc,argv)
        int argc;
        char **argv;
{
        if(argc==1)        //Àμö°¡ ¾øÀ» ¶§´Â »ç¿ë¹ýÀ» ¾Ë·ÁÁÖ°í Á¾·áÇÕ´Ï´Ù.
        {
                printf("%s%s%s","Usage : ",argv[0]," argvs\n");
                return 1;
        }
        if(fork()!=0)        //Æ÷Å©¸¦ ÇÏ¿© ºÎ¸ð¿Í ÀÚ½ÄÀ¸·Î ³ª´¯´Ï´Ù.
                exit(0);        //ºÎ¸ð´Â Á¾·áÇÏ¿© ¼ÐÀ» µ¹·ÁÁÝ´Ï´Ù.
        setsid();        //ÀÚ½ÄÀº µ¥¸óÀÌ µÇ¾î¾ß ÇÕ´Ï´Ù.

        register int i;        //¼Óµµ¸¦ ºü¸£°Ô Çϱâ À§ÇÏ¿© ·¹Áö½ºÅÍ º¯¼ö·Î »ç¿ëÇÕ´Ï´Ù.
        char *cmd=malloc(1024);        //cmd ¶ó´Â º¯¼ö¸¦ ÇÒ´çÇÕ´Ï´Ù.
        strcpy(cmd,argv[1]);        //Àμö1À» cmd¿¡ ³Ö½À´Ï´Ù.
        for(i=2;i<argc;i++)        //Àμö°¡ ³²¾ÆÀÖ´Â µ¿¾È
        {
                strcat(cmd," ");        //Àμö»çÀÌ¿¡ " "¸¦ ³Ö°í
                strcat(cmd,argv[i]);        //Àμö¸¦ Áý¾î³Ö½À´Ï´Ù.
        }
        system(cmd);        //±×¸®°í ¸í·ÉÀ» ½ÇÇàÇÕ´Ï´Ù.
        printf("%s%s%s","GLaDOS : ",cmd," finished\n");        //±×¸®°í ³ª¼­ Á¾·á°¡ µÇ¾ú´Ù°í ¾Ë·ÁÁÝ´Ï´Ù.
        return 0;        //±×¸®°í Á¾·áÇÕ´Ï´Ù.
}

  Hit : 6274     Date : 2010/03/06 09:18



    
µµ±úºñ¼±»ý ¿äÁò... kjwon15´ÔÀÇ °­Á Àß º¸°í ÀÖ¾î¿ä...
¾ÆÁ÷ ½Ç·ÂÀÌ ¹ÌÈ÷Çؼ­... µÎ°í µÎ°í º¸·Á°í...
txt ÆÄÀÏ·Î ÀúÀåÇØ µÎ°íÀִµ¥...
±×·¡µµ...±¦Âú³ª¿ä... ¹®Á¦ ÀÖÀ¸½Ã¸é...Á¦ ÄÄÅÍ¿¡¼­ »èÁ¦ÇÒ°Ô¿ä~
¹èÆ÷¸¦ ¸ñÀûÀ¸·Î ÇÏÁö ¾Ê°í... °øºÎ¸¦ ¸ñÀûÀ¸·Î ÀúÀå½ÃÄÑ ³õÀº°Å¿¡¿ä...
^^
2010/03/06  
kjwon15 µµ±úºñ¼±»ý// Àú¾ß °¨»çÇÏÁÒ..

ÀúÀÇ ºÎÁ·ÇÑ °­ÁÂ¶óµµ Àß º¸°í°è½Ã´Ù´Ï °¨»çÇÕ´Ï´Ù.
2010/03/06  
sjh2268 Àú..Àúµµ ÁÖ¼®ºÎºÐ ÀÐÀ¸¸é¼­ ¿­½ÉÈ÷ °øºÎÇÏ°Ú½À´Ï´Ù!¤Ð ÅؽºÆ®¿¡ ¿Å°Ü´ã¾Æ °³ÀμÒÀåÇصµ µÉ·±Áö¿ä?^^; 2010/03/07  
gamja ±×³É ¹é±×¶ó¿îµå·Î ½ÇÇà ½ÃÄѵµ µÇÁö¾Ê³ª¿ä ¤¾¤¾ 2010/03/12  
gamja ã´Ùº¸´Ï µ¥¸ó(¹é±×¶ó¿îµå)È­ ½ÃÄÑÁÖ´Â ÇÔ¼ö°¡ ÀÖ³×¿ä ¤»¤»

#include <unistd.h>

int daemon(int nochdir, int noclose);
2010/03/12  
Cpgroot ÁÁÀºÁ¤º¸ °¨»çÇÕ´Ï´Ù. 2010/08/18  
208   [ÀÚÀÛ] Ãʺ¸ ¸®¹ö½Ì ! [3]     siosio24
08/17 6273
207   Ã¥ °øºÎ¿¡ ´ëÇÏ¿©[1]     lsykoh2
01/16 6272
206   ÇØÄ¿½ºÄðÀº...[1]     jsw2604
12/25 6272
205   [ÀÚÀÛ]M's HTML lecture[3]     Myers
03/21 6271
204     [re] ÇØÄ¿¶õ?     dpttm2
03/12 6267
203   [ÀÚÀÛ±Û]¸®´ª½º¿¡¼­ c¾ð¾î¸¦ ÄÄÆÄÀÏÇغ¸ÀÚ!     ÇѽÂÀç
01/06 6267
202   cÀÇ Æ¯Â¡     smartbloger
06/16 6264
201   [ÀÚÀÛ] C °­ÁÂ [4] - Dynamic Memory Allocation[2]     wolverine
07/06 6257
200   ½ºÅ©¸³Æ® À߸¸µå½Ã´ÂºÐ~     lcd7132
04/26 6252
199   ½ºÅ©¸³Æ® ¾Ë·ÁÁֽǺÐ~     lcd7132
04/29 6241
198   C ¾ð¤· ¤Ã goto(x,y)[4]     hackerÅ×µð
12/31 6232
197   [ÀÚÀÛ]GoogleÇØÅ·±âº»-ÀÍ¸í¼ºÀ» À§ÇÑ Ä³½Ã»ç¿ëPart2[5]     lsn10919
10/11 6226
196   ½ºÅ©¸³Æ®¾Ë·ÁÁֽǺÐ~2     lcd7132
05/03 6210
195   ½ºÅ©¸³Æ® ¾Ë·ÁÁֽǺÐ~2     lcd7132
04/29 6195
194   [ÀÚÀÛ]IPÁÖ¼Ò¿¡ ´ëÇØ     kn0p
02/27 6183
193   ½ºÅ©¸³Æ®¾Ë·ÁÁֽǺÐ~     lcd7132
05/03 6177
192   Çб³¿¡¼­ ¹è¿ì´Â °Í¿¡´Â ÇÑ°è°¡ À־...[2]     39ghwjd
09/12 6173
191   [ÀÚÀÛ] HTML Lecture 5[2]     Myers
05/16 6167
190   [ÀÚÀÛ] Stack based Buffer Overflow[2]     HEx0D
02/12 6163
189   [ÀÚÀÛ] HTML 6,7,8     Myers
08/11 6159
[1]..[61][62][63][64][65][66][67][68][69] 70 ..[80]

Copyright 1999-2024 Zeroboard / skin by Hackerschool.org / Secure Patch by Hackerschool.org