Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sqlmapproject
GitHub Repository: sqlmapproject/sqlmap
Path: blob/master/sqlmapapi.yaml
2983 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
/scan/{taskid}/start:
41
post:
42
description: Launch a scan
43
parameters:
44
- in: path
45
name: taskid
46
required: true
47
schema:
48
type: string
49
description: Scan task ID
50
requestBody:
51
content:
52
application/json:
53
schema:
54
type: object
55
properties:
56
url:
57
type: string
58
examples:
59
'0':
60
value: '{"url":"http://testphp.vulnweb.com/artists.php?artist=1"}'
61
responses:
62
'200':
63
description: OK
64
content:
65
application/json:
66
schema:
67
type: object
68
properties:
69
engineid:
70
type: integer
71
example: 19720
72
success:
73
type: boolean
74
example: true
75
/scan/{taskid}/stop:
76
get:
77
description: Stop a scan
78
parameters:
79
- in: path
80
name: taskid
81
required: true
82
schema:
83
type: string
84
description: Scan task ID
85
responses:
86
'200':
87
description: OK
88
content:
89
application/json:
90
schema:
91
type: object
92
properties:
93
success:
94
type: boolean
95
example: true
96
/scan/{taskid}/status:
97
get:
98
description: Fetch status of a scan
99
parameters:
100
- in: path
101
name: taskid
102
required: true
103
schema:
104
type: string
105
description: Scan task ID
106
responses:
107
'200':
108
description: OK
109
content:
110
application/json:
111
schema:
112
type: object
113
properties:
114
status:
115
type: string
116
example: terminated
117
returncode:
118
type: integer
119
example: 0
120
success:
121
type: boolean
122
example: true
123
/scan/{taskid}/list:
124
get:
125
description: List options for a given task ID
126
parameters:
127
- in: path
128
name: taskid
129
required: true
130
schema:
131
type: string
132
description: Scan task ID
133
responses:
134
'200':
135
description: OK
136
content:
137
application/json:
138
schema:
139
type: object
140
properties:
141
success:
142
type: boolean
143
example: true
144
options:
145
type: array
146
items:
147
type: object
148
/scan/{taskid}/data:
149
get:
150
description: Retrieve the scan resulting data
151
parameters:
152
- in: path
153
name: taskid
154
required: true
155
schema:
156
type: string
157
description: Scan task ID
158
responses:
159
'200':
160
description: OK
161
content:
162
application/json:
163
schema:
164
type: object
165
properties:
166
data:
167
type: array
168
items:
169
type: object
170
success:
171
type: boolean
172
example: true
173
error:
174
type: array
175
items:
176
type: object
177
/scan/{taskid}/log:
178
get:
179
description: Retrieve the log messages
180
parameters:
181
- in: path
182
name: taskid
183
required: true
184
schema:
185
type: string
186
description: Scan task ID
187
responses:
188
'200':
189
description: OK
190
content:
191
application/json:
192
schema:
193
type: object
194
properties:
195
log:
196
type: array
197
items:
198
type: object
199
success:
200
type: boolean
201
example: true
202
/scan/{taskid}/kill:
203
get:
204
description: Kill a scan
205
parameters:
206
- in: path
207
name: taskid
208
required: true
209
schema:
210
type: string
211
description: Scan task ID
212
responses:
213
'200':
214
description: OK
215
content:
216
application/json:
217
schema:
218
type: object
219
properties:
220
success:
221
type: boolean
222
example: true
223
/task/{taskid}/delete:
224
get:
225
description: Delete an existing task
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
success:
242
type: boolean
243
example: true
244
245