Skip to content

请求是否有隐性等待 #5

@is101101

Description

@is101101

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions