Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sqlmapproject
GitHub Repository: sqlmapproject/sqlmap
Path: blob/master/sqlmapapi.yaml
3553 views
1
openapi: 3.0.1
2
info:
3
title: sqlmapapi OpenAPI/Swagger specification
4
version: '0.1'
5
paths:
6
/version:
7
get:
8
description: Fetch server version
9
responses:
10
'200':
11
description: OK
12
content:
13
application/json:
14
schema:
15
type: object
16
properties:
17
version:
18
type: string
19
example: "1.5.7.7#dev"
20
success:
21
type: boolean
22
example: true
23
/task/new:
24
get:
25
description: Create a new task
26
responses:
27
'200':
28
description: OK
29
content:
30
application/json:
31
schema:
32
type: object
33
properties:
34
taskid:
35
type: string
36
example: "fad44d6beef72285"
37
success:
38
type: boolean
39
example: true
40
/task/{taskid}/delete:
41
get:
42
description: Delete an existing task
43
parameters:
44
- in: path
45
name: taskid
46
required: true
47
schema:
48
type: string
49
description: Scan task ID
50
responses:
51
'200':
52
description: OK
53
content:
54
application/json:
55
schema:
56
type: object
57
properties:
58
success:
59
type: boolean
60
example: true
61
/option/{taskid}/list:
62
get:
63
description: List options for a given task ID
64
parameters:
65
- in: path
66
name: taskid
67
required: true
68
schema:
69
type: string
70
description: Scan task ID
71
responses:
72
'200':
73
description: OK
74
content:
75
application/json:
76
schema:
77
type: object
78
properties:
79
success:
80
type: boolean
81
example: true
82
options:
83
type: array
84
items:
85
type: object
86
/option/{taskid}/get:
87
post:
88
description: Get value of option(s) for a certain task ID
89
parameters:
90
- in: path
91
name: taskid
92
required: true
93
schema:
94
type: string
95
requestBody:
96
content:
97
application/json:
98
schema:
99
type: array
100
items:
101
type: string
102
example: ["url", "cookie"]
103
responses:
104
'200':
105
description: OK
106
content:
107
application/json:
108
schema:
109
type: object
110
properties:
111
success:
112
type: boolean
113
options:
114
type: object
115
/option/{taskid}/set:
116
post:
117
description: Set value of option(s) for a certain task ID
118
parameters:
119
- in: path
120
name: taskid
121
required: true
122
schema:
123
type: string
124
requestBody:
125
content:
126
application/json:
127
schema:
128
type: object
129
example: {"cookie": "id=1"}
130
responses:
131
'200':
132
description: OK
133
content:
134
application/json:
135
schema:
136
type: object
137
properties:
138
success:
139
type: boolean
140
/scan/{taskid}/start:
141
post:
142
description: Launch a scan
143
parameters:
144
- in: path
145
name: taskid
146
required: true
147
schema:
148
type: string
149
description: Scan task ID
150
requestBody:
151
content:
152
application/json:
153
schema:
154
type: object
155
properties:
156
url:
157
type: string
158
examples:
159
'0':
160
value: '{"url":"http://testphp.vulnweb.com/artists.php?artist=1"}'
161
responses:
162
'200':
163
description: OK
164
content:
165
application/json:
166
schema:
167
type: object
168
properties:
169
engineid:
170
type: integer
171
example: 19720
172
success:
173
type: boolean
174
example: true
175
/scan/{taskid}/stop:
176
get:
177
description: Stop a scan
178
parameters:
179
- in: path
180
name: taskid
181
required: true
182
schema:
183
type: string
184
description: Scan task ID
185
responses:
186
'200':
187
description: OK
188
content:
189
application/json:
190
schema:
191
type: object
192
properties:
193
success:
194
type: boolean
195
example: true
196
/scan/{taskid}/status:
197
get:
198
description: Fetch status of a scan
199
parameters:
200
- in: path
201
name: taskid
202
required: true
203
schema:
204
type: string
205
description: Scan task ID
206
responses:
207
'200':
208
description: OK
209
content:
210
application/json:
211
schema:
212
type: object
213
properties:
214
status:
215
type: string
216
example: terminated
217
returncode:
218
type: integer
219
example: 0
220
success:
221
type: boolean
222
example: true
223
/scan/{taskid}/data:
224
get:
225
description: Retrieve the scan resulting data
226
parameters:
227
- in: path
228
name: taskid
229
required: true
230
schema:
231
type: string
232
description: Scan task ID
233
responses:
234
'200':
235
description: OK
236
content:
237
application/json:
238
schema:
239
type: object
240
properties:
241
data:
242
type: array
243
items:
244
type: object
245
success:
246
type: boolean
247
example: true
248
error:
249
type: array
250
items:
251
type: object
252
/scan/{taskid}/log:
253
get:
254
description: Retrieve the log messages
255
parameters:
256
- in: path
257
name: taskid
258
required: true
259
schema:
260
type: string
261
description: Scan task ID
262
responses:
263
'200':
264
description: OK
265
content:
266
application/json:
267
schema:
268
type: object
269
properties:
270
log:
271
type: array
272
items:
273
type: object
274
success:
275
type: boolean
276
example: true
277
/scan/{taskid}/kill:
278
get:
279
description: Kill a scan
280
parameters:
281
- in: path
282
name: taskid
283
required: true
284
schema:
285
type: string
286
description: Scan task ID
287
responses:
288
'200':
289
description: OK
290
content:
291
application/json:
292
schema:
293
type: object
294
properties:
295
success:
296
type: boolean
297
example: true
298
299