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.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +2 -1
  3. data/bin/haiti +9 -15
  4. data/lib/haiti/version.rb +1 -1
  5. metadata +22 -72
  6. data/.editorconfig +0 -21
  7. data/.gitignore +0 -8
  8. data/.rubocop.yml +0 -25
  9. data/.yardopts +0 -4
  10. data/.yardopts-dev +0 -6
  11. data/Gemfile +0 -6
  12. data/Gemfile.lock +0 -56
  13. data/README.md +0 -33
  14. data/Rakefile +0 -10
  15. data/docs/.nojekyll +0 -0
  16. data/docs/CHANGELOG.md +0 -9
  17. data/docs/README.md +0 -22
  18. data/docs/_coverpage.md +0 -15
  19. data/docs/_media/logo.png +0 -0
  20. data/docs/_navbar.md +0 -2
  21. data/docs/_sidebar.md +0 -15
  22. data/docs/about.md +0 -5
  23. data/docs/index.html +0 -31
  24. data/docs/pages/demo.md +0 -3
  25. data/docs/pages/documentation.md +0 -34
  26. data/docs/pages/install.md +0 -90
  27. data/docs/pages/publishing.md +0 -39
  28. data/docs/pages/quick-start.md +0 -39
  29. data/docs/pages/usage.md +0 -58
  30. data/docs/vendor/docsify.js +0 -1
  31. data/docs/vendor/plugins/emoji.min.js +0 -1
  32. data/docs/vendor/plugins/search.min.js +0 -1
  33. data/docs/vendor/prismjs/components/prism-ruby.min.js +0 -1
  34. data/docs/vendor/themes/vue.css +0 -1
  35. data/docs/why.md +0 -35
  36. data/docs/yard/HashIdentifier.html +0 -479
  37. data/docs/yard/HashIdentifier/Chf.html +0 -590
  38. data/docs/yard/Version.html +0 -126
  39. data/docs/yard/_index.html +0 -138
  40. data/docs/yard/class_list.html +0 -51
  41. data/docs/yard/css/common.css +0 -1
  42. data/docs/yard/css/full_list.css +0 -58
  43. data/docs/yard/css/style.css +0 -496
  44. data/docs/yard/file.LICENSE.html +0 -70
  45. data/docs/yard/file.README.html +0 -106
  46. data/docs/yard/file_list.html +0 -61
  47. data/docs/yard/frames.html +0 -17
  48. data/docs/yard/index.html +0 -106
  49. data/docs/yard/js/app.js +0 -303
  50. data/docs/yard/js/full_list.js +0 -216
  51. data/docs/yard/js/jquery.js +0 -4
  52. data/docs/yard/method_list.html +0 -115
  53. data/docs/yard/top-level-namespace.html +0 -112
  54. data/test/test_haiti.rb +0 -33
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83a76bf35790ea28f13c07002017de77173607742efb4e07ac36b6593c2523ef
4
- data.tar.gz: e24e527024e10fb6d963a3d4c219350f5e0e6672d2d0402b9116969600257685
3
+ metadata.gz: 779be0ecdc21676fca161e91945328e5ed880af478df7e2d039b132441bae1e8
4
+ data.tar.gz: 9cf4f8a7e66128a0f77f9ac6efd6bd8a863043ed24a7bce3310d10325d047632
5
5
  SHA512:
6
- metadata.gz: a32fbcb484a2ebed6158255ad0d23741918ef6f3c5572165da3ec5c04b20d931b204cf74c5029b42cc2a9bd3e350b5b028e75242b8569646b8e35373cf3fc78f
7
- data.tar.gz: 2d7620a42d9144b80a19d046e6da09690ac5d23cd527c5bfb0fdc1cb101681c4abb2b6a6f810db4c649f4e2b4030b28e4ff5f85388938d8e90401b7b6797e6af
6
+ metadata.gz: aef3eff34ae114fb97f368f2b88af06e1111e47147270a7dfb04ad1f8f1de6e8884955940cf4b7a0195a76587d4347fb0f6754c4015b2f333c88c91b18eadb76
7
+ data.tar.gz: f5ebbcb2dee7dee6975da073007de110d7d9edaaca3562e8a0549980bf9104a82eb0a32cc288b67f8520d21ad64cd3267b4cb36504e00327aaeb9a0d2f223e08
@@ -1,6 +1,7 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2019 Alexandre ZANNI
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
- if args['--no-color']
46
- hi.type.each do |type|
47
- next if type.extended && !args['--extended']
46
+ hi.type.each do |type|
47
+ next if type.extended && !args['--extended']
48
48
 
49
- line = type.name
50
- line += " [HC: #{type.hashcat}]" unless type.hashcat.nil? || args['--short'] || args['--john-only']
51
- line += " [JtR: #{type.john}]" unless type.john.nil? || args['--short'] || args['--hashcat-only']
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
- else
55
- hi.type.each do |type|
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Version
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
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.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: 2019-11-14 00:00:00.000000000 Z
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.1'
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.1'
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.0'
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.0'
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.20'
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.20'
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.75'
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.75'
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
- - test/test_haiti.rb
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/Orange-Cyberdefense/haiti/issues
223
- changelog_uri: https://github.com/Orange-Cyberdefense/haiti/blob/master/docs/CHANGELOG.md
224
- documentation_uri: https://orange-cyberdefense.github.io/haiti/
225
- homepage_uri: https://orange-cyberdefense.github.io/haiti/
226
- source_code_uri: https://github.com/Orange-Cyberdefense/haiti/
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.4'
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.0.1
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: []
@@ -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
@@ -1,8 +0,0 @@
1
- .yardoc
2
- *.gem
3
- /pkg
4
- /doc
5
- /vendor
6
- .bundle/
7
- /node_modules
8
- .git
@@ -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
@@ -1,4 +0,0 @@
1
- --output-dir docs/yard
2
- -
3
- --main README.md
4
- LICENSE.txt
@@ -1,6 +0,0 @@
1
- --output-dir docs/yard
2
- --protected
3
- --private
4
- -
5
- --main README.md
6
- LICENSE.txt
data/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- # Specify your gem's dependencies in .gemspec
6
- gemspec
@@ -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
@@ -1,10 +0,0 @@
1
- require 'rake/testtask'
2
- require 'bundler/gem_tasks'
3
-
4
- Rake::TestTask.new do |t|
5
- t.libs << 'test'
6
- end
7
-
8
- desc 'Run tests'
9
- task default: :test
10
-
File without changes
@@ -1,9 +0,0 @@
1
- ## [1.0.0]
2
-
3
- - lib: Fix a file loading path of prototypes
4
- - doc: Fix gem name
5
- - bin: remove useless haiti_setup
6
-
7
- ## [0.0.1]
8
-
9
- - Initial version