hashcheck 0.1.3 → 0.1.4
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 +4 -4
- data/Gemfile.lock +1 -1
- data/bin/hashcheck +15 -11
- data/bin/setup +1 -1
- data/lib/hashcheck/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 979e5578031307823f17d721667c82420f9dedc3a220014f0d98c9b31170ec09
|
|
4
|
+
data.tar.gz: 113dc45a3386a99e994ef2c4cf41b9a0715b9789b593a1b0c61fbf7d0f5889c3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d0b720e25d3fcbfc739c8a0f74376ef744d35b99bce33dfb7f89fb1fb08eaddf9400f7fa7f62b467cee060598e3e73c7573c65f1dbe63bbaa6e5597fb2357733
|
|
7
|
+
data.tar.gz: b6373603c5f5982936d01bf2c9e5381fc6e4bcb38195fb578b770c54f34f2b2662e8efa36c5e161f6e1f22cd1c5892746b1580aff5df3f967d0af13ab283064a
|
data/Gemfile.lock
CHANGED
data/bin/hashcheck
CHANGED
|
@@ -6,7 +6,7 @@ require 'optionparser'
|
|
|
6
6
|
options = {}
|
|
7
7
|
printers = Array.new
|
|
8
8
|
|
|
9
|
-
OptionParser.new do |opts|
|
|
9
|
+
i = OptionParser.new do |opts|
|
|
10
10
|
opts.banner = "Usage: hashcheck -e [value] \nDefaults: hashcheck -e hash_value"
|
|
11
11
|
opts.on("-e", "--hash Hash value", String, "Input hash value") do |value|
|
|
12
12
|
options[:value] = value
|
|
@@ -14,20 +14,24 @@ OptionParser.new do |opts|
|
|
|
14
14
|
opts.on("-s", "--salt Salt", "Prints salt and hash type") do |s|
|
|
15
15
|
options[:salt] = True
|
|
16
16
|
end
|
|
17
|
-
end
|
|
17
|
+
end
|
|
18
|
+
i.parse!
|
|
18
19
|
|
|
19
20
|
if options[:value].nil?
|
|
20
21
|
print("Please enter the hash: \n")
|
|
21
22
|
options[:value]=gets.chomp! unless gets.chomp.empty?
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
puts "HashCheck: \tOutputs the tool to which the hash belongs, \n\t\talong with the hash,salt and algorithm used to encrypt the data"
|
|
26
|
+
puts i.banner
|
|
27
|
+
puts <<-'EOF'
|
|
28
|
+
|
|
29
|
+
___ ___ .__ _________ .__ __
|
|
30
|
+
/ | \_____ _____| |__ \_ ___ \| |__ ____ ____ | | __
|
|
31
|
+
/ ~ \__ \ / ___/ | \/ \ \/| | \_/ __ \_/ ___\| |/ /
|
|
32
|
+
\ Y // __ \_\___ \| Y \ \___| Y \ ___/\ \___| <
|
|
33
|
+
\___|_ /(____ /____ >___| /\______ /___| /\___ >\___ >__|_ \
|
|
34
|
+
EOF
|
|
31
35
|
|
|
32
36
|
|
|
33
37
|
|
data/bin/setup
CHANGED
data/lib/hashcheck/version.rb
CHANGED