Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
noraj committed Apr 26, 2021
1 parent 2a8cd00 commit 1308ac5
Show file tree
Hide file tree
Showing 12 changed files with 181 additions and 24 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
haiti-hash (1.0.1)
haiti-hash (1.1.0)
docopt (~> 0.6)
paint (~> 2.2)

Expand Down
24 changes: 23 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,32 @@
## [Unreleased]

## [1.1.0]

- code:
- new extended (with salts) hash types support for JtR [#17][#17]
- add Hashcat hashes
- SHA-224
- add John hashes [#17][#17]
- RIPEMD-XXX
- HAVAL-XXX
- PANAMA
- SKEIN-XXX
- SHA3_XXX
- KECCAK_XXX
- dependencies:
- update
- more tolerant about the ruby version required
- ruby 3.0 support
- doc: update
- CI: add GitHub action

[#17]:https://github.com/noraj/haiti/issues/17

## [1.0.1]

- bin: code simplification & lint
- test: code lint
- repo: From from [Orange-Cyberdefense/rabid](https://github.com/Orange-Cyberdefense/rabid) to [noraj/rabid](https://github.com/noraj/rabid/)
- repo: from [Orange-Cyberdefense/rabid](https://github.com/Orange-Cyberdefense/rabid) to [noraj/rabid](https://github.com/noraj/rabid/)
- dependencies: update
- rubocop: new rules for new cops
- deprecation: now requires ruby 2.7+ instead of 2.4+
Expand Down
131 changes: 129 additions & 2 deletions docs/yard/HashIdentifier.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,30 @@ <h2>

<ul class="summary">

<li class="private ">
<span class="summary_signature">

<a href="#identify-instance_method" title="#identify (instance method)">#<strong>identify</strong>(hash) &#x21d2; Array&lt;Chf&gt; </a>



</span>



<span class="note title private">private</span>





<span class="summary_desc"><div class='inline'>
<p>Check which hash types are matching the provided hash.</p>
</div></span>

</li>


<li class="public ">
<span class="summary_signature">

Expand Down Expand Up @@ -466,12 +490,115 @@ <h3 class="signature " id="type-instance_method">
</div>


<div id="instance_method_details" class="method_details_list">
<h2>Instance Method Details</h2>


<div class="method_details first">
<h3 class="signature first" id="identify-instance_method">

#<strong>identify</strong>(hash) &#x21d2; <tt>Array&lt;<span class='object_link'><a href="HashIdentifier/Chf.html" title="HashIdentifier::Chf (class)">Chf</a></span>&gt;</tt> <span class="extras">(private)</span>





</h3><div class="docstring">
<div class="discussion">

<p>Check which hash types are matching the provided hash</p>


</div>
</div>
<div class="tags">
<p class="tag_title">Parameters:</p>
<ul class="param">

<li>

<span class='name'>hash</span>


<span class='type'>(<tt>String</tt>)</span>



&mdash;
<div class='inline'>
<p>the hash to identify</p>
</div>

</li>

</ul>

<p class="tag_title">Returns:</p>
<ul class="return">

<li>


<span class='type'>(<tt>Array&lt;<span class='object_link'><a href="HashIdentifier/Chf.html" title="HashIdentifier::Chf (class)">Chf</a></span>&gt;</tt>)</span>



&mdash;
<div class='inline'>
<p>list of <span class='object_link'><a href="HashIdentifier/Chf.html" title="HashIdentifier::Chf (class)">Chf</a></span> objects, representing the identified hashes</p>
</div>

</li>

</ul>

</div><table class="source_code">
<tr>
<td>
<pre class="lines">


37
38
39
40
41
42
43
44
45
46
47
48</pre>
</td>
<td>
<pre class="code"><span class="info file"># File 'lib/haiti.rb', line 37</span>

<span class='kw'>def</span> <span class='id identifier rubyid_identify'>identify</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span>
<span class='id identifier rubyid_res'>res</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
<span class='const'><span class='object_link'><a href="#PROTOTYPES-constant" title="HashIdentifier::PROTOTYPES (constant)">PROTOTYPES</a></span></span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_prototype'>prototype</span><span class='op'>|</span>
<span class='id identifier rubyid_reg'>reg</span> <span class='op'>=</span> <span class='const'>Regexp</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='id identifier rubyid_prototype'>prototype</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>regex</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='const'>Regexp</span><span class='op'>::</span><span class='const'>IGNORECASE</span>
<span class='kw'>next</span> <span class='kw'>unless</span> <span class='id identifier rubyid_reg'>reg</span><span class='period'>.</span><span class='id identifier rubyid_match?'>match?</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span>

<span class='id identifier rubyid_prototype'>prototype</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>modes</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_mode'>mode</span><span class='op'>|</span>
<span class='id identifier rubyid_res'>res</span> <span class='op'>&lt;&lt;</span> <span class='const'><span class='object_link'><a href="HashIdentifier/Chf.html" title="HashIdentifier::Chf (class)">Chf</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'><span class='object_link'><a href="HashIdentifier/Chf.html#initialize-instance_method" title="HashIdentifier::Chf#initialize (method)">new</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_mode'>mode</span><span class='rparen'>)</span>
<span class='kw'>end</span>
<span class='kw'>end</span>
<span class='kw'>return</span> <span class='id identifier rubyid_res'>res</span>
<span class='kw'>end</span></pre>
</td>
</tr>
</table>
</div>

</div>

</div>

<div id="footer">
Generated on Fri Feb 12 11:30:10 2021 by
Generated on Mon Apr 26 16:12:14 2021 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.26 (ruby-2.7.2).
0.9.26 (ruby-3.0.1).
</div>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/yard/HashIdentifier/Chf.html
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,9 @@ <h3 class="signature " id="name-instance_method">
</div>

<div id="footer">
Generated on Fri Feb 12 11:30:10 2021 by
Generated on Mon Apr 26 16:12:14 2021 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.26 (ruby-2.7.2).
0.9.26 (ruby-3.0.1).
</div>

</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/yard/Version.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ <h2>
<dt id="VERSION-constant" class="">VERSION =

</dt>
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>1.0.1</span><span class='tstring_end'>&#39;</span></span></pre></dd>
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>1.1.0</span><span class='tstring_end'>&#39;</span></span></pre></dd>

</dl>

Expand All @@ -116,9 +116,9 @@ <h2>
</div>

<div id="footer">
Generated on Fri Feb 12 11:30:10 2021 by
Generated on Mon Apr 26 16:12:14 2021 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.26 (ruby-2.7.2).
0.9.26 (ruby-3.0.1).
</div>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/yard/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ <h2>Namespace Listing A-Z</h2>
</div>

<div id="footer">
Generated on Fri Feb 12 11:30:10 2021 by
Generated on Mon Apr 26 16:12:14 2021 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.26 (ruby-2.7.2).
0.9.26 (ruby-3.0.1).
</div>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/yard/file.LICENSE.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
<div id="content"><div id='filecontents'>The MIT License (MIT)<br/><br/>Copyright (c) 2020-2020 Alexandre ZANNI<br/>Copyright (c) 2019-2020 Alexandre ZANNI at Orange Cyberdefense<br/><br/>Permission is hereby granted, free of charge, to any person obtaining a copy<br/>of this software and associated documentation files (the &quot;Software&quot;), to deal<br/>in the Software without restriction, including without limitation the rights<br/>to use, copy, modify, merge, publish, distribute, sublicense, and/or sell<br/>copies of the Software, and to permit persons to whom the Software is<br/>furnished to do so, subject to the following conditions:<br/><br/>The above copyright notice and this permission notice shall be included in<br/>all copies or substantial portions of the Software.<br/><br/>THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br/>IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br/>FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE<br/>AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br/>LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,<br/>OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN<br/>THE SOFTWARE.</div></div>

<div id="footer">
Generated on Fri Feb 12 11:30:10 2021 by
Generated on Mon Apr 26 16:12:14 2021 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.26 (ruby-2.7.2).
0.9.26 (ruby-3.0.1).
</div>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/yard/file.README.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ <h2 id="author">Author</h2>
</div></div>

<div id="footer">
Generated on Fri Feb 12 11:30:10 2021 by
Generated on Mon Apr 26 16:12:14 2021 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.26 (ruby-2.7.2).
0.9.26 (ruby-3.0.1).
</div>

</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/yard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ <h2 id="author">Author</h2>
</div></div>

<div id="footer">
Generated on Fri Feb 12 11:30:10 2021 by
Generated on Mon Apr 26 16:12:14 2021 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.26 (ruby-2.7.2).
0.9.26 (ruby-3.0.1).
</div>

</div>
Expand Down
16 changes: 12 additions & 4 deletions docs/yard/method_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,37 +70,45 @@ <h1 id="full_list_header">Method List</h1>

<li class="even ">
<div class="item">
<span class='object_link'><a href="HashIdentifier.html#initialize-instance_method" title="HashIdentifier#initialize (method)">#initialize</a></span>
<span class='object_link'><a href="HashIdentifier.html#identify-instance_method" title="HashIdentifier#identify (method)">#identify</a></span>
<small>HashIdentifier</small>
</div>
</li>


<li class="odd ">
<div class="item">
<span class='object_link'><a href="HashIdentifier.html#initialize-instance_method" title="HashIdentifier#initialize (method)">#initialize</a></span>
<small>HashIdentifier</small>
</div>
</li>


<li class="even ">
<div class="item">
<span class='object_link'><a href="HashIdentifier/Chf.html#initialize-instance_method" title="HashIdentifier::Chf#initialize (method)">#initialize</a></span>
<small>HashIdentifier::Chf</small>
</div>
</li>


<li class="even ">
<li class="odd ">
<div class="item">
<span class='object_link'><a href="HashIdentifier/Chf.html#john-instance_method" title="HashIdentifier::Chf#john (method)">#john</a></span>
<small>HashIdentifier::Chf</small>
</div>
</li>


<li class="odd ">
<li class="even ">
<div class="item">
<span class='object_link'><a href="HashIdentifier/Chf.html#name-instance_method" title="HashIdentifier::Chf#name (method)">#name</a></span>
<small>HashIdentifier::Chf</small>
</div>
</li>


<li class="even ">
<li class="odd ">
<div class="item">
<span class='object_link'><a href="HashIdentifier.html#type-instance_method" title="HashIdentifier#type (method)">#type</a></span>
<small>HashIdentifier</small>
Expand Down
4 changes: 2 additions & 2 deletions docs/yard/top-level-namespace.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ <h2>Defined Under Namespace</h2>
</div>

<div id="footer">
Generated on Fri Feb 12 11:30:10 2021 by
Generated on Mon Apr 26 16:12:14 2021 by
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
0.9.26 (ruby-2.7.2).
0.9.26 (ruby-3.0.1).
</div>

</div>
Expand Down
2 changes: 1 addition & 1 deletion lib/haiti/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Version
VERSION = '1.0.1'
VERSION = '1.1.0'
end

0 comments on commit 1308ac5

Please sign in to comment.