mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
minor beautification for --tor switch
This commit is contained in:
parent
e05a9c0554
commit
0b2da2f9f5
3 changed files with 21 additions and 4 deletions
|
|
@ -97,6 +97,7 @@ class WARNFLAGS:
|
|||
RANDOM_AGENT = 'randomAgent'
|
||||
DATA_TO_STDOUT = 'dataToStdout'
|
||||
THREADS = 'threads'
|
||||
TOR = 'tor'
|
||||
|
||||
class EXPECTED:
|
||||
BOOL = "bool"
|
||||
|
|
|
|||
|
|
@ -1241,6 +1241,9 @@ def __cleanupOptions():
|
|||
conf.threads = 3 if conf.threads < 3 else conf.threads
|
||||
|
||||
if conf.tor:
|
||||
infoMsg = "setting Tor proxy settings"
|
||||
logger.info(infoMsg)
|
||||
|
||||
conf.proxy = DEFAULT_TOR_PROXY
|
||||
|
||||
if conf.data:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue