mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 02:53:46 +03:00
Switching default Tor type to SOCKS5 (various bundles are discontinued)
This commit is contained in:
parent
db1fc621b5
commit
6b0951d1ee
|
@ -21,7 +21,7 @@ _defaults = {
|
||||||
"risk": 1,
|
"risk": 1,
|
||||||
"dumpFormat": "CSV",
|
"dumpFormat": "CSV",
|
||||||
"tech": "BEUSTQ",
|
"tech": "BEUSTQ",
|
||||||
"torType": "HTTP",
|
"torType": "SOCKS5",
|
||||||
}
|
}
|
||||||
|
|
||||||
defaults = AttribDict(_defaults)
|
defaults = AttribDict(_defaults)
|
||||||
|
|
|
@ -2296,7 +2296,7 @@ def _setTorHttpProxySettings():
|
||||||
if found:
|
if found:
|
||||||
conf.proxy = "http://%s:%d" % (LOCALHOST, found)
|
conf.proxy = "http://%s:%d" % (LOCALHOST, found)
|
||||||
else:
|
else:
|
||||||
errMsg = "can't establish connection with the Tor proxy. "
|
errMsg = "can't establish connection with the Tor HTTP proxy. "
|
||||||
errMsg += "Please make sure that you have Vidalia, Privoxy or "
|
errMsg += "Please make sure that you have Vidalia, Privoxy or "
|
||||||
errMsg += "Polipo bundle installed for you to be able to "
|
errMsg += "Polipo bundle installed for you to be able to "
|
||||||
errMsg += "successfully use switch '--tor' "
|
errMsg += "successfully use switch '--tor' "
|
||||||
|
|
|
@ -19,7 +19,7 @@ from lib.core.enums import OS
|
||||||
from lib.core.revision import getRevisionNumber
|
from lib.core.revision import getRevisionNumber
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.0.7.10"
|
VERSION = "1.0.7.11"
|
||||||
REVISION = getRevisionNumber()
|
REVISION = getRevisionNumber()
|
||||||
STABLE = VERSION.count('.') <= 2
|
STABLE = VERSION.count('.') <= 2
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")
|
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")
|
||||||
|
|
|
@ -173,7 +173,7 @@ def cmdLineParser(argv=None):
|
||||||
help="Set Tor proxy port other than default")
|
help="Set Tor proxy port other than default")
|
||||||
|
|
||||||
request.add_option("--tor-type", dest="torType",
|
request.add_option("--tor-type", dest="torType",
|
||||||
help="Set Tor proxy type (HTTP (default), SOCKS4 or SOCKS5)")
|
help="Set Tor proxy type (HTTP, SOCKS4 or SOCKS5 (default))")
|
||||||
|
|
||||||
request.add_option("--check-tor", dest="checkTor",
|
request.add_option("--check-tor", dest="checkTor",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
|
|
|
@ -124,7 +124,7 @@ tor = False
|
||||||
|
|
||||||
# Set Tor proxy type.
|
# Set Tor proxy type.
|
||||||
# Valid: HTTP, SOCKS4, SOCKS5
|
# Valid: HTTP, SOCKS4, SOCKS5
|
||||||
torType = HTTP
|
torType = SOCKS5
|
||||||
|
|
||||||
# Check to see if Tor is used properly.
|
# Check to see if Tor is used properly.
|
||||||
# Valid: True or False
|
# Valid: True or False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user