Skip to content

Commit dec550b

Browse files
committed
Minor patch for Windows OS
1 parent 3ff4bb8 commit dec550b

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.5.9.28"
23+
VERSION = "1.5.9.29"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/core/testing.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,16 @@ def vulnTest():
8080

8181
retVal = True
8282
count = 0
83-
address, port = "127.0.0.1", random.randint(1025, 65535)
83+
84+
while True:
85+
address, port = "127.0.0.1", random.randint(10000, 65535)
86+
try:
87+
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
88+
if s.connect_ex((address, port)):
89+
break
90+
finally:
91+
s.close()
92+
time.sleep(1)
8493

8594
def _thread():
8695
vulnserver.init(quiet=True)

0 commit comments

Comments
 (0)