Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6b0951d

Browse files
committed
Switching default Tor type to SOCKS5 (various bundles are discontinued)
1 parent db1fc62 commit 6b0951d

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/core/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"risk": 1,
2222
"dumpFormat": "CSV",
2323
"tech": "BEUSTQ",
24-
"torType": "HTTP",
24+
"torType": "SOCKS5",
2525
}
2626

2727
defaults = AttribDict(_defaults)

lib/core/option.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2296,7 +2296,7 @@ def _setTorHttpProxySettings():
22962296
if found:
22972297
conf.proxy = "http://%s:%d" % (LOCALHOST, found)
22982298
else:
2299-
errMsg = "can't establish connection with the Tor proxy. "
2299+
errMsg = "can't establish connection with the Tor HTTP proxy. "
23002300
errMsg += "Please make sure that you have Vidalia, Privoxy or "
23012301
errMsg += "Polipo bundle installed for you to be able to "
23022302
errMsg += "successfully use switch '--tor' "

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.7.10"
22+
VERSION = "1.0.7.11"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

lib/parse/cmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def cmdLineParser(argv=None):
173173
help="Set Tor proxy port other than default")
174174

175175
request.add_option("--tor-type", dest="torType",
176-
help="Set Tor proxy type (HTTP (default), SOCKS4 or SOCKS5)")
176+
help="Set Tor proxy type (HTTP, SOCKS4 or SOCKS5 (default))")
177177

178178
request.add_option("--check-tor", dest="checkTor",
179179
action="store_true",

sqlmap.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ tor = False
124124

125125
# Set Tor proxy type.
126126
# Valid: HTTP, SOCKS4, SOCKS5
127-
torType = HTTP
127+
torType = SOCKS5
128128

129129
# Check to see if Tor is used properly.
130130
# Valid: True or False

0 commit comments

Comments
 (0)