jwtear 0.2.0 → 1.0.0.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.gitignore +8 -1
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +0 -2
- data/Gemfile.lock +71 -0
- data/README.md +107 -27
- data/bin/jwtear +40 -115
- data/jwtear.gemspec +9 -3
- data/lib/jwtear.rb +15 -19
- data/lib/jwtear/errors.rb +11 -4
- data/lib/jwtear/helpers/extensions.rb +17 -0
- data/lib/jwtear/helpers/utils.rb +71 -0
- data/lib/jwtear/jwe.rb +102 -0
- data/lib/jwtear/jws.rb +80 -0
- data/lib/jwtear/token.rb +67 -0
- data/lib/jwtear/version.rb +1 -1
- data/plugins/bruteforce.rb +103 -0
- data/plugins/generate.rb +68 -0
- data/plugins/parse.rb +111 -0
- data/plugins/plugin-template.rb +32 -0
- data/plugins/wiki.rb +50 -0
- data/plugins/wiki/README.md +212 -0
- metadata +105 -16
- data/LICENSE.txt +0 -21
- data/lib/jwtear/algorithms.rb +0 -83
- data/lib/jwtear/extensions.rb +0 -41
- data/lib/jwtear/jwt.rb +0 -129
- data/lib/jwtear/utils.rb +0 -57
- data/modules/bruteforce.rb +0 -39
data/modules/bruteforce.rb
DELETED
@@ -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
|