📄 ophcrack.c
字号:
/* This file is part of Ophcrack (Time-Memory-Trade-Off-crack). Ophcrack is a Lanmanager/NTLM hash cracker based on the faster time-memory trade-off using rainbow tables. Created with the help of: Maxime Mueller, Luca Wullschleger, Claude Hochreutiner and Andreas Huber. Copyright 2004 Philippe Oechslin Ophcrack is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Ophcrack is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Ophcrack; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA*//* LanManager/NTLM password cracker using a Time-Memory Trade-Off */static char rcsid[] = "$Id: ophcrack.c,v 1.1 2004/09/13 14:26:02 oechslin Exp $";/* * $Log: ophcrack.c,v $ * Revision 1.1 2004/09/13 14:26:02 oechslin * Fixed bug in -q option * * Revision 1.0 2004/07/10 19:06:46 oechslin * Initial revision * * */#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <string.h>#include <ctype.h>#include <sys/times.h>#include <sys/stat.h>#include <sys/mman.h>#include "make_hash.h"#include "make_redux.h"#define MAX_HASH 5000/* command line options */int magic_chains = 0, stats = 0, parallel = 0, verbose = 0, batch_mode = 0, batch_tables = 1, quiet = 0, ident_col = 99999, cols = 0, offset = 0, first_table = 0, last_table = 20;unsigned char lm_hash1[MAX_HASH][8]={{0}}, lm_hash2[MAX_HASH][8]={{0}}, nt_hash[MAX_HASH][16]={{0}}, empty_hash[8]={0xaa,0xd3,0xb4,0x35,0xb5,0x14,0x04,0xee};int to_go, hashes=0, n=0, done1[MAX_HASH]={0},done2[MAX_HASH]={0};char directory[128], info[MAX_HASH][64]={{0}}, password[MAX_HASH][15], password1[MAX_HASH][8]={{0}}, password2[MAX_HASH][8]={{0}}; FILE *startfile[20],*endfile[20],*indexfile[20];/* statistics */int n_search = 0, n_fseek = 0, n_hashredux = 0, n_false = 0, n_false_redux = 0, n_match = 0, n_loop = 0, n_found = 0;struct tms n_times;int ticks;clock_t n_start_time, laps_time; void usage(char *name){ printf("usage %s [-pvsb -d directory -f first -i row -l last -n tables] -t columns lmhash[:nthash]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -