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

Skip to content

Commit 8d608df

Browse files
committed
Minor patch (too early test start)
1 parent c4ebc23 commit 8d608df

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

lib/core/settings.py

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

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.11.45"
21+
VERSION = "1.3.11.46"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import random
1515
import re
1616
import shutil
17+
import socket
1718
import sys
1819
import tempfile
1920
import threading
@@ -87,6 +88,14 @@ def _thread():
8788
thread.daemon = True
8889
thread.start()
8990

91+
while True:
92+
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
93+
try:
94+
s.connect((address, port))
95+
break
96+
except:
97+
time.sleep(1)
98+
9099
for options, checks in TESTS:
91100
status = '%d/%d (%d%%) ' % (count, len(TESTS), round(100.0 * count / len(TESTS)))
92101
dataToStdout("\r[%s] [INFO] complete: %s" % (time.strftime("%X"), status))

0 commit comments

Comments
 (0)