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 2020from 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 "
2424TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2525TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2626VERSION_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():
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
You can’t perform that action at this time.
0 commit comments