mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-09 08:00:36 +03:00
code refactoring
This commit is contained in:
parent
3f34b06a24
commit
cda00c7501
|
@ -343,12 +343,7 @@ def __goError(expression, resumeValue=True):
|
||||||
if conf.direct:
|
if conf.direct:
|
||||||
return direct(expression), None
|
return direct(expression), None
|
||||||
|
|
||||||
condition = (
|
if resumeValue:
|
||||||
kb.resumedQueries and conf.url in kb.resumedQueries.keys()
|
|
||||||
and expression in kb.resumedQueries[conf.url].keys()
|
|
||||||
)
|
|
||||||
|
|
||||||
if condition and resumeValue:
|
|
||||||
result = resume(expression, None)
|
result = resume(expression, None)
|
||||||
|
|
||||||
if not result:
|
if not result:
|
||||||
|
@ -367,12 +362,7 @@ def __goInband(expression, expected=None, sort=True, resumeValue=True, unpack=Tr
|
||||||
partial = False
|
partial = False
|
||||||
data = []
|
data = []
|
||||||
|
|
||||||
condition = (
|
if resumeValue:
|
||||||
kb.resumedQueries and conf.url in kb.resumedQueries.keys()
|
|
||||||
and expression in kb.resumedQueries[conf.url].keys()
|
|
||||||
)
|
|
||||||
|
|
||||||
if condition and resumeValue:
|
|
||||||
output = resume(expression, None)
|
output = resume(expression, None)
|
||||||
|
|
||||||
if not output or ( expected == EXPECTED.INT and not output.isdigit() ):
|
if not output or ( expected == EXPECTED.INT and not output.isdigit() ):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user