mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 17:46:37 +03:00
minor update
This commit is contained in:
parent
293ce18fed
commit
a4a63f5b1e
|
@ -351,7 +351,7 @@ def checkSqlInjection(place, parameter, value):
|
||||||
socket.setdefaulttimeout(120)
|
socket.setdefaulttimeout(120)
|
||||||
|
|
||||||
# Perform the test's request
|
# Perform the test's request
|
||||||
_ = Request.queryPage(reqPayload, place, noteResponseTime = False)
|
_ = Request.queryPage(reqPayload, place, content=True, noteResponseTime=False)
|
||||||
|
|
||||||
# 99.9999999997440% of all non time-based sql injection
|
# 99.9999999997440% of all non time-based sql injection
|
||||||
# affected durations should be inside +-7*stdev(durations)
|
# affected durations should be inside +-7*stdev(durations)
|
||||||
|
|
|
@ -387,6 +387,7 @@ class Connect:
|
||||||
Connect.getPage(url=conf.safUrl, cookie=cookie, direct=True, silent=True, ua=ua)
|
Connect.getPage(url=conf.safUrl, cookie=cookie, direct=True, silent=True, ua=ua)
|
||||||
|
|
||||||
start = time.time()
|
start = time.time()
|
||||||
|
|
||||||
if not content and not response and kb.nullConnection:
|
if not content and not response and kb.nullConnection:
|
||||||
if kb.nullConnection == NULLCONNECTION.HEAD:
|
if kb.nullConnection == NULLCONNECTION.HEAD:
|
||||||
method = HTTPMETHOD.HEAD
|
method = HTTPMETHOD.HEAD
|
||||||
|
@ -405,6 +406,7 @@ class Connect:
|
||||||
|
|
||||||
if not pageLength:
|
if not pageLength:
|
||||||
page, headers = Connect.getPage(url=uri, get=get, post=post, cookie=cookie, ua=ua, silent=silent, method=method, auxHeaders=auxHeaders, response=response, raise404=raise404)
|
page, headers = Connect.getPage(url=uri, get=get, post=post, cookie=cookie, ua=ua, silent=silent, method=method, auxHeaders=auxHeaders, response=response, raise404=raise404)
|
||||||
|
|
||||||
kb.lastQueryDuration = calculateDeltaSeconds(start)
|
kb.lastQueryDuration = calculateDeltaSeconds(start)
|
||||||
|
|
||||||
if conf.textOnly:
|
if conf.textOnly:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user