jwtear 0.2.0 → 1.0.0.pre

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,39 +0,0 @@
1
- module JWTear
2
- module JWTModule
3
-
4
- class BruteForce
5
-
6
- attr_accessor :token
7
- attr_accessor :word_list
8
- def initialize(wordlist)
9
- check_gem
10
- @word_list = File.open(wordlist).
11
- each_line(chomp: true).
12
- map(&:strip).
13
- reject(&:nil?).
14
- reject(&:empty?).lazy
15
- @token = nil
16
- end
17
-
18
- def check_gem
19
- begin
20
- require 'celluloid'
21
- rescue LoadError
22
- puts "[x] required gem is missing: please run the following"
23
- puts "gem install celluloid"
24
- exit 1
25
- end
26
- end
27
-
28
- def options
29
- "'Brute-force signature to get the 'Key/Password'. (required for generate-token and generate-sig)'"
30
- end
31
-
32
- def bruteforce
33
- puts "I'm burtefocing now!!!!!"
34
- end
35
-
36
- end
37
-
38
- end
39
- end