Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sqlmapproject
GitHub Repository: sqlmapproject/sqlmap
Path: blob/master/lib/core/optiondict.py
2989 views
1
#!/usr/bin/env python
2
3
"""
4
Copyright (c) 2006-2025 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
"csrfToken": "string",
67
"csrfUrl": "string",
68
"csrfMethod": "string",
69
"csrfData": "string",
70
"csrfRetries": "integer",
71
"forceSSL": "boolean",
72
"chunked": "boolean",
73
"hpp": "boolean",
74
"evalCode": "string",
75
},
76
77
"Optimization": {
78
"optimize": "boolean",
79
"predictOutput": "boolean",
80
"keepAlive": "boolean",
81
"nullConnection": "boolean",
82
"threads": "integer",
83
},
84
85
"Injection": {
86
"testParameter": "string",
87
"skip": "string",
88
"skipStatic": "boolean",
89
"paramExclude": "string",
90
"paramFilter": "string",
91
"dbms": "string",
92
"dbmsCred": "string",
93
"os": "string",
94
"invalidBignum": "boolean",
95
"invalidLogical": "boolean",
96
"invalidString": "boolean",
97
"noCast": "boolean",
98
"noEscape": "boolean",
99
"prefix": "string",
100
"suffix": "string",
101
"tamper": "string",
102
},
103
104
"Detection": {
105
"level": "integer",
106
"risk": "integer",
107
"string": "string",
108
"notString": "string",
109
"regexp": "string",
110
"code": "integer",
111
"smart": "boolean",
112
"textOnly": "boolean",
113
"titles": "boolean",
114
},
115
116
"Techniques": {
117
"technique": "string",
118
"timeSec": "integer",
119
"uCols": "string",
120
"uChar": "string",
121
"uFrom": "string",
122
"uValues": "string",
123
"dnsDomain": "string",
124
"secondUrl": "string",
125
"secondReq": "string",
126
},
127
128
"Fingerprint": {
129
"extensiveFp": "boolean",
130
},
131
132
"Enumeration": {
133
"getAll": "boolean",
134
"getBanner": ("boolean", "Banners"),
135
"getCurrentUser": ("boolean", "Users"),
136
"getCurrentDb": ("boolean", "Databases"),
137
"getHostname": "boolean",
138
"isDba": "boolean",
139
"getUsers": ("boolean", "Users"),
140
"getPasswordHashes": ("boolean", "Passwords"),
141
"getPrivileges": ("boolean", "Privileges"),
142
"getRoles": ("boolean", "Roles"),
143
"getDbs": ("boolean", "Databases"),
144
"getTables": ("boolean", "Tables"),
145
"getColumns": ("boolean", "Columns"),
146
"getSchema": "boolean",
147
"getCount": "boolean",
148
"dumpTable": "boolean",
149
"dumpAll": "boolean",
150
"search": "boolean",
151
"getComments": "boolean",
152
"getStatements": "boolean",
153
"db": "string",
154
"tbl": "string",
155
"col": "string",
156
"exclude": "string",
157
"pivotColumn": "string",
158
"dumpWhere": "string",
159
"user": "string",
160
"excludeSysDbs": "boolean",
161
"limitStart": "integer",
162
"limitStop": "integer",
163
"firstChar": "integer",
164
"lastChar": "integer",
165
"sqlQuery": "string",
166
"sqlShell": "boolean",
167
"sqlFile": "string",
168
},
169
170
"Brute": {
171
"commonTables": "boolean",
172
"commonColumns": "boolean",
173
"commonFiles": "boolean",
174
},
175
176
"User-defined function": {
177
"udfInject": "boolean",
178
"shLib": "string",
179
},
180
181
"File system": {
182
"fileRead": "string",
183
"fileWrite": "string",
184
"fileDest": "string",
185
},
186
187
"Takeover": {
188
"osCmd": "string",
189
"osShell": "boolean",
190
"osPwn": "boolean",
191
"osSmb": "boolean",
192
"osBof": "boolean",
193
"privEsc": "boolean",
194
"msfPath": "string",
195
"tmpPath": "string",
196
},
197
198
"Windows": {
199
"regRead": "boolean",
200
"regAdd": "boolean",
201
"regDel": "boolean",
202
"regKey": "string",
203
"regVal": "string",
204
"regData": "string",
205
"regType": "string",
206
},
207
208
"General": {
209
"trafficFile": "string",
210
"abortOnEmpty": "boolean",
211
"answers": "string",
212
"batch": "boolean",
213
"base64Parameter": "string",
214
"base64Safe": "boolean",
215
"binaryFields": "string",
216
"charset": "string",
217
"checkInternet": "boolean",
218
"cleanup": "boolean",
219
"crawlDepth": "integer",
220
"crawlExclude": "string",
221
"csvDel": "string",
222
"dumpFile": "string",
223
"dumpFormat": "string",
224
"encoding": "string",
225
"eta": "boolean",
226
"flushSession": "boolean",
227
"forms": "boolean",
228
"freshQueries": "boolean",
229
"googlePage": "integer",
230
"harFile": "string",
231
"hexConvert": "boolean",
232
"outputDir": "string",
233
"parseErrors": "boolean",
234
"postprocess": "string",
235
"preprocess": "string",
236
"repair": "boolean",
237
"saveConfig": "string",
238
"scope": "string",
239
"skipHeuristics": "boolean",
240
"skipWaf": "boolean",
241
"testFilter": "string",
242
"testSkip": "string",
243
"timeLimit": "float",
244
"unsafeNaming": "boolean",
245
"webRoot": "string",
246
},
247
248
"Miscellaneous": {
249
"alert": "string",
250
"beep": "boolean",
251
"dependencies": "boolean",
252
"disableColoring": "boolean",
253
"disableHashing": "boolean",
254
"listTampers": "boolean",
255
"noLogging": "boolean",
256
"noTruncate": "boolean",
257
"offline": "boolean",
258
"purge": "boolean",
259
"resultsFile": "string",
260
"tmpDir": "string",
261
"unstable": "boolean",
262
"updateAll": "boolean",
263
"wizard": "boolean",
264
"verbose": "integer",
265
},
266
267
"Hidden": {
268
"dummy": "boolean",
269
"disablePrecon": "boolean",
270
"profile": "boolean",
271
"forceDns": "boolean",
272
"murphyRate": "integer",
273
"smokeTest": "boolean",
274
},
275
276
"API": {
277
"api": "boolean",
278
"taskid": "string",
279
"database": "string",
280
}
281
}
282
283