File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 20
20
from thirdparty .six import unichr as _unichr
21
21
22
22
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23
- VERSION = "1.5.10.7 "
23
+ VERSION = "1.5.10.8 "
24
24
TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
25
25
TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
26
26
VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change @@ -105,8 +105,15 @@ def _thread():
105
105
s = socket .socket (socket .AF_INET , socket .SOCK_STREAM )
106
106
try :
107
107
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 :
110
117
break
111
118
except :
112
119
pass
You can’t perform that action at this time.
0 commit comments