½Ã½ºÅÛ ÇØÅ·

 1574, 9/79 ȸ¿ø°¡ÀÔ  ·Î±×ÀΠ 
   yelohair354
   ½Ã½ºÅÛ ÇØÅ· Linux Ãʺ¸¿¡¼­ dumpÄڵ忡¼­ ¸·Çô¼­ Áú¹®µå¸³´Ï´Ù ¤Ð

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


´ýÇÁÄڵ带 ¶È°°ÀÌÇؼ­ ÇØ´õÆÄÀÏ Ãß°¡¸¦ ½ÃÄִµ¥ ½ÇÇàÀÌ ¾ÈµÇ¼­

¾î¶»°Ô ¿Ã·Á¾ßµÇ´ÂÁö Áú¹®µå¸³´Ï´Ù ¤Ð¤Ð

void printchar(unsigned char c)
{
    if(isprint(c))
        printf("%c",c);
    else
        printf(".");
}

void dumpcode(unsigned char* buff, int len)
{
    int i;
    for(i=0 ; i<len ; i++){
        if(i%16 == 0)
            printf("0x%08x", &buff[i]);

        printf("%02x", buff[i]);

        if(i%16-15 == 0){
            int j;
            printf(" ");
            for(j=i-15 ; j<=i ; j++)
                printchar(buff[j]);
            printf("\n");
        }
    }

    if (i%16 != 0){
        int j;
        int spaces=(len-i+16-i%16)*3+2;
        for(j=0 ; j<spaces ; j++)
            printf(" ");
        for(j=i-i%16;j<len;j++)
            printchar(buff[j]);
    }
    printf("\n");
}


ÀÌ·¸°Ô ³Ö±¸¿ä ¤Ð¤Ð

¿¹Á¦ ½ÇÇà ÆÄÀÏÀ»



#include<stdio.h>

#include ¡°dumpcode.h¡±
int main()
{
int i;
char str[20] = ¡°hackerschool!¡±;
printf(¡°%s\n¡±, str);
dumpcode((unsigned char *)&str, 100);
}



ÀÌ·¸°Ô ÀúÀåÇÏ°í



gcc -o dumpcodetest dumpcodetest.c



ÀÌ·¸°Ô ÄÄÆÄÀÏÀ» ½ÇÇàÇß½À´Ï´Ù

±×·§´õ´Ï..

gcc: dumpcodetest: No such file or directory
In file included from dumpcodetest.c:2:
/usr/include/dumcode.h: In function 'dumpcode' :
/usr/include/dumcode.h: 20:parse error before '}' token
/usr/include/dumcode.h:  At top level
/usr/include/dumcode.h: 27:parse error before '}' token
/usr/include/dumcode.h: 32:'len' undeclared here (not in a function)
/usr/include/dumcode.h: 32:'i' undeclared here (not in a function)
/usr/include/dumcode.h: 32:'i' undeclared here (not in a function)
/usr/include/dumcode.h: 33: parse error before "for"
/usr/include/dumcode.h: 38: parse error befor string constant

ÀÌ·± ¿À·ù°¡ ³³´Ï´Ù ¤Ð¤Ð.. º¯¼ö ¼±¾ðÀº µÇÀִµ¥ ¿Ö ¿À·ù°¡ ³ª´ÂÁö ÀÌÇØ°¡ ¾ÊµÇ¿ä ¤Ð¤Ð

¾î¶»°Ô ÇØ¾ß ¿¹Á¦°¡ ½ÇÇàÀÌ µÉ±î¿ä..¤Ð..?

  Hit : 3862     Date : 2014/03/31 01:18



    
kumi123 /usr/include

µð·ºÅ丮ÀÇ Á¤È®È÷ ³ÖÀ¸¼Ë³ª È®ÀÎÇغ¸¼¼¿ä
2014/04/02  
1414   ½º¸¶Æ®ÆùÇØÅ·[3]     ykoy1577
06/16 3873
1413   ÇϾÆ.... µµÀúÈ÷ ¸ð¸£°Ú½À´Ï´Ù ¹ÌÃĹö¸±²¨°°³×¿ä Á¦¹ß µµ¿ÍÁÖ¼¼¿ä ¤Ð_¤Ð[13]     ykji1003
01/13 4166
1412   ÀüÈ­±â¿¡¼­ ±Ã±ÝÇÑ°Ô À־ ±×·¯´Âµ¥..[4]     YJG
09/19 3812
1411   ÀÌ°Å ¾îµð´Ù ½á¾ß ÇÒÁö ¸ô¶ó¼­ ½Ã½ºÅÛ ÇØÅ·¿¡¼­ ¹°¾îº¾´Ï´Ù.[2]     yj6393
07/31 3615
1410   À©Çí½º°¡ ¹¹¿¡¿ä?[1]     yj6393
07/29 3573
1409   v3´Â ÇÁ·Î±×·¥ÀÇ ¼Ò½ºÄڵ带 º¸°í Ä¡·áÇÏ´Â ÇÁ·Î±×·¥Àΰ¡¿ä?     yj6393
07/08 2936
1408   ¹ÙÀÌ·¯½ºµµ ÇÁ·Î±×·¥Àΰ¡¿ä?[3]     yj6393
07/06 3278
1407   [bof] ¹öÆÛ¿À¹öÇ÷οì Áú¹®ÀÌ¿ä ½ºÆ÷ÁÖÀ§[2]     yj6393
11/05 2926
1406   drive by download °ü·ÃÀÚ·á ã½À´Ï´Ù..[1]     yine01
11/04 3224
1405   µÇµµ¾Ê´Â Å©·¡Å· ¸»°í... ÇØÅ·¸»ÀÔ´Ï´Ù...[6]     yhs4489
08/28 3781
1404   Á¤º¸º¸¾ÈÀü¹®°¡ °¡ µÇ°í ½Í½À¤¤µð¤¿[4]     yh0473
05/30 3479
1403   ½ºÅÿ¡ ASLRÀÌ °É·ÁÀÖÀ¸¸é...???[3]     ygw0225
01/17 3818
1402   BOFÇÚµåºÏ ¸¶Áö¸·½Ç½À¹®Á¦ Áú¹®..[4]     ygw0225
01/08 3341
1401   Àú±â¿ä ±ÞÇÕ´Ï´Ù ¤Ì[2]     yenaghhi5
03/13 3798
  ½Ã½ºÅÛ ÇØÅ· Linux Ãʺ¸¿¡¼­ dumpÄڵ忡¼­ ¸·Çô¼­ Áú¹®µå¸³´Ï´Ù ¤Ð[1]     yelohair354
03/31 3861
1399   µµ¿ÍÁÖ¼¼¿ä ¤Ð¤Ð ¹öÆÛ ¿À¹öÇ÷οì...[2]     ydh1220
08/11 3300
1398   ¹öÆÛ¿À¹öÇ÷ο쿡 ´ëÇØ Áú¹®ÀÌ ÀÖ½À´Ï´Ù..     yangil06
05/14 3343
1397   ÈÞ´ëÆù ÇØÅ·[1]     ya2ho
08/17 4840
1396   ¾ÆÁ÷¹æÇâÀ» ¸øÀâ°Ù½À´Ï´Ù µµ¿òÁ» ºÎŹµå·Á¿ä ^^[5]     ya2ho
07/08 3512
1395   SQL ÀÎÁ§¼Ç ÁÁÀº °­ÀÇÁ»...[3]     xodnr631
08/25 3271
[1][2][3][4][5][6][7][8] 9 [10]..[79]

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