Skip to content

Commit

Permalink
v1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
noraj committed Apr 27, 2021
1 parent 9798722 commit f2d8dc5
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 23 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
ctf-party (1.4.0)
ctf-party (1.4.1)
docopt (~> 0.6)

GEM
Expand Down Expand Up @@ -59,4 +59,4 @@ DEPENDENCIES
yard (~> 0.9)

BUNDLED WITH
2.1.4
2.2.15
3 changes: 2 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Changelog

## [1.4.1] Unreleased
## [1.4.1]

- Support more ruby versions
- Support Ruby 3
- Fix some linting

## [1.4.0]
Expand Down
8 changes: 4 additions & 4 deletions docs/yard/String.html
Original file line number Diff line number Diff line change
Expand Up @@ -5397,9 +5397,9 @@ <h3 class="signature " id="rot-instance_method">
<span class='kw'>def</span> <span class='id identifier rubyid_rot'>rot</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
<span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:shift</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='int'>13</span>
<span class='id identifier rubyid_alphabet'>alphabet</span> <span class='op'>=</span> <span class='const'>Array</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>a</span><span class='tstring_end'>&#39;</span></span><span class='op'>..</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>z</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
<span class='id identifier rubyid_lowercase'>lowercase</span> <span class='op'>=</span> <span class='const'>Hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_alphabet'>alphabet</span><span class='period'>.</span><span class='id identifier rubyid_zip'>zip</span><span class='lparen'>(</span><span class='id identifier rubyid_alphabet'>alphabet</span><span class='period'>.</span><span class='id identifier rubyid_rotate'>rotate</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:shift</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rbracket'>]</span>
<span class='id identifier rubyid_lowercase'>lowercase</span> <span class='op'>=</span> <span class='id identifier rubyid_alphabet'>alphabet</span><span class='period'>.</span><span class='id identifier rubyid_zip'>zip</span><span class='lparen'>(</span><span class='id identifier rubyid_alphabet'>alphabet</span><span class='period'>.</span><span class='id identifier rubyid_rotate'>rotate</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:shift</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span>
<span class='id identifier rubyid_alphabet'>alphabet</span> <span class='op'>=</span> <span class='const'>Array</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>A</span><span class='tstring_end'>&#39;</span></span><span class='op'>..</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Z</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
<span class='id identifier rubyid_uppercasecase'>uppercasecase</span> <span class='op'>=</span> <span class='const'>Hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_alphabet'>alphabet</span><span class='period'>.</span><span class='id identifier rubyid_zip'>zip</span><span class='lparen'>(</span><span class='id identifier rubyid_alphabet'>alphabet</span><span class='period'>.</span><span class='id identifier rubyid_rotate'>rotate</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:shift</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rbracket'>]</span>
<span class='id identifier rubyid_uppercasecase'>uppercasecase</span> <span class='op'>=</span> <span class='id identifier rubyid_alphabet'>alphabet</span><span class='period'>.</span><span class='id identifier rubyid_zip'>zip</span><span class='lparen'>(</span><span class='id identifier rubyid_alphabet'>alphabet</span><span class='period'>.</span><span class='id identifier rubyid_rotate'>rotate</span><span class='lparen'>(</span><span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:shift</span><span class='rbracket'>]</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span>
<span class='id identifier rubyid_encrypter'>encrypter</span> <span class='op'>=</span> <span class='id identifier rubyid_lowercase'>lowercase</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_uppercasecase'>uppercasecase</span><span class='rparen'>)</span>
<span class='id identifier rubyid_chars'>chars</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_c'>c</span><span class='op'>|</span> <span class='id identifier rubyid_encrypter'>encrypter</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='id identifier rubyid_c'>c</span><span class='comma'>,</span> <span class='id identifier rubyid_c'>c</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span>
<span class='kw'>end</span></pre>
Expand Down Expand Up @@ -7464,9 +7464,9 @@ <h3 class="signature " id="urlencode!-instance_method">
</div>

<div id="footer">
Generated on Fri Apr 2 17:26:22 2021 by
Generated on Tue Apr 27 11:20:40 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 @@ -95,7 +95,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.3.5</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.4.1</span><span class='tstring_end'>&#39;</span></span></pre></dd>

</dl>

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

<div id="footer">
Generated on Fri Apr 2 17:26:21 2021 by
Generated on Tue Apr 27 11:20:39 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 @@ -113,9 +113,9 @@ <h2>Namespace Listing A-Z</h2>
</div>

<div id="footer">
Generated on Fri Apr 2 17:26:21 2021 by
Generated on Tue Apr 27 11:20:39 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 Apr 2 17:26:21 2021 by
Generated on Tue Apr 27 11:20:39 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
15 changes: 12 additions & 3 deletions docs/yard/file.README.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

<h2 id="what-it-is">What it is</h2>

<p>A library to enhance and speed up script/exploit writing for CTF players (or
<p>A CLI tool &amp; library to enhance and speed up script/exploit writing for CTF players (or
security researchers, bug bounty hunters, pentesters but mostly focused on CTF)
by patching the String class to add a short syntax of usual code patterns.
The philosophy is also to keep the library to be pure ruby (no dependencies)
Expand All @@ -95,6 +95,15 @@ <h2 id="what-it-is">What it is</h2>
<span class='id identifier rubyid_myvar'>myvar</span><span class='period'>.</span><span class='id identifier rubyid_to_b64!'>to_b64!</span>
</code></pre>

<p>Most of the methods are available as commands CLI tool:</p>

<pre class="code ruby"><code class="ruby">$ ctf-party &#39;security&#39; to_hex
7365637572697479

$ ctf-party &#39;NzQ2Zjc0NmY=&#39; from_b64 hex2str str2bin
01110100011011110111010001101111
</code></pre>

<h2 id="features">Features</h2>

<ul>
Expand All @@ -120,9 +129,9 @@ <h2 id="author">Author</h2>
</div></div>

<div id="footer">
Generated on Fri Apr 2 17:26:21 2021 by
Generated on Tue Apr 27 11:20:39 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
15 changes: 12 additions & 3 deletions docs/yard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

<h2 id="what-it-is">What it is</h2>

<p>A library to enhance and speed up script/exploit writing for CTF players (or
<p>A CLI tool &amp; library to enhance and speed up script/exploit writing for CTF players (or
security researchers, bug bounty hunters, pentesters but mostly focused on CTF)
by patching the String class to add a short syntax of usual code patterns.
The philosophy is also to keep the library to be pure ruby (no dependencies)
Expand All @@ -95,6 +95,15 @@ <h2 id="what-it-is">What it is</h2>
<span class='id identifier rubyid_myvar'>myvar</span><span class='period'>.</span><span class='id identifier rubyid_to_b64!'>to_b64!</span>
</code></pre>

<p>Most of the methods are available as commands CLI tool:</p>

<pre class="code ruby"><code class="ruby">$ ctf-party &#39;security&#39; to_hex
7365637572697479

$ ctf-party &#39;NzQ2Zjc0NmY=&#39; from_b64 hex2str str2bin
01110100011011110111010001101111
</code></pre>

<h2 id="features">Features</h2>

<ul>
Expand All @@ -120,9 +129,9 @@ <h2 id="author">Author</h2>
</div></div>

<div id="footer">
Generated on Fri Apr 2 17:26:21 2021 by
Generated on Tue Apr 27 11:20:39 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/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 Apr 2 17:26:21 2021 by
Generated on Tue Apr 27 11:20:39 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/ctf_party/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Version
VERSION = '1.4.0'
VERSION = '1.4.1'
end

0 comments on commit f2d8dc5

Please sign in to comment.