boy-hack / hack-requests

The hack-requests is an http network library for hackers
MIT License
466 stars 90 forks source link

请求是否有隐性等待 #5

Closed is101101 closed 5 years ago

is101101 commented 5 years ago

raw = ''' xxx xxx xxx

uname=123' OR SLEEP(5)-- &passwd=123&submit=Submit ''' aa = hack.httpraw(raw) print(aa.text()) 报错信息: Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/HackRequests/HackRequests.py", line 231, in httpraw rep = conn.getresponse() File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1321, in getresponse response.begin() File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 296, in begin version, status, reason = self._read_status() File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 257, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socket.py", line 589, in readinto return self._sock.recv_into(b) socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/PyCharm/untitled/test.py", line 104, in aa = hack.httpraw(raw) File "/usr/local/lib/python3.7/site-packages/HackRequests/HackRequests.py", line 233, in httpraw raise HackError("socket connect timeout") HackRequests.HackRequests.HackError: socket connect timeout

boy-hack commented 5 years ago

如何复现?

is101101 commented 5 years ago

HackRequests 可以获取网页的相应时间吗?

boy-hack commented 5 years ago

没有明白你的意思