mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 02:53:46 +03:00
minor patch for --tor
This commit is contained in:
parent
3c31ccd16e
commit
6b7920d89a
|
@ -404,6 +404,9 @@ Andres Riancho <andres.riancho@gmail.com>
|
|||
Jamie Riden <jamie.riden@ngssecure.com>
|
||||
for reporting a minor bug
|
||||
|
||||
Alexander Rigbo <alex@rigbo.se>
|
||||
for contributing a minor patch
|
||||
|
||||
Antonio Riva <antonio.riva@gmail.com>
|
||||
for reporting a bug when running with python 2.5
|
||||
|
||||
|
|
|
@ -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…
Reference in New Issue
Block a user