| 1 | /* |
| 2 | * |
| 3 | * Ophcrack is a Lanmanager/NTLM hash cracker based on the faster time-memory |
| 4 | * trade-off using rainbow tables. |
| 5 | * |
| 6 | * Created with the help of: Maxime Mueller, Luca Wullschleger, Claude |
| 7 | * Hochreutiner, Andreas Huber and Etienne Dysli. |
| 8 | * |
| 9 | * Copyright (c) 2008 Philippe Oechslin, Cedric Tissieres, Bertrand Mesot |
| 10 | * |
| 11 | * Ophcrack is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU General Public License as published by |
| 13 | * the Free Software Foundation; either version 2 of the License, or |
| 14 | * (at your option) any later version. |
| 15 | * |
| 16 | * Ophcrack is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | * |
| 21 | * You should have received a copy of the GNU General Public License |
| 22 | * along with Ophcrack; if not, write to the Free Software |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 24 | * |
| 25 | * This program is released under the GPL with the additional exemption |
| 26 | * that compiling, linking, and/or using OpenSSL is allowed. |
| 27 | * |
| 28 | * |
| 29 | * |
| 30 | * |
| 31 | */ |
| 32 | #ifndef ARG_H |
| 33 | #define ARG_H |
| 34 | |
| 35 | #include <stdio.h> |
| 36 | #include "list.h" |
| 37 | |
| 38 | #ifdef __cplusplus |
| 39 | extern "C" { |
| 40 | #endif |
| 41 | |
| 42 | typedef struct arg_t_ { |
| 43 | int verbose; |
| 44 | int showempty; |
| 45 | int debug; |
| 46 | int quiet; |
| 47 | int run; |
| 48 | int use_gui; |
| 49 | int nthreads; |
| 50 | int nhredux; |
| 51 | int mdqueue; |
| 52 | int bforce; |
| 53 | int bforce_len; |
| 54 | int hideuname; |
| 55 | int auditmode; |
| 56 | int stats; |
| 57 | int ssave; |
| 58 | int exportcsv; |
| 59 | int preload; |
| 60 | |
| 61 | char *cfname; |
| 62 | char *hfname; |
| 63 | char *ofname; |
| 64 | char *xfname; |
| 65 | char *tblstr; |
| 66 | char *samdir; |
| 67 | char *sfname; |
| 68 | char *lfname; |
| 69 | |
| 70 | FILE *lfile; |
| 71 | |
| 72 | list_t *table_path; |
| 73 | list_t *table_str_conf; |
| 74 | list_t *table_str_cmd; |
| 75 | } arg_t; |
| 76 | |
| 77 | arg_t *arg_alloc(void); |
| 78 | void arg_free(arg_t *arg); |
| 79 | void arg_default(arg_t *arg); |
| 80 | int arg_read_conf(arg_t *arg); |
| 81 | |
| 82 | #ifdef __cplusplus |
| 83 | } |
| 84 | #endif |
| 85 | #endif |