Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sqlmapproject
GitHub Repository: sqlmapproject/sqlmap
Path: blob/master/lib/core/optiondict.py
3554 views
1
#!/usr/bin/env python
2
3
"""
4
Copyright (c) 2006-2026 sqlmap developers (https://sqlmap.org)
5
See the file 'LICENSE' for copying permission
6
"""
7
8
optDict = {
9
# Family: {"parameter name": "parameter datatype"},
10
# --OR--
11
# Family: {"parameter name": ("parameter datatype", "category name used for common outputs feature")},
12
13
"Target": {
14
"direct": "string",
15
"url": "string",
16
"logFile": "string",
17
"bulkFile": "string",
18
"requestFile": "string",
19
"sessionFile": "string",
20
"googleDork": "string",
21
"configFile": "string",
22
},
23
24
"Request": {
25
"method": "string",
26
"data": "string",
27
"paramDel": "string",
28
"cookie": "string",
29
"cookieDel": "string",
30
"liveCookies": "string",
31
"loadCookies": "string",
32
"dropSetCookie": "boolean",
33
"http2": "boolean",
34
"agent": "string",
35
"mobile": "boolean",
36
"randomAgent": "boolean",
37
"host": "string",
38
"referer": "string",
39
"headers": "string",
40
"authType": "string",
41
"authCred": "string",
42
"authFile": "string",
43
"abortCode": "string",
44
"ignoreCode": "string",
45
"ignoreProxy": "boolean",
46
"ignoreRedirects": "boolean",
47
"ignoreTimeouts": "boolean",
48
"proxy": "string",
49
"proxyCred": "string",
50
"proxyFile": "string",
51
"proxyFreq": "integer",
52
"tor": "boolean",
53
"torPort": "integer",
54
"torType": "string",
55
"checkTor": "boolean",
56
"delay": "float",
57
"timeout": "float",
58
"retries": "integer",
59
"retryOn": "string",
60
"rParam": "string",
61
"safeUrl": "string",
62
"safePost": "string",
63
"safeReqFile": "string",
64
"safeFreq": "integer",
65
"skipUrlEncode": "boolean",
66
"skipXmlEncode": "boolean",
67
"csrfToken": "string",
68
"csrfUrl": "string",
69
"csrfMethod": "string",
70
"csrfData": "string",
71
"csrfRetries": "integer",
72
"forceSSL": "boolean",
73
"chunked": "boolean",
74
"hpp": "boolean",
75
"evalCode": "string",
76
},
77
78
"Optimization": {
79
"optimize": "boolean",
80
"predictOutput": "boolean",
81
"keepAlive": "boolean",
82
"nullConnection": "boolean",
83
"threads": "integer",
84
},
85
86
"Injection": {
87
"testParameter": "string",
88
"skip": "string",
89
"skipStatic": "boolean",
90
"paramExclude": "string",
91
"paramFilter": "string",
92
"dbms": "string",
93
"dbmsCred": "string",
94
"os": "string",
95
"invalidBignum": "boolean",
96
"invalidLogical": "boolean",
97
"invalidString": "boolean",
98
"noCast": "boolean",
99
"noEscape": "boolean",
100
"prefix": "string",
101
"suffix": "string",
102
"tamper": "string",
103
},
104
105
"Detection": {
106
"level": "integer",
107
"risk": "integer",
108
"string": "string",
109
"notString": "string",
110
"regexp": "string",
111
"code": "integer",
112
"smart": "boolean",
113
"textOnly": "boolean",
114
"titles": "boolean",
115
},
116
117
"Techniques": {
118
"technique": "string",
119
"timeSec": "integer",
120
"uCols": "string",
121
"uChar": "string",
122
"uFrom": "string",
123
"uValues": "string",
124
"dnsDomain": "string",
125
"secondUrl": "string",
126
"secondReq": "string",
127
},
128
129
"Fingerprint": {
130
"extensiveFp": "boolean",
131
},
132
133
"Enumeration": {
134
"getAll": "boolean",
135
"getBanner": ("boolean", "Banners"),
136
"getCurrentUser": ("boolean", "Users"),
137
"getCurrentDb": ("boolean", "Databases"),
138
"getHostname": "boolean",
139
"isDba": "boolean",
140
"getUsers": ("boolean", "Users"),
141
"getPasswordHashes": ("boolean", "Passwords"),
142
"getPrivileges": ("boolean", "Privileges"),
143
"getRoles": ("boolean", "Roles"),
144
"getDbs": ("boolean", "Databases"),
145
"getTables": ("boolean", "Tables"),
146
"getColumns": ("boolean", "Columns"),
147
"getSchema": "boolean",
148
"getCount": "boolean",
149
"dumpTable": "boolean",
150
"dumpAll": "boolean",
151
"search": "boolean",
152
"getComments": "boolean",
153
"getStatements": "boolean",
154
"db": "string",
155
"tbl": "string",
156
"col": "string",
157
"exclude": "string",
158
"pivotColumn": "string",
159
"dumpWhere": "string",
160
"user": "string",
161
"excludeSysDbs": "boolean",
162
"limitStart": "integer",
163
"limitStop": "integer",
164
"firstChar": "integer",
165
"lastChar": "integer",
166
"sqlQuery": "string",
167
"sqlShell": "boolean",
168
"sqlFile": "string",
169
},
170
171
"Brute": {
172
"commonTables": "boolean",
173
"commonColumns": "boolean",
174
"commonFiles": "boolean",
175
},
176
177
"User-defined function": {
178
"udfInject": "boolean",
179
"shLib": "string",
180
},
181
182
"File system": {
183
"fileRead": "string",
184
"fileWrite": "string",
185
"fileDest": "string",
186
},
187
188
"Takeover": {
189
"osCmd": "string",
190
"osShell": "boolean",
191
"osPwn": "boolean",
192
"osSmb": "boolean",
193
"osBof": "boolean",
194
"privEsc": "boolean",
195
"msfPath": "string",
196
"tmpPath": "string",
197
},
198
199
"Windows": {
200
"regRead": "boolean",
201
"regAdd": "boolean",
202
"regDel": "boolean",
203
"regKey": "string",
204
"regVal": "string",
205
"regData": "string",
206
"regType": "string",
207
},
208
209
"General": {
210
"trafficFile": "string",
211
"abortOnEmpty": "boolean",
212
"answers": "string",
213
"batch": "boolean",
214
"base64Parameter": "string",
215
"base64Safe": "boolean",
216
"binaryFields": "string",
217
"charset": "string",
218
"checkInternet": "boolean",
219
"cleanup": "boolean",
220
"crawlDepth": "integer",
221
"crawlExclude": "string",
222
"csvDel": "string",
223
"dumpFile": "string",
224
"dumpFormat": "string",
225
"encoding": "string",
226
"eta": "boolean",
227
"flushSession": "boolean",
228
"forms": "boolean",
229
"freshQueries": "boolean",
230
"googlePage": "integer",
231
"harFile": "string",
232
"hexConvert": "boolean",
233
"outputDir": "string",
234
"parseErrors": "boolean",
235
"postprocess": "string",
236
"preprocess": "string",
237
"repair": "boolean",
238
"saveConfig": "string",
239
"scope": "string",
240
"skipHeuristics": "boolean",
241
"skipWaf": "boolean",
242
"testFilter": "string",
243
"testSkip": "string",
244
"timeLimit": "float",
245
"unsafeNaming": "boolean",
246
"webRoot": "string",
247
},
248
249
"Miscellaneous": {
250
"alert": "string",
251
"beep": "boolean",
252
"dependencies": "boolean",
253
"disableColoring": "boolean",
254
"disableHashing": "boolean",
255
"listTampers": "boolean",
256
"noLogging": "boolean",
257
"noTruncate": "boolean",
258
"offline": "boolean",
259
"purge": "boolean",
260
"resultsFile": "string",
261
"tmpDir": "string",
262
"unstable": "boolean",
263
"updateAll": "boolean",
264
"wizard": "boolean",
265
"verbose": "integer",
266
},
267
268
"Hidden": {
269
"dummy": "boolean",
270
"disablePrecon": "boolean",
271
"profile": "boolean",
272
"forceDns": "boolean",
273
"murphyRate": "integer",
274
"smokeTest": "boolean",
275
},
276
277
"API": {
278
"api": "boolean",
279
"taskid": "string",
280
"database": "string",
281
}
282
}
283
284