mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
minor patch for --tor
This commit is contained in:
parent
3c31ccd16e
commit
6b7920d89a
2 changed files with 4 additions and 1 deletions
|
|
@ -1702,10 +1702,10 @@ def __setTorProxySettings():
|
|||
logger.info(infoMsg)
|
||||
|
||||
found = None
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
|
||||
for port in DEFAULT_TOR_PORTS:
|
||||
try:
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
s.connect((LOCALHOST, port))
|
||||
found = port
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue