Skip to content

Commit 68162d2

Browse files
committed
v.20250617
- added tor related options
1 parent a47aced commit 68162d2

File tree

3 files changed

+60
-4
lines changed

3 files changed

+60
-4
lines changed

app.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,22 @@ class SQLMapGenerator {
283283

284284
const proxyFreq = document.getElementById('proxyFreq').value.trim();
285285
if (proxyFreq && proxyFreq >= 1) config['--proxy-freq'] = proxyFreq;
286-
286+
287287
const proxyIgnore = document.getElementById('proxyIgnore').checked
288288
if (proxyIgnore) config['--ignore-proxy'] = proxyIgnore;
289289

290+
const tor = document.getElementById('tor').checked;
291+
if (tor) config['--tor'] = tor;
292+
293+
const checTor = document.getElementById('checkTor').checked;
294+
if (checTor) config['--check-tor'] = checTor;
295+
296+
const torPort = document.getElementById('torPort').value.trim();
297+
if (torPort) config['--tor-port'] = torPort;
298+
299+
const torType = document.getElementById('torType').value.trim();;
300+
if (torType && torType !== "SOCKS5") config['--tor-type'] = torType;
301+
290302
// Request options
291303
const method = document.getElementById('method').value;
292304
if (method && method !== 'custom') {
@@ -479,6 +491,7 @@ class SQLMapGenerator {
479491
'-u', '-d', '-r', '-m', '-l', '--scope', '-g',
480492
'--timeout', '--delay', '--threads',
481493
'--proxy', '--proxy-cred', '--proxy-file', '--proxy-freq', '--ignore-proxy',
494+
'--tor', '--check-tor', '--tor-port', '--tor-type',
482495
'--force-ssl', '--keep-alive', '--null-connection', '--http2',
483496
'--method', '--data', '--param-del',
484497
'--host', '-A', '--mobile', '--random-agent', "--referer", "-H",
@@ -744,6 +757,10 @@ class SQLMapGenerator {
744757
'--proxy-file': 'proxyFile',
745758
'--proxy-freq': 'proxyFreq',
746759
'--ignore-proxy': 'proxyIgnore',
760+
'--tor': 'tor',
761+
'--check-tor': 'checkTor',
762+
'--tor-port': 'torPort',
763+
'--tor-type': 'torType',
747764
'--method': 'method',
748765
'--data': 'data',
749766
'--param-del': 'paramDel',

index.html

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h1><a href="?">SQLMap Command Builder</a></h1>
1616
</p>
1717

1818
<p>
19-
<a href="https://github.com/vizzdoom/sqlmap-command-builder" target="_blank">Github Repository v.20250616e</a> for <a target="_blank" href="https://github.com/sqlmapproject/sqlmap/releases">SQLMap 1.9</a><br />
19+
<a href="https://github.com/vizzdoom/sqlmap-command-builder" target="_blank">Github Repository v.20250617</a> for <a target="_blank" href="https://github.com/sqlmapproject/sqlmap/releases">SQLMap 1.9.4</a><br />
2020
vizzdoom/at/gmail/dot/com
2121
</p>
2222
</header>
@@ -197,14 +197,49 @@ <h3>Proxy Options</h3>
197197
<input type="number" id="proxyFreq" class="form-control" min="1" step="1" placeholder="3">
198198
</div>
199199
<!-- --ignore-proxy -->
200-
<div class="form-group" title="Run sqlmap against a target part of a local area network by ignoring the system-wide set HTTP(S) proxy server setting.">
200+
<div class="form-group row-expand" title="Run sqlmap against a target part of a local area network by ignoring the system-wide set HTTP(S) proxy server setting.">
201201
<label class="form-label">IGNORE SYSTEM PROXY SETTINGS</label>
202202
<label class="checkbox-label">
203203
<input type="checkbox" id="proxyIgnore">
204204
<span class="checkmark"></span>
205-
<span class="checkbox-label__text">--proxy-ignore</span>
205+
<span class="checkbox-label__text">--ignore-proxy</span>
206206
</label>
207207
</div>
208+
<div class="form-group" title="If, for any reason, you need to stay anonymous, instead of passing by a single predefined HTTP(S) proxy server, you can configure a Tor client together with Privoxy (or similar) on your machine as explained in Tor installation guides.
209+
Then you can use a switch --tor and sqlmap will try to automatically set Tor proxy connection settings.
210+
You are strongly advised to use --check-tor occasionally to be sure that everything was set up properly - sqlmap will check that everything works as expected by sending a single request to an official Are you using Tor? page before any target requests.">
211+
<!-- --tor -->
212+
<div class="checkbox-grid">
213+
<label class="form-label">TOR ANONYMITY NETWORK SETTINGS</label>
214+
<label class="checkbox-label">
215+
<input type="checkbox" id="tor">
216+
<span class="checkmark"></span>
217+
<span class="checkbox-label__text">--tor</span>
218+
</label>
219+
<!-- --check-tor -->
220+
<label class="checkbox-label">
221+
<input type="checkbox" id="checkTor">
222+
<span class="checkmark"></span>
223+
<span class="checkbox-label__text">--check-tor</span>
224+
</label>
225+
</div>
226+
</div>
227+
<!-- --tor-port -->
228+
<div class="form-group" title="In case that you want to manually set the port of used Tor proxy">
229+
<label class="form-label" for="torPort">TOR PROXY PORT<br/><span>--tor-port</span></label>
230+
<input type="number" id="torPort" class="form-control" min="1" max="65535" placeholder="9050">
231+
</div>
232+
<!-- --tor-type -->
233+
<div class="form-group" title="In case that you want to manually set the type of used Tor proxy.">
234+
<label class="form-label" for="torType">TOR PROXY TYPE<br/><span>--tor-type</span></label>
235+
<select id="torType" class="form-control">
236+
<option value="">-- Choose Type --</option>
237+
<option value="SOCKS5">SOCKS5 (default)</option>
238+
<option value="SOCKS4">SOCKS4</option>
239+
<option value="HTTP">HTTP</option>
240+
</select>
241+
</div>
242+
208243
</div>
209244
</div>
210245
</div>

style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,4 +1146,8 @@ body {
11461146

11471147
.tamper--help {
11481148
padding-left: 20px;
1149+
}
1150+
1151+
.row-expand {
1152+
grid-column: 1 / -1;
11491153
}

0 commit comments

Comments
 (0)