亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cpmask.c

?? 解加密的zip文件的密碼的程序
?? C
字號:
#include <stdio.h>#include <stdlib.h>#include <assert.h>/* CP mask code *//* The original CP code was written by Hirotsuna Mizuno and is * Copyright (c) 1998 Hirotsuna Mizuno <s1041150@u-aizu.ac.jp> * * I heavily modified his code. * as for speed, this algorithm could be improved without end, * and alternative algorithms might exist that might be several orders * of magnitude faster. *//* this is faster */typedef unsigned int UI;static UI image_width;static UI image_height;static u8 *image_data;static UI transform_width;static UI transform_height;static u8 *transform_data;typedef struct  {    UI dst_x, dst_y;    int mirror;  }cp_cell;static UI cp_cells;static cp_cell *cp_trans;static int *cp_table;static UI cp_width;static UI cp_height;#define CP_CODE_MAX_LENGTH	16#define CP_CELL_SIZE		8#define CP_BPP			3#define OFFSET_X		0#define OFFSET_Y		0/* the maximum size of the transformed image in cells */#define MAX_SIZE		4#define MAX_CP_WIDTH		2048#define src_pixel(x,y,c) image_data     [((y)*image_width    +(x)) * CP_BPP + (c)]#define dst_pixel(x,y,c) transform_data [((y)*transform_width+(x)) * CP_BPP + (c)]static voidload_img (const char *name){  FILE *img;  UI image_depth;  if (image_data)    fprintf (stderr, "cannot load more than one image\n");  else    {      img = fopen (name, "rb");      if (img)	{	  if (fscanf (img, "P6 ") == EOF)	    perror ("no BINARY PPM header detected");	  else	    {	      fscanf (img, "#%*[^\012\015] ");	/* comment */	      if (fscanf (img, "%u ", &image_width) != 1)		fprintf (stderr, "unable to read image width\n");	      else		{		  fscanf (img, "#%*[^\012\015] ");	/* comment */		  if (fscanf (img, "%u ", &image_height) != 1)		    fprintf (stderr, "unable to read image height\n");		  else		    {		      fscanf (img, "#%*[^\012\015] ");	/* comment */		      if (fscanf (img, "%u%*[ \012\015] ", &image_depth) != 1)			fprintf (stderr, "unable to read image depth\n");		      else			{			  if (image_depth != 255)			    fprintf (stderr, "pixel maxval %d (!= 255) is not supported\n", image_depth);			  else			    {			      image_data = (u8 *) malloc (image_width * image_height * CP_BPP);			      if (!image_data)				fprintf (stderr, "unable to allocate memory for image\n");			      else				{				  if (fread (image_data, image_width * image_height * CP_BPP, 1, img) != 1)				    fprintf (stderr, "unable to read image data\n");				  else				    {				      /*fprintf (stderr, "read image %dx%d, %d\n", image_width, image_height, image_depth); */				      file_path[file_count++] = name;				    }				}			    }			}		    }		}	      fclose (img);	    }	}    }}/* if you are interested, the following code can detect hidden passwords * stored in CP-masked-JPEG files. *//* * sorry, the detect code was removed ;) *//*----------------------------------------------------------------------------*/static u8 cp_key[] ={0x10, 0x17, 0x13, 0x15, 0x09, 0x08, 0x0a, 0x14, 0x06, 0x05, 0x16, 0x02, 0x0d,0x03, 0x01, 0x04, 0x19, 0x0c, 0x0f, 0x0e, 0x12, 0x07, 0x0b, 0x18, 0x11, 0x1a};static cp_table_lu1[MAX_CP_WIDTH];static cp_table_lu2[MAX_CP_WIDTH];/* this is a bottleneck */static voidcp_set_pw (u8 * pw, u8 * pw_end){  u8 *cursor;  int i, j, x, y, len;  int *table;  cp_cell *trans;  len = pw_end - pw;  for (i = x = y = 0, table = cp_table, trans = cp_trans;       i < cp_cells;       i++)    {      *table++ = -1;      trans->dst_x = x;      trans->dst_y = y;      trans->mirror = 0;      trans++;      if (++x == cp_width)	{	  x = 0;	  y++;	}    }  x = cp_cells - 1;  y = len + cp_cells % len;  for (i = 0, cursor = pw; i < cp_cells; i++)    {      x = cp_key[*cursor - 'A'] + x + y;      if (++cursor == pw_end)	cursor = pw;      if (x >= cp_cells)	x -= cp_cells;      if (x >= cp_cells)	x -= cp_cells;      while (cp_table[x] != -1)	{	  ++x;	  if (x >= cp_cells)	    x = 0;	}      cp_table[x] = i;      y++;      if (++i >= cp_cells)	break;      x = cp_key[*cursor - 'A'] + x + y;      if (++cursor == pw_end)	cursor = pw;      if (x >= cp_cells)	x -= cp_cells;      if (x >= cp_cells)	x -= cp_cells;      while (cp_table[x] != -1)	{	  if (x == 0)	    x = cp_cells;	  x--;	}      cp_table[x] = i;      y++;    }  for (i = 0, j = cp_cells - 1; i < j; i++, j--)    {      cp_trans[cp_table[i]].dst_x = cp_table_lu1[j];      cp_trans[cp_table[i]].dst_y = cp_table_lu2[j];      cp_trans[cp_table[j]].dst_x = cp_table_lu1[i];      cp_trans[cp_table[j]].dst_y = cp_table_lu2[i];      if ((cp_table[i] ^ cp_table[j]) & 1)	{	  cp_trans[cp_table[i]].mirror = 1;	  cp_trans[cp_table[j]].mirror = 1;	}    }}/*----------------------------------------------------------------------------*/static voidcp_do_mask (void){  UI x, y, src_x, src_y;  UI u, v, dst_x, dst_y;  UI xx;  int rot;  cp_cell *cell = cp_trans;  for (y = 0; y < cp_height; ++y)    {      for (x = 0; x < cp_width; ++x)	{	  {	    u = cell->dst_x;	    v = cell->dst_y;	    rot = cell->mirror;	    cell++;	    dst_x = x * CP_CELL_SIZE + OFFSET_X;	    dst_y = y * CP_CELL_SIZE + OFFSET_Y;	    src_x = u * CP_CELL_SIZE + OFFSET_X;	    src_y = v * CP_CELL_SIZE + OFFSET_Y;	  }#define   COPY(sx,sy,dx,dy) do { \            u8 *s = &src_pixel (src_x + (sx), src_y + (sy), 0);	\            u8 *d = &dst_pixel (dst_x + (dx), dst_y + (dy), 0);	\            *d++ = *s++;	\            *d++ = *s++;	\            *d++ = *s++;	\	  } while(0)	  if (dst_x + CP_CELL_SIZE <= transform_width &&	      dst_y + CP_CELL_SIZE <= transform_height)	    {	      if (rot)		{		  /* this is shit */		  for (xx = CP_CELL_SIZE - 1; xx--;)		    {		      COPY (xx + 1, 0, 0, xx + 1);		      COPY (0, xx, xx, 0);		      COPY (xx, CP_CELL_SIZE - 1, CP_CELL_SIZE - 1, xx);		      COPY (CP_CELL_SIZE - 1, xx + 1, xx + 1, CP_CELL_SIZE - 1);		    }		}	      else		{		  for (xx = CP_CELL_SIZE; xx--;)		    {		      COPY (xx + 1, 0, xx + 1, 0);		      COPY (0, xx, 0, xx);		      COPY (xx, CP_CELL_SIZE - 1, xx, CP_CELL_SIZE - 1);		      COPY (CP_CELL_SIZE - 1, xx + 1, CP_CELL_SIZE - 1, xx + 1);		    }		}	    }#undef COPY	}    }//  {FILE *f=fopen("x.ppm","wb"); fprintf (f,"P6 %d %d %d ",transform_width,transform_height,255); fwrite(transform_data,transform_width*transform_height*CP_BPP,1,f); fclose(f); }}static voidcp_cleanup (void){  if (cp_table)    free (cp_table);  if (cp_trans)    free (cp_trans);}static voidinit_cpmask (void){  UI i;  assert (image_data);  cp_width = image_width / CP_CELL_SIZE;  cp_height = image_height / CP_CELL_SIZE;  cp_cells = cp_width * cp_height;  cp_table = (int *) malloc (sizeof (int) * cp_cells);  cp_trans = (cp_cell *) malloc (sizeof (cp_cell) * cp_cells);  if (cp_width > MAX_CP_WIDTH)    {      printf ("maximum image width in this version is %d\n", MAX_CP_WIDTH * CP_CELL_SIZE);      exit (1);    }  for (i = 0; i < MAX_CP_WIDTH; i++)    {      cp_table_lu1[i] = i % cp_width;      cp_table_lu2[i] = i / cp_width;    }  transform_width = image_width < CP_CELL_SIZE * MAX_SIZE ? image_width : CP_CELL_SIZE * MAX_SIZE;  transform_height = image_height < CP_CELL_SIZE * MAX_SIZE ? image_height : CP_CELL_SIZE * MAX_SIZE;  transform_data = (u8 *) malloc (transform_width * transform_height * CP_BPP);}static intcrack_cpmask (gen_func genfunc, callback_func cbfunc){  unsigned long minimum = 1 << 31;  unsigned long current;  int changed = -1;  int x, y;  do    {      if (changed >= 4 && verbosity)	printf ("checking pw %s\r", pw), fflush (stdout);      if (changed < 0)	pw_end = pw + strlen (pw);      cp_set_pw (pw, pw_end);      cp_do_mask ();#define P(x,y,c) (UI)dst_pixel((x),(y),(c))      current = 0;      for (x = CP_CELL_SIZE; x < transform_width; x += CP_CELL_SIZE)	for (y = transform_height; y--;)	  {	    current += abs (P (x - 1, y, 0) - P (x, y, 0));	    current += abs (P (x - 1, y, 1) - P (x, y, 1));	    current += abs (P (x - 1, y, 2) - P (x, y, 2));            if (current > minimum)              goto overflow;	  }      for (y = CP_CELL_SIZE; y < transform_height && current < minimum; y += CP_CELL_SIZE)	for (x = transform_width; x-- && current < minimum;)	  {	    current += abs (P (x, y - 1, 0) - P (x, y, 0));	    current += abs (P (x, y - 1, 1) - P (x, y, 1));	    current += abs (P (x, y - 1, 2) - P (x, y, 2));            if (current > minimum)              goto overflow;	  }#undef Poverflow:      if (current < minimum)	{	  char info[80];	  minimum = current + 99;	  sprintf (info, "badness %ld", current);	  if ((changed = cbfunc (pw, info)))	    return changed;	}    }  while ((changed = genfunc ()));  return 0;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产在线视频一区二区| 久久99久久精品| 看电视剧不卡顿的网站| 91丝袜呻吟高潮美腿白嫩在线观看| 欧美在线一二三四区| 国产视频一区在线播放| 一区二区三区av电影| 成人精品视频一区二区三区| 欧美一区二区美女| 亚洲国产精品麻豆| 91小视频在线免费看| 久久精品人人做| 美女网站视频久久| 欧美久久久久免费| 亚洲综合激情小说| 99久久免费视频.com| 国产三级久久久| 日韩精品一二区| 在线观看av不卡| 美女视频一区二区| 欧美一区二区在线观看| 亚洲一区二区欧美激情| 日本黄色一区二区| 17c精品麻豆一区二区免费| 国产盗摄精品一区二区三区在线| 欧美一级高清大全免费观看| 日韩影院在线观看| 日韩欧美自拍偷拍| 美女精品自拍一二三四| 日韩精品一区二区三区四区视频 | www国产成人| 精品一区二区三区免费观看 | 亚洲国产精品t66y| 狠狠色丁香久久婷婷综合_中| 欧美一区二区视频观看视频| 性欧美大战久久久久久久久| 在线看日本不卡| 亚洲综合无码一区二区| 精品视频色一区| 香港成人在线视频| 欧美日韩精品欧美日韩精品| 石原莉奈在线亚洲二区| 制服.丝袜.亚洲.另类.中文| 男男gaygay亚洲| 欧美xxxxxxxxx| 国产资源精品在线观看| 国产亚洲欧美激情| 成人免费视频一区| 亚洲另类在线一区| 欧美日韩精品系列| 国内精品视频666| 国产亚洲综合在线| 色婷婷精品久久二区二区蜜臀av | 国产一区二区91| 久久久99精品久久| 91免费视频网址| 亚洲电影在线免费观看| 欧美成人福利视频| av在线不卡免费看| 亚洲国产精品精华液网站| 欧美一级一级性生活免费录像| 国精产品一区一区三区mba桃花| 欧美国产激情二区三区| 欧美亚日韩国产aⅴ精品中极品| 免费在线观看一区二区三区| 国产欧美一区二区三区在线老狼| 91精品福利在线| 精品制服美女丁香| 亚洲激情男女视频| 久久综合狠狠综合久久激情| 色婷婷精品大视频在线蜜桃视频 | 国产精品99久| 亚洲一区在线观看免费| 久久影视一区二区| 欧美日韩中字一区| 成人免费视频caoporn| 午夜精品久久久久久久99水蜜桃 | 成人av在线资源网| 婷婷六月综合亚洲| 亚洲人成伊人成综合网小说| 日韩精品中午字幕| 色偷偷一区二区三区| 国产精品一二三区在线| 亚洲制服欧美中文字幕中文字幕| 久久这里只有精品首页| 欧美日韩1234| 99九九99九九九视频精品| 久久66热re国产| 亚洲不卡在线观看| 中文字幕综合网| 国产偷v国产偷v亚洲高清| 欧美一个色资源| 欧美视频你懂的| 97超碰欧美中文字幕| 国产黄色精品网站| 麻豆国产91在线播放| 亚洲大片免费看| 亚洲精品乱码久久久久久| 国产日韩成人精品| 亚洲精品一区二区三区精华液| 欧美视频一二三区| 在线看国产一区二区| 99精品欧美一区二区三区小说 | 日韩欧美国产综合一区| 欧美私人免费视频| 色8久久精品久久久久久蜜 | 成人久久久精品乱码一区二区三区| 麻豆视频观看网址久久| 奇米在线7777在线精品| 首页综合国产亚洲丝袜| 水野朝阳av一区二区三区| 亚洲bt欧美bt精品| 性欧美疯狂xxxxbbbb| 丝袜a∨在线一区二区三区不卡| 国产欧美日韩另类视频免费观看| 欧美人成免费网站| 色综合久久中文综合久久97| 成人手机在线视频| 国产69精品久久777的优势| 精品在线免费视频| 久色婷婷小香蕉久久| 日韩精品一卡二卡三卡四卡无卡| 日韩专区在线视频| 日本欧美在线观看| 美女一区二区久久| 久久66热偷产精品| 国产一区美女在线| 成人毛片视频在线观看| 91蜜桃在线观看| 欧美日韩国产精品成人| 日韩一二在线观看| 国产丝袜美腿一区二区三区| 成人激情电影免费在线观看| 亚洲精选免费视频| 亚洲国产综合视频在线观看| 婷婷久久综合九色国产成人 | 一区二区三区四区在线播放| 亚洲美女在线国产| 图片区小说区区亚洲影院| 美女视频一区二区| 成人精品高清在线| 在线免费亚洲电影| 日韩一卡二卡三卡| 欧美国产一区在线| 亚洲自拍另类综合| 国产一二三精品| 色就色 综合激情| 日韩亚洲欧美在线观看| 国产欧美日韩中文久久| 一级特黄大欧美久久久| 久久成人免费网| 97久久超碰精品国产| 精品国产乱码久久久久久夜甘婷婷 | 日韩欧美一区在线| 国产免费久久精品| 亚洲国产视频一区二区| 精品综合久久久久久8888| 99久久99久久精品免费观看 | 免费看黄色91| 99久久久久久99| 欧美大肚乱孕交hd孕妇| 亚洲少妇最新在线视频| 麻豆精品一区二区三区| 色8久久精品久久久久久蜜| 久久婷婷一区二区三区| 亚洲高清视频的网址| 成人av在线一区二区三区| 日韩精品一区二区三区视频播放| 亚洲美女视频在线观看| 国产精品自拍三区| 91精品国产综合久久久久久漫画| 亚洲欧美综合色| 国产乱子轮精品视频| 7777精品伊人久久久大香线蕉完整版 | 在线免费观看日韩欧美| 欧美激情一区二区三区四区 | 99视频超级精品| 精品久久久久久久久久久久久久久| 一级中文字幕一区二区| 成人av电影免费在线播放| 337p日本欧洲亚洲大胆色噜噜| 亚洲777理论| 欧美中文字幕一区二区三区亚洲| 欧美激情在线看| 粉嫩蜜臀av国产精品网站| 91国产精品成人| 欧美日韩国产美女| 亚洲色图都市小说| 国产91清纯白嫩初高中在线观看| 日韩精品一区二区三区视频播放 | 久久久久久夜精品精品免费| 午夜精品一区二区三区电影天堂 | 欧美日本一区二区三区| 亚洲一级电影视频| 欧美中文字幕一区| 亚洲成人免费观看| 欧美美女激情18p| 午夜精品123| 欧美一区二区三级| 久久国产福利国产秒拍|