-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
410 lines (400 loc) · 22 KB
/
index.html
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" integrity="sha256-8M+b2Hj+vy/2J5tZ9pYDHeuPD59KsaEZn1XXj3xVhjg=" crossorigin="anonymous">
<title>sqlmap cmd generator.</title>
</head>
<body style="background-color:#70a1ff">
<div class="container">
<div class="mt-4 p-5 mb-2 bg-secondary text-white rounded">
<h1 class="display-4">sqlmap cmd generator.</h1>
<p class="lead">helloingob, 2023</p>
</div>
<form>
<div class="alert alert-primary" role="alert">
<a href="https://github.com/sqlmapproject/sqlmap/wiki/Usage#target" class="alert-link">Target</a>
</div>
<div class="form-group mb-2">
<label for="txtUrl">Url</label>
<input type="text" class="form-control" id="txtUrl" placeholder="Enter URL">
</div>
<div class="alert alert-primary" role="alert">
<a href="https://github.com/sqlmapproject/sqlmap/wiki/Usage#request" class="alert-link">Request</a>
</div>
<div class="form-group mb-2">
<label for="slcMethod">HTTP method</label>
<select class="form-control" id="slcMethod">
<option>GET</option>
<option>POST</option>
</select>
</div>
<div class="form-group mb-2" id="grpPostData" style="display: none;">
<label for="txtPostData">POST Data</label>
<input type="text" class="form-control" id="txtPostData" placeholder="Enter Data to be sent through POST (name=1&pw=1)">
</div>
<div class="alert alert-primary" role="alert">
<a href="https://github.com/sqlmapproject/sqlmap/wiki/Usage#detection" class="alert-link">Detection</a>
</div>
<div class="form-group">
<label for="slcLevel"><a href="https://github.com/sqlmapproject/sqlmap/wiki/Usage#level" class="text-dark">Level of tests to perform</a></label>
<select class="form-control" id="slcLevel">
<option selected>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</div>
<div class="form-group mb-2">
<label for="slcRisk"><a href="https://github.com/sqlmapproject/sqlmap/wiki/Usage#risk" class="text-dark">Risk of tests to perform</a></label>
<select class="form-control" id="slcRisk">
<option selected>1</option>
<option>2</option>
<option>3</option>
</select>
</div>
<div class="alert alert-primary" role="alert">
<a href="https://github.com/sqlmapproject/sqlmap/wiki/Usage#techniques" class="alert-link">Techniques</a>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="chbxBooleanBased" checked>
<label class="form-check-label" for="chbxBooleanBased">
Boolean-based blind
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="chbxErrorBased" checked>
<label class="form-check-label" for="chbxErrorBased">
Error-based
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="chbxUnionBased" checked>
<label class="form-check-label" for="chbxUnionBased">
Union query-based
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="chbxStacked" checked>
<label class="form-check-label" for="chbxBooleanBased">
Stacked queries
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="chbxTimeBased" checked>
<label class="form-check-label" for="chbxBooleanBased">
Time-based blind
</label>
</div>
<div class="form-check mb-2">
<input class="form-check-input" type="checkbox" value="" id="chbxInline" checked>
<label class="form-check-label" for="chbxBooleanBased">
Inline queries
</label>
</div>
<div class="alert alert-primary" role="alert">
<a href="https://github.com/sqlmapproject/sqlmap/wiki/Usage#enumeration" class="alert-link">Enumeration</a>
</div>
<div class="form-group form-check mb-2">
<input type="checkbox" class="form-check-input" id="chbxAll">
<label class="form-check-label" for="chbxAll">Retrieve everything (<i>not recommended</i>)</label>
</div>
<div class="form-group form-check">
<input type="checkbox" class="form-check-input" id="chbxBanner">
<label class="form-check-label" for="chbxBanner">Retrieve database name & version</label>
</div>
<div class="form-group form-check">
<input type="checkbox" class="form-check-input" id="chbxDatabases">
<label class="form-check-label" for="chbxDatabases">Get all database names</label>
</div>
<div class="form-group form-check mb-2">
<input type="checkbox" class="form-check-input" id="chbxTables">
<label class="form-check-label" for="chbxTables">Get all table names</label>
</div>
<div id="grpTables" style="display: none;">
<div class="form-group mb-2">
<label for="txtTablesDatabase">Database name</label>
<input type="text" class="form-control" id="txtTablesDatabase" placeholder="Enter specific database name (empty is current database)"/>
</div>
</div>
<div class="form-group form-check">
<input type="checkbox" class="form-check-input" id="chbxSingleTable">
<label class="form-check-label" for="chbxTables">Get single table content</label>
</div>
<div id="grpSingleTable" style="display: none;">
<div class="form-group mb-2">
<label for="txtSingleTableName">Database name</label>
<input type="text" class="form-control" id="txtSingleTableName" placeholder="Enter table name"/>
</div>
<div class="form-group">
<label for="txtSingleTableDatabase">Database name</label>
<input type="text" class="form-control" id="txtSingleTableDatabase" placeholder="Enter specific database name (empty is current database)"/>
</div>
</div>
<div class="form-group form-check mb-2">
<input type="checkbox" class="form-check-input" id="chbxAllTablesFromDatabase">
<label class="form-check-label" for="chbxAllTablesFromDatabase">Get all tables content from database</label>
</div>
<div id="grpAllTables" style="display: none;">
<div class="form-group mb-2">
<label for="txtAllTablesDatabase">Database name</label>
<input type="text" class="form-control" id="txtAllTablesDatabase" placeholder="Enter specific database name (emtpy are all databases)"/>
</div>
</div>
<div class="alert alert-primary" role="alert">
<b>Miscellaneous</b>
</div>
<div class="form-group form-check">
<input type="checkbox" class="form-check-input" id="chbxOptimization" checked>
<label class="form-check-label" for="chbxOptimization">Turn on all optimization switches</label>
</div>
<div class="form-group form-check">
<input type="checkbox" class="form-check-input" id="chbxUserAgent" checked>
<label class="form-check-label" for="chbxUserAgent">Use randomly selected HTTP User-Agent header value</label>
</div>
<div class="form-group form-check">
<input type="checkbox" class="form-check-input" id="chbxBatchmode">
<label class="form-check-label" for="chbxBatchmode">Turn on batchmode. All user's input will be default behavior</label>
</div>
<div class="form-group">
<label for="txtThreads"><a href="https://github.com/sqlmapproject/sqlmap/wiki/Usage#concurrent-https-requests" class="text-dark">Threads</a></label>
<input type="number" class="form-control" id="txtThreads" placeholder="Max number of concurrent HTTP(s) requests (default 1)" value="5">
</div>
<div class="form-group">
<label for="txtPostData"><a href="https://github.com/sqlmapproject/sqlmap/wiki/Usage#http-cookie-header" class="text-dark">Cookie</a></label>
<input type="text" class="form-control" id="txtCookie" placeholder="Enter cookie, e.g parameter1=value;parameter2=value">
</div>
<div class="form-group">
<label for="slcVerbosity"><a href="https://github.com/sqlmapproject/sqlmap/wiki/Usage#output-verbosity" class="text-dark">Verbosity</a></label>
<select class="form-control" id="slcVerbosity">
<option label="0: Show only Python tracebacks, error and critical messages.">0</option>
<option label="1: Show also information and warning messages." selected>1</option>
<option label="2: Show also debug messages.">2</option>
<option label="3: Show also payloads injected.">3</option>
<option label="4: Show also HTTP requests.">4</option>
<option label="5: Show also HTTP responses' headers.">5</option>
<option label="6: Show also HTTP responses' page content.">6</option>
</select>
</div>
<div class="mt-4 p-5 bg-secondary text-white rounded">
<p class="lead">Generated output:</p>
<div class="form-group mb-2">
<input type="text" class="form-control" id="txtOutput">
</div>
<button type="button" id="btnGenerate" onclick="generateCommand()" class="btn btn-primary btn-lg">
<i class="bi bi-caret-right-fill"></i>
</button>
<button type="button" id="btnClipboard" onclick="copyToClipboard()" class="btn btn-primary btn-lg">
<i class="bi bi-clipboard"></i>
</button>
</div>
</form>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
<script>
$('document').ready(function(){
$("#slcMethod").change(function () {
if ($("#slcMethod :selected").text() != "GET") {
$("#grpPostData").show();
} else {
$("#grpPostData").hide();
$("#txtPostData").val("");
}
});
$("#txtPostData").change(function () {
$("#txtPostData").val(function(i, v) {
return v.replace(/ /g,"&");
});
});
$("#chbxAll").click(function () {
if ($("#chbxAll").is(':checked')) {
$("#chbxBanner").prop( "checked", false );
$("#chbxDatabases").prop( "checked", false );
$("#chbxTables").prop( "checked", false );
$("#grpTables").hide();
$("#txtTablesDatabase").val("");
$("#chbxSingleTable").prop( "checked", false );
$("#grpSingleTable").hide();
$("#txtSingleTableDatabase").val("");
$("#chbxAllTablesFromDatabase").prop( "checked", false );
$("#grpAllTables").hide();
$("#txtAllTablesDatabase").val("");
}
});
$("#chbxBanner").click(function () {
if ($("#chbxBanner").is(':checked')) {
$("#chbxAll").prop( "checked", false );
}
});
$("#chbxDatabases").click(function () {
if ($("#chbxDatabases").is(':checked')) {
$("#chbxAll").prop( "checked", false );
}
});
$("#chbxTables").click(function () {
if ($("#chbxTables").is(':checked')) {
$("#chbxAll").prop( "checked", false );
}
});
$("#chbxSingleTable").click(function () {
if ($("#chbxSingleTable").is(':checked')) {
$("#chbxAll").prop( "checked", false );
}
});
$("#chbxAllTablesFromDatabase").click(function () {
if ($("#chbxAllTablesFromDatabase").is(':checked')) {
$("#chbxAll").prop( "checked", false );
}
});
$("#chbxTables").click(function () {
if ($("#chbxTables").is(':checked')) {
$("#grpTables").show();
} else {
$("#grpTables").hide();
$("#txtTablesDatabase").val("");
}
});
$("#chbxSingleTable").click(function () {
if ($("#chbxSingleTable").is(':checked')) {
$("#grpSingleTable").show();
$("#chbxAllTablesFromDatabase").prop( "checked", false );
$("#txtAllTablesDatabase").val("");
$("#grpAllTables").hide();
} else {
$("#grpSingleTable").hide();
$("#txtSingleTableDatabase").val("");
}
});
$("#chbxAllTablesFromDatabase").click(function () {
if ($("#chbxAllTablesFromDatabase").is(':checked')) {
$("#grpAllTables").show();
$("#chbxSingleTable").prop( "checked", false );
$("#txtSingleTableDatabase").val("");
$("#grpSingleTable").hide();
} else {
$("#grpAllTables").hide();
$("#txtAllTablesDatabase").val("");
}
});
});
</script>
<script>
function copyToClipboard() {
$("#txtOutput").select();
document.execCommand("copy");
}
</script>
<script>
function generateCommand() {
var command = "";
if ($("#txtUrl").val().length > 0) {
command = "--url \"" + $("#txtUrl").val() + "\" ";
} else {
$("#txtUrl").first().focus();
$("#txtOutput").val("Enter url");
return;
}
if ($("#slcMethod :selected").text() != "GET") {
command += "--method " + $("#slcMethod :selected").text() + " ";
if ($("#txtPostData").val().length > 0) {
command += "--data \"" + $("#txtPostData").val() + "\" ";
} else {
$("#txtPostData").first().focus();
$("#txtOutput").val("Enter post data");
return;
}
}
if ($("#slcLevel :selected").text() != "1") {
command += "--level " + $("#slcLevel").val() + " ";
}
if ($("#slcRisk :selected").text() != "1") {
command += "--risk " + $("#slcRisk").val() + " ";
}
if ($("#chbxBooleanBased").is(':checked') && $("#chbxErrorBased").is(':checked') && $("#chbxUnionBased").is(':checked') && $("#chbxStacked").is(':checked') && $("#chbxTimeBased").is(':checked') && $("#chbxInline").is(':checked') ) {
//command += "--technique BEUSTQ ";
} else {
command += "--technique ";
if ($("#chbxBooleanBased").is(':checked')) {
command += "B";
}
if ($("#chbxErrorBased").is(':checked')) {
command += "E";
}
if ($("#chbxUnionBased").is(':checked')) {
command += "U";
}
if ($("#chbxStacked").is(':checked')) {
command += "S";
}
if ($("#chbxTimeBased").is(':checked')) {
command += "T";
}
if ($("#chbxInline").is(':checked')) {
command += "Q";
}
command += " ";
}
if ($("#chbxAll").is(':checked')) {
command += "--all ";
} else {
if ($("#chbxBanner").is(':checked')) {
command += "--banner ";
}
if ($("#chbxDatabases").is(':checked')) {
command += "--dbs ";
}
if ($("#chbxTables").is(':checked')) {
command += "--tables --exclude-sysdbs ";
if ($("#txtTablesDatabase").val().length > 0) {
command += "-D \"" + $("#txtTablesDatabase").val() + "\" ";
}
}
if ($("#chbxSingleTable").is(':checked')) {
command += "--dump ";
if ($("#txtSingleTableName").val().length > 0) {
command += "-T \"" + $("#txtSingleTableName").val() + "\" ";
} else {
$("#txtSingleTableName").first().focus();
$("#txtOutput").val("Enter name of table to dump");
return;
}
if ($("#txtTablesDatabase").val().length > 0) {
command += "-D \"" + $("#txtTablesDatabase").val() + "\" ";
}
}
if ($("#chbxAllTablesFromDatabase").is(':checked')) {
if ($("#txtAllTablesDatabase").val().length > 0) {
command += "--dump -D \"" + $("#txtSingleTableName").val() + "\" ";
} else {
command += "--dump-all --exclude-sysdbs ";
}
}
}
if ($("#chbxUserAgent").is(':checked')) {
command += "--random-agent ";
}
if ($("#chbxOptimization").is(':checked')) {
command += "-o ";
}
if ($("#chbxBatchmode").is(':checked')) {
command += "--batch ";
}
if ($("#txtThreads :selected").text() != "1") {
command += "--threads " + $("#txtThreads").val() + " ";
}
if ($("#txtCookie").val().length > 0) {
command += "--cookie \"" + $("#txtCookie").val() + "\" ";
}
if ($("#slcVerbosity :selected").text() != "1") {
command += "-v " + $("#slcVerbosity").val() + " ";
}
$("#txtOutput").val("sqlmap " + command);
}
</script>
</body>
</html>