⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 charset.h

📁 unix密码破解软件John the Ripper
💻 H
字号:
/* * This file is part of John the Ripper password cracker, * Copyright (c) 1996-98 by Solar Designer *//* * Charset file generation. */#ifndef _JOHN_CHARSET_H#define _JOHN_CHARSET_H#include "params.h"#include "loader.h"/* * Charset file control char codes (only CHARSET_ESC is reserved, and can't * be used in a charset). */#define CHARSET_ESC			0#define CHARSET_NEW			1#define CHARSET_LINE			2/* * Charset file header. */struct charset_header {/* CHARSET_VERSION */	char version[4];/* CHARSET_MIN, CHARSET_MAX */	unsigned char min, max;/* CHARSET_LENGTH */	unsigned char length;/* Number of different characters, up to (max - min + 1) */	unsigned char count;/* File offsets for each length, 32 bit little endian */	unsigned char offsets[CHARSET_LENGTH][4];/* * Cracking order. * * This is a list of current {length, fixed position, character count}. * There're CHARSET_LENGTH different lengths, and fixed position is up * to the current length, which means we have exactly (CHARSET_LENGTH * * (CHARSET_LENGTH + 1) / 2) different {length, fixed position} pairs; * for each such pair we need to try all charsets from 1 character and * up to CHARSET_SIZE characters large. */	unsigned char order		[CHARSET_LENGTH * (CHARSET_LENGTH + 1) / 2 * CHARSET_SIZE * 3];}#if ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)) || (__GNUC__ > 2)	__attribute__ ((packed));#else	;#endif/* * Reads a charset file header. */extern void charset_read_header(FILE *file, struct charset_header *header);/* * Generates a charset file, based on plaintexts in the database. */extern void do_makechars(struct db_main *db, char *charset);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -