word_gen 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -2
- data/bin/word_gen +10 -2
- data/lib/word_gen/version.rb +1 -1
- data/word_gen.gemspec +4 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 782a32e5d6e71a893639c3448d53c50c5be3f8e7
|
4
|
+
data.tar.gz: dac13905a24368d063848f3442302a72ad7cdce0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 329baf499c4494cca20fe02aae5d766d04c0d7eb2d4db360b1454e6a8f1d9ee589a58aa16940781f5e352939d36ed80e9db90d51b9d1b5d962bc49195d2055a6
|
7
|
+
data.tar.gz: 12ea428c36c337414c18ecd15f8c1a3737a95eb7c8bce9bc5b415fe272c2605f099dfcde4a2f597c5f971792456d56709701602b87f6ec5788e12d3c96bc06b3
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# WordGen
|
2
2
|
|
3
|
-
A simple word generator written in Ruby. It generates all possible combinations
|
3
|
+
A simple word list generator written in Ruby. It generates all possible combinations
|
4
4
|
of characters in the given length. It comes with different character sets to choose from.
|
5
5
|
You can use `word_gen -l` to get a list of all available sets.
|
6
6
|
|
@@ -39,6 +39,13 @@ Usage: word_gen [options]
|
|
39
39
|
|
40
40
|
## Examples
|
41
41
|
|
42
|
+
It can be used with other software like aircrack-ng:
|
43
|
+
|
44
|
+
```
|
45
|
+
word_gen -w 4 -s NUMERIC | aircrack-ng -w - some_file.cap
|
46
|
+
```
|
47
|
+
|
48
|
+
Or as a standalone command line tool:
|
42
49
|
```
|
43
50
|
word_gen -w 3 -s NUMERIC
|
44
51
|
11
|
@@ -145,7 +152,7 @@ word_gen -w 3 -s NUMERIC
|
|
145
152
|
|
146
153
|
## Specs
|
147
154
|
|
148
|
-
TODO: write specs
|
155
|
+
TODO: write more specs
|
149
156
|
|
150
157
|
|
151
158
|
## Contributing
|
data/bin/word_gen
CHANGED
@@ -44,6 +44,10 @@ OptionParser.new do |opts|
|
|
44
44
|
exit
|
45
45
|
end
|
46
46
|
|
47
|
+
opts.on('-r', '--[no-]random', 'Shuffle the character set before execution') do |t|
|
48
|
+
options[:shuffle] = t
|
49
|
+
end
|
50
|
+
|
47
51
|
opts.on_tail('-h', '--help', '--usage', 'Prints this help') do
|
48
52
|
puts opts
|
49
53
|
exit
|
@@ -58,6 +62,7 @@ end.parse!
|
|
58
62
|
word_length = options[:word_length]
|
59
63
|
character_set = options[:character_set]
|
60
64
|
output_file = options[:output_file]
|
65
|
+
shuffle = options.fetch(:shuffle, false)
|
61
66
|
|
62
67
|
unless character_set && WordGen::Modes.constants.include?(character_set.to_sym)
|
63
68
|
puts 'Choose a character set with -s'
|
@@ -70,10 +75,13 @@ unless word_length
|
|
70
75
|
exit 1
|
71
76
|
end
|
72
77
|
|
78
|
+
mode = WordGen::Modes.class_eval character_set
|
79
|
+
mode = mode.shuffle if shuffle
|
80
|
+
|
73
81
|
if output_file
|
74
82
|
File.open(output_file, "w+") do |file|
|
75
|
-
WordGen::Generator.new(word_length,
|
83
|
+
WordGen::Generator.new(word_length, mode, file).start
|
76
84
|
end
|
77
85
|
else
|
78
|
-
WordGen::Generator.new(word_length,
|
86
|
+
WordGen::Generator.new(word_length, mode).start
|
79
87
|
end
|
data/lib/word_gen/version.rb
CHANGED
data/word_gen.gemspec
CHANGED
@@ -7,10 +7,10 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "word_gen"
|
8
8
|
spec.version = WordGen::VERSION
|
9
9
|
spec.authors = ["Stefan Schmidt"]
|
10
|
-
spec.email = ["schlubbi
|
11
|
-
spec.summary = %q{Generate
|
12
|
-
spec.description = %q{Generate
|
13
|
-
spec.homepage = "
|
10
|
+
spec.email = ["mail@schlubbi.io"]
|
11
|
+
spec.summary = %q{Generate word lists}
|
12
|
+
spec.description = %q{Generate word lists and display them on STDOUT or save them to a file.}
|
13
|
+
spec.homepage = "https://github.com/schlubbi/word_gen"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: word_gen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Schmidt
|
@@ -66,9 +66,9 @@ dependencies:
|
|
66
66
|
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
description: Generate
|
69
|
+
description: Generate word lists and display them on STDOUT or save them to a file.
|
70
70
|
email:
|
71
|
-
- schlubbi
|
71
|
+
- mail@schlubbi.io
|
72
72
|
executables:
|
73
73
|
- word_gen
|
74
74
|
extensions: []
|
@@ -87,7 +87,7 @@ files:
|
|
87
87
|
- spec/spec_helper.rb
|
88
88
|
- spec/word_gen/generator_spec.rb
|
89
89
|
- word_gen.gemspec
|
90
|
-
homepage:
|
90
|
+
homepage: https://github.com/schlubbi/word_gen
|
91
91
|
licenses:
|
92
92
|
- MIT
|
93
93
|
metadata: {}
|
@@ -110,7 +110,7 @@ rubyforge_project:
|
|
110
110
|
rubygems_version: 2.0.3
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
|
-
summary: Generate
|
113
|
+
summary: Generate word lists
|
114
114
|
test_files:
|
115
115
|
- spec/spec_helper.rb
|
116
116
|
- spec/word_gen/generator_spec.rb
|