Skip to content

Commit c4680b7

Browse files
committed
Bug fix
1 parent f1621d0 commit c4680b7

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
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.10.7"
23+
VERSION = "1.5.10.8"
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: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,15 @@ def _thread():
105105
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
106106
try:
107107
s.connect((address, port))
108-
s.send(b"GET / HTTP/1.0\r\n\r\n")
109-
if b"vulnserver" in s.recv(4096):
108+
s.sendall(b"GET / HTTP/1.1\r\n\r\n")
109+
result = b""
110+
while True:
111+
current = s.recv(1024)
112+
if not current:
113+
break
114+
else:
115+
result += current
116+
if b"vulnserver" in result:
110117
break
111118
except:
112119
pass

0 commit comments

Comments
 (0)