mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Fixes #2243
This commit is contained in:
parent
0398cbdc76
commit
d2bbe80455
5 changed files with 14 additions and 8 deletions
|
|
@ -2410,7 +2410,10 @@ def findLocalPort(ports):
|
|||
|
||||
for port in ports:
|
||||
try:
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
try:
|
||||
s = socket._orig_socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
except AttributeError:
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
s.connect((LOCALHOST, port))
|
||||
retVal = port
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue