22019, 1/1101 ȸ¿ø°¡ÀÔ  ·Î±×ÀΠ 
   gjwjqzz2
   À̰ŠÄÚµùÇØÁֽǺÐÀÖ³ª¿ä??!!

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


magickwand¸¦ »ç¿ëÇÏ¿© Çȼ¿µ¥ÀÌÅÍÀÇ lsb¸¦ standard output¿¡ Ãâ·ÂÇÏ´Â ÄÚµå ¿ä!!!
bmp ½ºÅ×°¡³ë¹®Á¦°¡Àִµ¥ ¾î·Æ³×¿© ¤Ð¤Ð¤Ð

  Hit : 11210     Date : 2012/09/08 02:37



    
gjwjqzz2 //#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <wand/MagickWand.h>
#include <unistd.h>
//using namespace std;
#define ThrowWandException(wand){
char *description;
ExceptionType severity;
description=MagickGetException(wand,&severity);
(void) fprintf(stderr,"%s %s %lu %s\n",GetMagickModule(),description);
description=(char *) MagickRelinquishMemory(description);
exit(-1);
}
int main(int argc, char** argv){
// PixelGetMagickColor();
if(argc<2){
printf("usage: %s imagefile\n", argv[0]);
return 1;
}
MagickWand* w;
MagickWandGenesis();
w=NewMagickWand();
//PixelGetMagickColor();
if(MagickReadImage(w,argv[1])==MagickFalse)
ThrowWandException(w);
PixelIterator* it;
PixelWand** pixels;
register unsigned int x; unsigned int y;
unsigned long width;
MagickPixelPacket pixel;
char tmp=0;
int tmp_index=0;
for (y=0; y < MagickGetImageHeight(w); y++){
pixels=PixelGetNextIteratorRow(it,&width);
for (x=0; x < width; x++){
//get the lsb of the pixel here
PixelGetMagickColor(pixels[x],&pixel);
char bit=((int)pixel.red)&1;
tmp=tmp|(bit << tmp_index);
tmp_index++;

if(tmp_index>=8){
write(1,&tmp,1);
tmp=0;tmp_index=0;
}
bit=((int)pixel.green)&1;
tmp=tmp|(bit << tmp_index);
tmp_index++;
if(tmp_index>=8){
write(1,&tmp,1);
tmp=0;tmp_index=0;
}
bit=((int)pixel.blue)&1;
tmp=tmp|(bit << tmp_index);
tmp_index++;
if(tmp_index>=8){
write(1,&tmp,1);
tmp=0;tmp_index=0;
}
//move the next line before 'char bit'
//PixelGetMagickColor(pixels[x],&pixel);
//printf("%i",pixel.blue);
}
}
}
À̰ɷγª¿ÍÀִµ¥ ¹®¹ý¿¡·¯°¡³ª¿ä ¤Ð¤Ð¤Ð¤Ð
2012/09/08  
     [°øÁö]ÇØÄ¿½ºÄð ÀÌ¿ë¼öÄ¢ 2021/04/11 ¼öÁ¤ÆÇ [54] ÇѽÂÀç 01/05 11604
22018   À¸¾Ó!!![1]     ÇØÅ·ÀßÇϰí½Í´Ù
02/05 36
22017   A¤¿...     ÇØÅ·ÀßÇϰí½Í´Ù
01/27 86
22016   ¿À·£¸¸~     DarkSlayer
12/11 270
22015   ÇØÄ¿½ºÄð ¿¾³¯ BGM[1]     wkfhddl4041
11/07 416
22014   È÷À×...     ÇØÅ·ÀßÇϰí½Í´Ù
11/02 337
22013   ¹ÙµÏ°ú Àå±â     ÇØÅ·ÀßÇϰí½Í´Ù
10/30 371
22012   ³ª´Â ¾ðÁ¦ ¾ÖÀÎÀÌ »ý±â³ª¿è...     ÇØÅ·ÀßÇϰí½Í´Ù
10/27 427
22011   Àü±¹ 1À§     ÇØÅ·ÀßÇϰí½Í´Ù
10/27 377
22010   ´ã¹è ¤»¤»[1]     ÇØÅ·ÀßÇϰí½Í´Ù
10/27 385
22009   ¸ÅÆ®¸¯½ºÀÇ ÆÄ¶õ¾àÀ» ¾Æ½Ê´Ï±î..?     ÇØÅ·ÀßÇϰí½Í´Ù
10/27 367
22008   ¤·¤·[1]     ÇØÅ·ÀßÇϰí½Í´Ù
10/20 357
22007   ¿ÉÄ¡ ÇÙ°¨Áö ÇÁ·Î±×·¥Á» ¸¸µé¾îÁÖ¼¼¿ä[1]     powerima
10/15 360
22006   ÇØÅ·ÆÀ¿ø ¸ðÁý[1]     koromoon
08/27 884
22005   °°ÀÌ ÇØÅ· ÆÀ ÀÌ·ç½ÇºÐ??     hacs98
08/26 572
22004   ¾Æ........ ¤Ð¤Ð     ÇØÅ·ÀßÇϰí½Í´Ù
08/04 728
22003   ±Í¼ö(Сâ¢) µû¶óÇϱâ(?)     ÇØÅ·ÀßÇϰí½Í´Ù
07/28 718
22002   ½º½º·Î ¸ñ¼ûÀ» Á®¹ö¸°´Ù´Â °ÍÀº     ÇØÅ·ÀßÇϰí½Í´Ù
07/27 748
22001   ¹ÌÄ£µí     ÇØÅ·ÀßÇϰí½Í´Ù
07/02 803
22000   »ç¹«½Ç     ÇØÅ·ÀßÇϰí½Í´Ù
07/02 740
1 [2][3][4][5][6][7][8][9][10]..[1101]

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