-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
100 lines (69 loc) · 1.99 KB
/
main.cpp
File metadata and controls
100 lines (69 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*
WLCREATOR
by Jonathan Heinz
Last Modified: 11/23/15
Description: wlcreator is a command-line tool that was designed to be used with bruteforce programs. It
is used to narrow large wordlists based on certain criteria.
USAGE:
wlcreator -i [inputfile] -o [outputfile] [args]
ARGUMENTS:
--help: Shows help
--password <password>: Narrows based on password
--length: Narrows by length
--max-length: Sets max password length
--min-length: Sets min password length
--numbers-only: Numbers only
--chars-only: Characters only
--upper-only: Uppercase only
--lower-only: Lowercase only
-n: No numbers
-c: No characters
-l: No lowercase
-u: No uppercase
-s: No special characters
*/
void usage();
void help();
#include <iostream>
#include <ctime>
#include "passwordNarrower.hpp"
int main(int argc, char** argv) {
std::clock_t begin, end;
begin = std::clock();
PasswordNarrower device;
device.checkArgs(argc, argv);
device.parseFile();
end = std::clock();
float elapsed = (float)end - (float)begin;
std::cout << "ELAPSED TIME: " << (elapsed / CLOCKS_PER_SEC) << std::endl;
return 0;
}
void usage() {
std::cout << "Usage: wlcreator -i [inputfile] -o [outputfile] [options]\nType \"wlcreator --help\" for a list\
of options\n";
}
void help() {
std::cout << "WLCREATOR\n\n\
by Jonathan Heinz\n\n\
Last Modified: 11/23/15\n\n\
Description: wlcreator is a command-line tool that was designed to be used with bruteforce programs. It\n\
is used to narrow large wordlists based on certain criteria.\n\n\
USAGE:\n\n\
wlcreator -i [inputfile] -o [outputfile] [args]\n\n\
ARGUMENTS:\n\n\
--help: Shows help\n\
--password <password>: Narrows based on password\n\
--length: Narrows by length\n\
--max-length: Sets max password length\n\
--min-length: Sets min password length\n\
--nums-only: Numbers only\n\
--chars-only: Characters only\n\
--upper-only: Uppercase only\n\
--lower-only: Lowercase only\n\n\
-n: No numbers\n\
-c: No characters\n\
-l: No lowercase\n\
-u: No uppercase\n\
-s: No special characters\n\n";
exit(0);
}