-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsqlmap-rest-api-scan-taskid-log.schema.json
46 lines (43 loc) · 1.24 KB
/
sqlmap-rest-api-scan-taskid-log.schema.json
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
{
"$id": "http://sqlmap.org/sqlmap-rest-api-scan-taskid-log.schema.json",
"$schema": "http://json-schema.org/draft-06/schema#",
"description": "The output of the sqlmap REST API call to /scan/<taskid>/log",
"definitions": {
"log_message": {
"type": "object",
"description": "A log message",
"properties": {
"level": {
"type": "string",
"enum": ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL",
"PAYLOAD", "TRAFFIC OUT", "TRAFFIC IN"],
"description": "Level of the log entry"
},
"message": {
"type": "string",
"description": "The log entry message"
},
"time": {
"type": "string",
"pattern": "^([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)$",
"description": "The timestamp (HH:mm) of the log entry"
}
},
"required": ["level", "message", "time"]
},
},
"type": "object",
"properties": {
"log": {
"type": "array",
"description": "A list of log messages",
"items": {
"$ref": "#/definitions/log_message"
}
},
"success": {
"type": "boolean",
"description": "Whether or not the request for the log data was successful"
}
}
}