haiti-hash 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +2 -1
- data/bin/haiti +9 -15
- data/lib/haiti/version.rb +1 -1
- metadata +22 -72
- data/.editorconfig +0 -21
- data/.gitignore +0 -8
- data/.rubocop.yml +0 -25
- data/.yardopts +0 -4
- data/.yardopts-dev +0 -6
- data/Gemfile +0 -6
- data/Gemfile.lock +0 -56
- data/README.md +0 -33
- data/Rakefile +0 -10
- data/docs/.nojekyll +0 -0
- data/docs/CHANGELOG.md +0 -9
- data/docs/README.md +0 -22
- data/docs/_coverpage.md +0 -15
- data/docs/_media/logo.png +0 -0
- data/docs/_navbar.md +0 -2
- data/docs/_sidebar.md +0 -15
- data/docs/about.md +0 -5
- data/docs/index.html +0 -31
- data/docs/pages/demo.md +0 -3
- data/docs/pages/documentation.md +0 -34
- data/docs/pages/install.md +0 -90
- data/docs/pages/publishing.md +0 -39
- data/docs/pages/quick-start.md +0 -39
- data/docs/pages/usage.md +0 -58
- data/docs/vendor/docsify.js +0 -1
- data/docs/vendor/plugins/emoji.min.js +0 -1
- data/docs/vendor/plugins/search.min.js +0 -1
- data/docs/vendor/prismjs/components/prism-ruby.min.js +0 -1
- data/docs/vendor/themes/vue.css +0 -1
- data/docs/why.md +0 -35
- data/docs/yard/HashIdentifier.html +0 -479
- data/docs/yard/HashIdentifier/Chf.html +0 -590
- data/docs/yard/Version.html +0 -126
- data/docs/yard/_index.html +0 -138
- data/docs/yard/class_list.html +0 -51
- data/docs/yard/css/common.css +0 -1
- data/docs/yard/css/full_list.css +0 -58
- data/docs/yard/css/style.css +0 -496
- data/docs/yard/file.LICENSE.html +0 -70
- data/docs/yard/file.README.html +0 -106
- data/docs/yard/file_list.html +0 -61
- data/docs/yard/frames.html +0 -17
- data/docs/yard/index.html +0 -106
- data/docs/yard/js/app.js +0 -303
- data/docs/yard/js/full_list.js +0 -216
- data/docs/yard/js/jquery.js +0 -4
- data/docs/yard/method_list.html +0 -115
- data/docs/yard/top-level-namespace.html +0 -112
- data/test/test_haiti.rb +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 779be0ecdc21676fca161e91945328e5ed880af478df7e2d039b132441bae1e8
|
4
|
+
data.tar.gz: 9cf4f8a7e66128a0f77f9ac6efd6bd8a863043ed24a7bce3310d10325d047632
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aef3eff34ae114fb97f368f2b88af06e1111e47147270a7dfb04ad1f8f1de6e8884955940cf4b7a0195a76587d4347fb0f6754c4015b2f333c88c91b18eadb76
|
7
|
+
data.tar.gz: f5ebbcb2dee7dee6975da073007de110d7d9edaaca3562e8a0549980bf9104a82eb0a32cc288b67f8520d21ad64cd3267b4cb36504e00327aaeb9a0d2f223e08
|
data/LICENSE.txt
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c)
|
3
|
+
Copyright (c) 2020-2020 Alexandre ZANNI
|
4
|
+
Copyright (c) 2019-2020 Alexandre ZANNI at Orange Cyberdefense
|
4
5
|
|
5
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
7
|
of this software and associated documentation files (the "Software"), to deal
|
data/bin/haiti
CHANGED
@@ -34,6 +34,7 @@ DOCOPT
|
|
34
34
|
|
35
35
|
begin
|
36
36
|
args = Docopt.docopt(doc, version: HashIdentifier::VERSION)
|
37
|
+
Paint.mode = 0 if args['--no-color']
|
37
38
|
pp args if args['--debug']
|
38
39
|
# use case 1, using the tool
|
39
40
|
if args['<hash>']
|
@@ -42,24 +43,17 @@ begin
|
|
42
43
|
puts 'Unknown hash type'
|
43
44
|
exit(0)
|
44
45
|
end
|
45
|
-
|
46
|
-
|
47
|
-
next if type.extended && !args['--extended']
|
46
|
+
hi.type.each do |type|
|
47
|
+
next if type.extended && !args['--extended']
|
48
48
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
puts line
|
49
|
+
print Paint[type.name, :bold]
|
50
|
+
unless type.hashcat.nil? || args['--short'] || args['--john-only']
|
51
|
+
print Paint[" [HC: #{type.hashcat}]", :blue]
|
53
52
|
end
|
54
|
-
|
55
|
-
|
56
|
-
next if type.extended && !args['--extended']
|
57
|
-
|
58
|
-
print Paint[type.name, :bold]
|
59
|
-
print Paint[" [HC: #{type.hashcat}]", :blue] unless type.hashcat.nil? || args['--short'] || args['--john-only']
|
60
|
-
print Paint[" [JtR: #{type.john}]", :green] unless type.john.nil? || args['--short'] || args['--hashcat-only']
|
61
|
-
puts
|
53
|
+
unless type.john.nil? || args['--short'] || args['--hashcat-only']
|
54
|
+
print Paint[" [JtR: #{type.john}]", :green]
|
62
55
|
end
|
56
|
+
puts
|
63
57
|
end
|
64
58
|
end
|
65
59
|
# use case 2, help: already handled by docopt
|
data/lib/haiti/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haiti-hash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandre ZANNI
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docopt
|
@@ -30,42 +30,42 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '2.
|
33
|
+
version: '2.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '2.
|
40
|
+
version: '2.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '2.
|
47
|
+
version: '2.1'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '2.
|
54
|
+
version: '2.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: commonmarker
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0.
|
61
|
+
version: '0.21'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0.
|
68
|
+
version: '0.21'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: github-markup
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '0.
|
131
|
+
version: '0.80'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '0.
|
138
|
+
version: '0.80'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: yard
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -158,73 +158,24 @@ executables:
|
|
158
158
|
extensions: []
|
159
159
|
extra_rdoc_files: []
|
160
160
|
files:
|
161
|
-
- ".editorconfig"
|
162
|
-
- ".gitignore"
|
163
|
-
- ".rubocop.yml"
|
164
|
-
- ".yardopts"
|
165
|
-
- ".yardopts-dev"
|
166
|
-
- Gemfile
|
167
|
-
- Gemfile.lock
|
168
161
|
- LICENSE.txt
|
169
|
-
- README.md
|
170
|
-
- Rakefile
|
171
162
|
- bin/haiti
|
172
163
|
- bin/haiti_console
|
173
164
|
- data/prototypes.json
|
174
|
-
- docs/.nojekyll
|
175
|
-
- docs/CHANGELOG.md
|
176
|
-
- docs/README.md
|
177
|
-
- docs/_coverpage.md
|
178
|
-
- docs/_media/logo.png
|
179
|
-
- docs/_navbar.md
|
180
|
-
- docs/_sidebar.md
|
181
|
-
- docs/about.md
|
182
|
-
- docs/index.html
|
183
|
-
- docs/pages/demo.md
|
184
|
-
- docs/pages/documentation.md
|
185
|
-
- docs/pages/install.md
|
186
|
-
- docs/pages/publishing.md
|
187
|
-
- docs/pages/quick-start.md
|
188
|
-
- docs/pages/usage.md
|
189
|
-
- docs/vendor/docsify.js
|
190
|
-
- docs/vendor/plugins/emoji.min.js
|
191
|
-
- docs/vendor/plugins/search.min.js
|
192
|
-
- docs/vendor/prismjs/components/prism-ruby.min.js
|
193
|
-
- docs/vendor/themes/vue.css
|
194
|
-
- docs/why.md
|
195
|
-
- docs/yard/HashIdentifier.html
|
196
|
-
- docs/yard/HashIdentifier/Chf.html
|
197
|
-
- docs/yard/Version.html
|
198
|
-
- docs/yard/_index.html
|
199
|
-
- docs/yard/class_list.html
|
200
|
-
- docs/yard/css/common.css
|
201
|
-
- docs/yard/css/full_list.css
|
202
|
-
- docs/yard/css/style.css
|
203
|
-
- docs/yard/file.LICENSE.html
|
204
|
-
- docs/yard/file.README.html
|
205
|
-
- docs/yard/file_list.html
|
206
|
-
- docs/yard/frames.html
|
207
|
-
- docs/yard/index.html
|
208
|
-
- docs/yard/js/app.js
|
209
|
-
- docs/yard/js/full_list.js
|
210
|
-
- docs/yard/js/jquery.js
|
211
|
-
- docs/yard/method_list.html
|
212
|
-
- docs/yard/top-level-namespace.html
|
213
165
|
- lib/haiti.rb
|
214
166
|
- lib/haiti/hash.rb
|
215
167
|
- lib/haiti/version.rb
|
216
|
-
|
217
|
-
homepage: https://orange-cyberdefense.github.io/haiti/
|
168
|
+
homepage: https://noraj.github.io/haiti/
|
218
169
|
licenses:
|
219
170
|
- MIT
|
220
171
|
metadata:
|
221
172
|
yard.run: yard
|
222
|
-
bug_tracker_uri: https://github.com/
|
223
|
-
changelog_uri: https://github.com/
|
224
|
-
documentation_uri: https://
|
225
|
-
homepage_uri: https://
|
226
|
-
source_code_uri: https://github.com/
|
227
|
-
post_install_message:
|
173
|
+
bug_tracker_uri: https://github.com/noraj/haiti/issues
|
174
|
+
changelog_uri: https://github.com/noraj/haiti/blob/master/docs/CHANGELOG.md
|
175
|
+
documentation_uri: https://noraj.github.io/haiti/
|
176
|
+
homepage_uri: https://noraj.github.io/haiti/
|
177
|
+
source_code_uri: https://github.com/noraj/haiti/
|
178
|
+
post_install_message:
|
228
179
|
rdoc_options: []
|
229
180
|
require_paths:
|
230
181
|
- lib
|
@@ -232,16 +183,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
232
183
|
requirements:
|
233
184
|
- - "~>"
|
234
185
|
- !ruby/object:Gem::Version
|
235
|
-
version: '2.
|
186
|
+
version: '2.7'
|
236
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
237
188
|
requirements:
|
238
189
|
- - ">="
|
239
190
|
- !ruby/object:Gem::Version
|
240
191
|
version: '0'
|
241
192
|
requirements: []
|
242
|
-
rubygems_version: 3.
|
243
|
-
signing_key:
|
193
|
+
rubygems_version: 3.1.2
|
194
|
+
signing_key:
|
244
195
|
specification_version: 4
|
245
196
|
summary: HAsh IdenTifIer
|
246
|
-
test_files:
|
247
|
-
- test/test_haiti.rb
|
197
|
+
test_files: []
|
data/.editorconfig
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# EditorConfig: https://EditorConfig.org
|
2
|
-
|
3
|
-
# top-most EditorConfig file
|
4
|
-
root = true
|
5
|
-
|
6
|
-
# Unix-style newlines with a newline ending every file
|
7
|
-
[*]
|
8
|
-
end_of_line = lf
|
9
|
-
insert_final_newline = true
|
10
|
-
|
11
|
-
# ruby
|
12
|
-
[*.rb]
|
13
|
-
charset = utf-8
|
14
|
-
indent_style = space
|
15
|
-
indent_size = 2
|
16
|
-
trim_trailing_whitespace = true
|
17
|
-
|
18
|
-
# keep source format
|
19
|
-
[data/prototypes.json]
|
20
|
-
indent_style = space
|
21
|
-
indent_size = 4
|
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# Metrics
|
2
|
-
AllCops:
|
3
|
-
TargetRubyVersion: 2.4
|
4
|
-
|
5
|
-
Layout/AlignHash:
|
6
|
-
Include:
|
7
|
-
- 'lib/**/*.rb'
|
8
|
-
Metrics/AbcSize:
|
9
|
-
Enabled: false
|
10
|
-
Metrics/ClassLength:
|
11
|
-
Max: 200
|
12
|
-
Metrics/CyclomaticComplexity:
|
13
|
-
Enabled: false
|
14
|
-
Metrics/LineLength:
|
15
|
-
Include:
|
16
|
-
- 'lib/**/*.rb'
|
17
|
-
Metrics/BlockNesting:
|
18
|
-
Exclude:
|
19
|
-
- 'bin/*'
|
20
|
-
Metrics/MethodLength:
|
21
|
-
Max: 25
|
22
|
-
Metrics/PerceivedComplexity:
|
23
|
-
Max: 10
|
24
|
-
Style/RedundantReturn:
|
25
|
-
Enabled: false
|
data/.yardopts
DELETED
data/.yardopts-dev
DELETED
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
haiti-hash (0.0.1)
|
5
|
-
docopt (~> 0.6)
|
6
|
-
paint (~> 2.1)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
ast (2.4.0)
|
12
|
-
commonmarker (0.20.1)
|
13
|
-
ruby-enum (~> 0.5)
|
14
|
-
concurrent-ruby (1.1.5)
|
15
|
-
docopt (0.6.1)
|
16
|
-
github-markup (3.0.4)
|
17
|
-
i18n (1.7.0)
|
18
|
-
concurrent-ruby (~> 1.0)
|
19
|
-
jaro_winkler (1.5.3)
|
20
|
-
minitest (5.13.0)
|
21
|
-
paint (2.1.1)
|
22
|
-
parallel (1.18.0)
|
23
|
-
parser (2.6.5.0)
|
24
|
-
ast (~> 2.4.0)
|
25
|
-
rainbow (3.0.0)
|
26
|
-
rake (13.0.1)
|
27
|
-
redcarpet (3.5.0)
|
28
|
-
rubocop (0.76.0)
|
29
|
-
jaro_winkler (~> 1.5.1)
|
30
|
-
parallel (~> 1.10)
|
31
|
-
parser (>= 2.6)
|
32
|
-
rainbow (>= 2.2.2, < 4.0)
|
33
|
-
ruby-progressbar (~> 1.7)
|
34
|
-
unicode-display_width (>= 1.4.0, < 1.7)
|
35
|
-
ruby-enum (0.7.2)
|
36
|
-
i18n
|
37
|
-
ruby-progressbar (1.10.1)
|
38
|
-
unicode-display_width (1.6.0)
|
39
|
-
yard (0.9.20)
|
40
|
-
|
41
|
-
PLATFORMS
|
42
|
-
ruby
|
43
|
-
|
44
|
-
DEPENDENCIES
|
45
|
-
bundler (~> 2.0)
|
46
|
-
commonmarker (~> 0.20)
|
47
|
-
github-markup (~> 3.0)
|
48
|
-
haiti-hash!
|
49
|
-
minitest (~> 5.12)
|
50
|
-
rake (~> 13.0)
|
51
|
-
redcarpet (~> 3.5)
|
52
|
-
rubocop (~> 0.75)
|
53
|
-
yard (~> 0.9)
|
54
|
-
|
55
|
-
BUNDLED WITH
|
56
|
-
2.0.2
|
data/README.md
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
# HAITI
|
2
|
-
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/haiti-hash.svg)](https://badge.fury.io/rb/haiti-hash)
|
4
|
-
![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/Orange-Cyberdefense/haiti)
|
5
|
-
[![GitHub forks](https://img.shields.io/github/forks/Orange-Cyberdefense/haiti)](https://github.com/Orange-Cyberdefense/haiti/network)
|
6
|
-
[![GitHub stars](https://img.shields.io/github/stars/Orange-Cyberdefense/haiti)](https://github.com/Orange-Cyberdefense/haiti/stargazers)
|
7
|
-
[![GitHub license](https://img.shields.io/github/license/Orange-Cyberdefense/haiti)](https://github.com/Orange-Cyberdefense/haiti/blob/master/LICENSE.txt)
|
8
|
-
[![Rawsec's CyberSecurity Inventory](https://inventory.rawsec.ml/img/badges/Rawsec-inventoried-FF5050_flat.svg)](https://inventory.rawsec.ml/tools.html#Haiti)
|
9
|
-
|
10
|
-
[![Packaging status](https://repology.org/badge/vertical-allrepos/haiti.svg)](https://repology.org/project/haiti/versions)
|
11
|
-
|
12
|
-
![](https://orange-cyberdefense.github.io/haiti/_media/logo.png)
|
13
|
-
|
14
|
-
> _**HA**sh **I**den**T**if**I**er_
|
15
|
-
|
16
|
-
## What is it?
|
17
|
-
|
18
|
-
A CLI tool to identify the hash type of a given hash.
|
19
|
-
|
20
|
-
## Features
|
21
|
-
|
22
|
-
- 270+ hash types detected
|
23
|
-
- Hashcat and John the Ripper references
|
24
|
-
- CLI tool & library
|
25
|
-
- Hackable
|
26
|
-
|
27
|
-
## References
|
28
|
-
|
29
|
-
Homepage / Documentation: https://orange-cyberdefense.github.io/haiti/
|
30
|
-
|
31
|
-
## Author
|
32
|
-
|
33
|
-
Made by Alexandre ZANNI ([@noraj](https://github.com/noraj)), pentester from Orange Cyberdefense.
|
data/Rakefile
DELETED
data/docs/.nojekyll
DELETED
File without changes
|