-
Notifications
You must be signed in to change notification settings - Fork 0
/
ctfChad4.yaml
226 lines (214 loc) · 8.52 KB
/
ctfChad4.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
# ctfChad4
# This version is now optimized for OpenAI’s schema requirements and should be ready for upload as a custom tool! Let me know if you need further adjustments.
ChatGPT said:
To expand the capabilities of this API and address the additional requirements, I'll add parameters to support more complex cipher analysis, differentiate between encryption algorithms and hash types, and introduce support for common wordlists. I’ll also enhance it with functionality for various encoding schemes (e.g., ROT, Base encodings), international characters, and symbol/hieroglyphic translations.
Here’s the updated OpenAPI specification:
yaml
Copy code
openapi: 3.1.0
info:
title: Advanced NCL Cyber Tool API
version: 1.0.3
servers:
- url: https://api.nclcybertools.com
paths:
/detectBase:
post:
operationId: detectBase
summary: Detects the base or encoding of a given input, including binary, hexadecimal, and common encodings.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
input:
type: string
description: The string to analyze for base or encoding.
detectType:
type: string
enum: [numberBase, baseEncoding, languageScript, cipherPattern]
description: Type of detection (e.g., number base, encoding, script, cipher pattern).
responses:
'200':
description: Detected base, encoding, or script information.
content:
application/json:
schema:
type: object
properties:
result:
type: string
description: Detected base, encoding, or script.
confidence:
type: number
format: float
description: Confidence level of detection.
'400':
description: Invalid input format
/analyzeCipher:
post:
operationId: analyzeCipher
summary: Analyzes a cipher text to suggest potential cipher algorithms or patterns.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
ciphertext:
type: string
description: The cipher text to analyze.
hints:
type: array
items:
type: string
description: List of known hints (e.g., language, ROT, RSA, international scripts).
language:
type: string
description: Language code of the text, if known (e.g., en, es, zh).
responses:
'200':
description: Suggested ciphers or patterns based on analysis.
content:
application/json:
schema:
type: object
properties:
suggestedCiphers:
type: array
items:
type: string
description: List of potential cipher algorithms (e.g., Caesar, RSA, ROT13).
confidence:
type: number
format: float
description: Confidence level of analysis.
'400':
description: Invalid input format
/crackPassword:
post:
operationId: crackPassword
summary: Attempts to crack a hashed password using specified hash type and optional wordlists.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
hash:
type: string
description: The hashed password to crack.
hashType:
type: string
enum: [MD5, SHA-1, SHA-256, NTLM, bcrypt]
description: Type of hash (e.g., MD5, SHA-256).
wordlist:
type: string
enum: [rockyou, windows, custom]
description: Wordlist to use (rockyou, windows, or custom list).
customWordlist:
type: array
items:
type: string
description: Custom wordlist array, if selected.
responses:
'200':
description: Result of password cracking attempt.
content:
application/json:
schema:
type: object
properties:
password:
type: string
description: The cracked password, if successful.
success:
type: boolean
description: Indicates if cracking was successful.
'400':
description: Invalid hash format or unsupported hash type
/decryptMessage:
post:
operationId: decryptMessage
summary: Decrypts an encrypted message using a specified algorithm and key, supporting various international character sets.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
ciphertext:
type: string
description: The encrypted message.
algorithm:
type: string
enum: [AES, DES, RSA, ROT13, Caesar]
description: Encryption algorithm used.
key:
type: string
description: The decryption key.
encoding:
type: string
enum: [UTF-8, ASCII, ISO-8859-1, UTF-16]
description: Character encoding for decryption.
responses:
'200':
description: Successfully decrypted message.
content:
application/json:
schema:
type: object
properties:
plaintext:
type: string
description: The decrypted message.
'400':
description: Invalid input or unsupported algorithm
'401':
description: Decryption failed due to incorrect key or algorithm
/translateSymbols:
post:
operationId: translateSymbols
summary: Translates symbols, hieroglyphs, or encoded text into plaintext, supporting various languages and scripts.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
symbols:
type: string
description: The symbols or encoded text to translate.
script:
type: string
enum: [morse, hieroglyphics, runes, alphanumeric]
description: Type of script (e.g., morse, hieroglyphics, runes).
language:
type: string
description: Target language for translation (ISO 639-1 code, e.g., en, fr, zh).
responses:
'200':
description: Translation of symbols or script.
content:
application/json:
schema:
type: object
properties:
translation:
type: string
description: Translated plaintext.
'400':
description: Invalid input or unsupported script
# Explanation of New/Updated Parameters
# detectType (in /detectBase): Specifies whether to detect a numeric base, encoding scheme, language script, or cipher pattern.
# ciphertext with hints and language (in /analyzeCipher): Allows hints and language codes for better cipher pattern analysis.
# wordlist and customWordlist (in /crackPassword): Supports common wordlists (RockYou, Windows) and custom wordlist arrays for password cracking.
# encoding (in /decryptMessage): Allows selection of encoding for decryption, supporting UTF-8, ASCII, and international character sets.
# translateSymbols endpoint: Added for symbol/hieroglyph translation with support for Morse, hieroglyphics, runes, and language-specific translation.
## This spec now supports a broad range of capabilities, including cipher detection, character encoding options, wordlists, and symbol translations. Let me know if you need further adjustments or additional functionality!