ctf-party 1.0.0 → 1.3.1
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/LICENSE.txt +2 -1
- data/bin/ctf_party_console +0 -0
- data/lib/ctf_party.rb +2 -0
- data/lib/ctf_party/base64.rb +6 -13
- data/lib/ctf_party/case.rb +35 -0
- data/lib/ctf_party/digest.rb +12 -10
- data/lib/ctf_party/flag.rb +1 -5
- data/lib/ctf_party/hex.rb +212 -0
- data/lib/ctf_party/rot.rb +2 -2
- data/lib/ctf_party/version.rb +1 -1
- metadata +28 -73
- data/.rubocop.yml +0 -29
- data/.yardopts +0 -4
- data/.yardopts-dev +0 -6
- data/Gemfile +0 -6
- data/Gemfile.lock +0 -52
- data/README.md +0 -57
- data/Rakefile +0 -11
- data/bin/ctf_party_setup +0 -6
- data/docs/.nojekyll +0 -0
- data/docs/About.md +0 -5
- data/docs/CHANGELOG.md +0 -5
- data/docs/README.md +0 -52
- data/docs/_coverpage.md +0 -10
- data/docs/_media/logo.png +0 -0
- data/docs/_navbar.md +0 -3
- data/docs/_sidebar.md +0 -13
- data/docs/index.html +0 -31
- data/docs/pages/documentation.md +0 -30
- data/docs/pages/install.md +0 -84
- data/docs/pages/publishing.md +0 -39
- data/docs/pages/quick-start.md +0 -23
- data/docs/pages/usage.md +0 -61
- 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/yard/String.html +0 -2909
- data/docs/yard/Version.html +0 -121
- data/docs/yard/_index.html +0 -123
- 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 -124
- data/docs/yard/file_list.html +0 -61
- data/docs/yard/frames.html +0 -17
- data/docs/yard/index.html +0 -124
- 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 -275
- data/docs/yard/top-level-namespace.html +0 -112
- data/test/test_string.rb +0 -134
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ctf-party
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.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: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '2.
|
19
|
+
version: '2.1'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2.
|
26
|
+
version: '2.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: commonmarker
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,56 +58,56 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '5
|
61
|
+
version: '5'
|
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: '5
|
68
|
+
version: '5'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '13.0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '13.0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: redcarpet
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '3.
|
89
|
+
version: '3.5'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '3.
|
96
|
+
version: '3.5'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubocop
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0.
|
103
|
+
version: '0.80'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0.
|
110
|
+
version: '0.80'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: yard
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,80 +122,36 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0.9'
|
125
|
-
description: A library to enhance and speed up script/exploit
|
125
|
+
description: A library to enhance and speed up script/exploit writingfor CTF players
|
126
126
|
(or security researchers, bug bountyhunters, pentesters but mostly focused on CTF)
|
127
127
|
bypatching the String class to add a short syntax of usual code patterns.
|
128
128
|
email: alexandre.zanni@engineer.com
|
129
129
|
executables:
|
130
130
|
- ctf_party_console
|
131
|
-
- ctf_party_setup
|
132
131
|
extensions: []
|
133
132
|
extra_rdoc_files: []
|
134
133
|
files:
|
135
|
-
- ".rubocop.yml"
|
136
|
-
- ".yardopts"
|
137
|
-
- ".yardopts-dev"
|
138
|
-
- Gemfile
|
139
|
-
- Gemfile.lock
|
140
134
|
- LICENSE.txt
|
141
|
-
- README.md
|
142
|
-
- Rakefile
|
143
135
|
- bin/ctf_party_console
|
144
|
-
- bin/ctf_party_setup
|
145
|
-
- docs/.nojekyll
|
146
|
-
- docs/About.md
|
147
|
-
- docs/CHANGELOG.md
|
148
|
-
- docs/README.md
|
149
|
-
- docs/_coverpage.md
|
150
|
-
- docs/_media/logo.png
|
151
|
-
- docs/_navbar.md
|
152
|
-
- docs/_sidebar.md
|
153
|
-
- docs/index.html
|
154
|
-
- docs/pages/documentation.md
|
155
|
-
- docs/pages/install.md
|
156
|
-
- docs/pages/publishing.md
|
157
|
-
- docs/pages/quick-start.md
|
158
|
-
- docs/pages/usage.md
|
159
|
-
- docs/vendor/docsify.js
|
160
|
-
- docs/vendor/plugins/emoji.min.js
|
161
|
-
- docs/vendor/plugins/search.min.js
|
162
|
-
- docs/vendor/prismjs/components/prism-ruby.min.js
|
163
|
-
- docs/vendor/themes/vue.css
|
164
|
-
- docs/yard/String.html
|
165
|
-
- docs/yard/Version.html
|
166
|
-
- docs/yard/_index.html
|
167
|
-
- docs/yard/class_list.html
|
168
|
-
- docs/yard/css/common.css
|
169
|
-
- docs/yard/css/full_list.css
|
170
|
-
- docs/yard/css/style.css
|
171
|
-
- docs/yard/file.LICENSE.html
|
172
|
-
- docs/yard/file.README.html
|
173
|
-
- docs/yard/file_list.html
|
174
|
-
- docs/yard/frames.html
|
175
|
-
- docs/yard/index.html
|
176
|
-
- docs/yard/js/app.js
|
177
|
-
- docs/yard/js/full_list.js
|
178
|
-
- docs/yard/js/jquery.js
|
179
|
-
- docs/yard/method_list.html
|
180
|
-
- docs/yard/top-level-namespace.html
|
181
136
|
- lib/ctf_party.rb
|
182
137
|
- lib/ctf_party/base64.rb
|
138
|
+
- lib/ctf_party/case.rb
|
183
139
|
- lib/ctf_party/digest.rb
|
184
140
|
- lib/ctf_party/flag.rb
|
141
|
+
- lib/ctf_party/hex.rb
|
185
142
|
- lib/ctf_party/rot.rb
|
186
143
|
- lib/ctf_party/version.rb
|
187
|
-
|
188
|
-
homepage: https://orange-cyberdefense.github.io/ctf-party/
|
144
|
+
homepage: https://noraj.github.io/ctf-party/
|
189
145
|
licenses:
|
190
146
|
- MIT
|
191
147
|
metadata:
|
192
148
|
yard.run: yard
|
193
|
-
bug_tracker_uri: https://github.com/
|
194
|
-
changelog_uri: https://github.com/
|
195
|
-
documentation_uri: https://
|
196
|
-
homepage_uri: https://
|
197
|
-
source_code_uri: https://github.com/
|
198
|
-
post_install_message:
|
149
|
+
bug_tracker_uri: https://github.com/noraj/ctf-party/issues
|
150
|
+
changelog_uri: https://github.com/noraj/ctf-party/blob/master/docs/CHANGELOG.md
|
151
|
+
documentation_uri: https://noraj.github.io/ctf-party/
|
152
|
+
homepage_uri: https://noraj.github.io/ctf-party/
|
153
|
+
source_code_uri: https://github.com/noraj/ctf-party/
|
154
|
+
post_install_message:
|
199
155
|
rdoc_options: []
|
200
156
|
require_paths:
|
201
157
|
- lib
|
@@ -203,16 +159,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
203
159
|
requirements:
|
204
160
|
- - "~>"
|
205
161
|
- !ruby/object:Gem::Version
|
206
|
-
version: '2.
|
162
|
+
version: '2.7'
|
207
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
164
|
requirements:
|
209
165
|
- - ">="
|
210
166
|
- !ruby/object:Gem::Version
|
211
167
|
version: '0'
|
212
168
|
requirements: []
|
213
|
-
rubygems_version: 3.
|
214
|
-
signing_key:
|
169
|
+
rubygems_version: 3.1.2
|
170
|
+
signing_key:
|
215
171
|
specification_version: 4
|
216
|
-
summary: A library to enhance and speed up script/exploit
|
217
|
-
test_files:
|
218
|
-
- test/test_string.rb
|
172
|
+
summary: A library to enhance and speed up script/exploit writing for CTF players
|
173
|
+
test_files: []
|
data/.rubocop.yml
DELETED
@@ -1,29 +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/ClassVars:
|
25
|
-
Enabled: false
|
26
|
-
Style/Documentation:
|
27
|
-
Enabled: false
|
28
|
-
Style/RedundantReturn:
|
29
|
-
Enabled: false
|
data/.yardopts
DELETED
data/.yardopts-dev
DELETED
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
ctf-party (1.0.0)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
ast (2.4.0)
|
10
|
-
commonmarker (0.20.1)
|
11
|
-
ruby-enum (~> 0.5)
|
12
|
-
concurrent-ruby (1.1.5)
|
13
|
-
github-markup (3.0.4)
|
14
|
-
i18n (1.7.0)
|
15
|
-
concurrent-ruby (~> 1.0)
|
16
|
-
jaro_winkler (1.5.3)
|
17
|
-
minitest (5.12.2)
|
18
|
-
parallel (1.18.0)
|
19
|
-
parser (2.6.5.0)
|
20
|
-
ast (~> 2.4.0)
|
21
|
-
rainbow (3.0.0)
|
22
|
-
rake (12.3.3)
|
23
|
-
redcarpet (3.5.0)
|
24
|
-
rubocop (0.75.1)
|
25
|
-
jaro_winkler (~> 1.5.1)
|
26
|
-
parallel (~> 1.10)
|
27
|
-
parser (>= 2.6)
|
28
|
-
rainbow (>= 2.2.2, < 4.0)
|
29
|
-
ruby-progressbar (~> 1.7)
|
30
|
-
unicode-display_width (>= 1.4.0, < 1.7)
|
31
|
-
ruby-enum (0.7.2)
|
32
|
-
i18n
|
33
|
-
ruby-progressbar (1.10.1)
|
34
|
-
unicode-display_width (1.6.0)
|
35
|
-
yard (0.9.20)
|
36
|
-
|
37
|
-
PLATFORMS
|
38
|
-
ruby
|
39
|
-
|
40
|
-
DEPENDENCIES
|
41
|
-
bundler (~> 2.0)
|
42
|
-
commonmarker (~> 0.20)
|
43
|
-
ctf-party!
|
44
|
-
github-markup (~> 3.0)
|
45
|
-
minitest (~> 5.11)
|
46
|
-
rake (~> 12.3)
|
47
|
-
redcarpet (~> 3.4)
|
48
|
-
rubocop (~> 0.63)
|
49
|
-
yard (~> 0.9)
|
50
|
-
|
51
|
-
BUNDLED WITH
|
52
|
-
2.0.2
|
data/README.md
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
# ctf-party
|
2
|
-
|
3
|
-
[](https://badge.fury.io/rb/ctf-party)
|
4
|
-

|
5
|
-
[](https://github.com/Orange-Cyberdefense/ctf-party/network)
|
6
|
-
[](https://github.com/Orange-Cyberdefense/ctf-party/stargazers)
|
7
|
-
[](https://github.com/Orange-Cyberdefense/ctf-party/blob/master/LICENSE.txt)
|
8
|
-
[](https://inventory.rawsec.ml/tools.html#ctf-party)
|
9
|
-
|
10
|
-
[](https://repology.org/project/ctf-party/versions)
|
11
|
-
|
12
|
-

|
13
|
-
|
14
|
-
|
15
|
-
## What it is
|
16
|
-
|
17
|
-
A library to enhance and speed up script/exploit writting for CTF players (or
|
18
|
-
security researchers, bug bounty hunters, pentesters but mostly focused on CTF)
|
19
|
-
by patching the String class to add a short syntax of usual code patterns.
|
20
|
-
The philosophy is also to keep the library to be pure ruby (no dependencies)
|
21
|
-
and not to re-implement what another library is already doing well
|
22
|
-
(eg.[xorcist] for xor).
|
23
|
-
|
24
|
-
[xorcist]:https://github.com/fny/xorcist
|
25
|
-
|
26
|
-
For example instead of writting:
|
27
|
-
|
28
|
-
```ruby
|
29
|
-
require 'base64'
|
30
|
-
|
31
|
-
myvar = 'string'
|
32
|
-
myvar = Base64.strict_encode64(myvar)
|
33
|
-
```
|
34
|
-
|
35
|
-
Just write (shorter and easier to remember):
|
36
|
-
|
37
|
-
```ruby
|
38
|
-
require 'ctf_library'
|
39
|
-
|
40
|
-
myvar = 'string'
|
41
|
-
myvar.to_b64!
|
42
|
-
```
|
43
|
-
|
44
|
-
## Features
|
45
|
-
|
46
|
-
- base64: `to_b64`, `to_b64!`, `from_b64`, `from_b64!`, `b64?`
|
47
|
-
- digest: `md5`, `md5!`, `sha1`, `sha1!`, etc.
|
48
|
-
- flag: `flag`, `flag!`, `flag?` (apply/check a flag format)
|
49
|
-
- rot: `rot`, `rot!`, `rot13`, `rot13!`
|
50
|
-
|
51
|
-
## References
|
52
|
-
|
53
|
-
Homepage / Documentation: https://orange-cyberdefense.github.io/ctf-party/
|
54
|
-
|
55
|
-
## Author
|
56
|
-
|
57
|
-
Made by Alexandre ZANNI ([@noraj](https://github.com/noraj)), pentester from Orange Cyberdefense.
|
data/Rakefile
DELETED
data/bin/ctf_party_setup
DELETED
data/docs/.nojekyll
DELETED
File without changes
|
data/docs/About.md
DELETED
data/docs/CHANGELOG.md
DELETED
data/docs/README.md
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
# ctf-party
|
2
|
-
|
3
|
-
[](https://badge.fury.io/rb/ctf-party)
|
4
|
-

|
5
|
-
[](https://github.com/Orange-Cyberdefense/ctf-party/network)
|
6
|
-
[](https://github.com/Orange-Cyberdefense/ctf-party/stargazers)
|
7
|
-
[](https://github.com/Orange-Cyberdefense/ctf-party/blob/master/LICENSE.txt)
|
8
|
-
[](https://inventory.rawsec.ml/tools.html#ctf-party)
|
9
|
-
|
10
|
-
## What it is
|
11
|
-
|
12
|
-
A library to enhance and speed up script/exploit writting for CTF players (or
|
13
|
-
security researchers, bug bounty hunters, pentesters but mostly focused on CTF)
|
14
|
-
by patching the String class to add a short syntax of usual code patterns.
|
15
|
-
The philosophy is also to keep the library to be pure ruby (no dependencies)
|
16
|
-
and not to re-implement what another library is already doing well
|
17
|
-
(eg.[xorcist] for xor).
|
18
|
-
|
19
|
-
[xorcist]:https://github.com/fny/xorcist
|
20
|
-
|
21
|
-
For example instead of writting:
|
22
|
-
|
23
|
-
```ruby
|
24
|
-
require 'base64'
|
25
|
-
|
26
|
-
myvar = 'string'
|
27
|
-
myvar = Base64.strict_encode64(myvar)
|
28
|
-
```
|
29
|
-
|
30
|
-
Just write (shorter and easier to remember):
|
31
|
-
|
32
|
-
```ruby
|
33
|
-
require 'ctf_party'
|
34
|
-
|
35
|
-
myvar = 'string'
|
36
|
-
myvar.to_b64!
|
37
|
-
```
|
38
|
-
|
39
|
-
## Features
|
40
|
-
|
41
|
-
- base64: `to_b64`, `to_b64!`, `from_b64`, `from_b64!`, `b64?`
|
42
|
-
- digest: `md5`, `md5!`, `sha1`, `sha1!`, etc.
|
43
|
-
- flag: `flag`, `flag!`, `flag?` (apply/check a flag format)
|
44
|
-
- rot: `rot`, `rot!`, `rot13`, `rot13!`
|
45
|
-
|
46
|
-
## References
|
47
|
-
|
48
|
-
Homepage / Documentation: https://orange-cyberdefense.github.io/ctf-party/
|
49
|
-
|
50
|
-
## Author
|
51
|
-
|
52
|
-
Made by Alexandre ZANNI ([@noraj](https://github.com/noraj)), pentester from Orange Cyberdefense.
|