mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 11:03:47 +03:00
Minor refactoring
This commit is contained in:
parent
3f4186ce2c
commit
805120ac52
|
@ -399,7 +399,7 @@ def start():
|
|||
if skip:
|
||||
continue
|
||||
|
||||
if not conf.paramDict.has_key(place):
|
||||
if place not in conf.paramDict:
|
||||
continue
|
||||
|
||||
paramDict = conf.paramDict[place]
|
||||
|
|
|
@ -62,7 +62,7 @@ def __setRequestParams():
|
|||
testableParameters = False
|
||||
|
||||
# Perform checks on GET parameters
|
||||
if conf.parameters.has_key(PLACE.GET) and conf.parameters[PLACE.GET]:
|
||||
if conf.parameters.get(PLACE.GET):
|
||||
parameters = conf.parameters[PLACE.GET]
|
||||
paramDict = paramToDict(PLACE.GET, parameters)
|
||||
|
||||
|
|
|
@ -236,7 +236,7 @@ class Connect:
|
|||
pass
|
||||
|
||||
elif target:
|
||||
if conf.parameters.has_key(PLACE.GET) and not get:
|
||||
if PLACE.GET in conf.parameters and not get:
|
||||
get = conf.parameters[PLACE.GET]
|
||||
|
||||
if get:
|
||||
|
@ -245,7 +245,7 @@ class Connect:
|
|||
|
||||
if conf.method == HTTPMETHOD.POST and not post:
|
||||
for place in (PLACE.POST, PLACE.SOAP):
|
||||
if conf.parameters.has_key(place):
|
||||
if place in conf.parameters:
|
||||
post = conf.parameters[place]
|
||||
break
|
||||
|
||||
|
|
|
@ -123,7 +123,7 @@ def tableExists(tableFile, regex=None):
|
|||
logger.warn(warnMsg)
|
||||
else:
|
||||
for item in threadData.shared.outputs:
|
||||
if not kb.data.cachedTables.has_key(conf.db):
|
||||
if conf.db not in kb.data.cachedTables:
|
||||
kb.data.cachedTables[conf.db] = [item]
|
||||
else:
|
||||
kb.data.cachedTables[conf.db].append(item)
|
||||
|
|
Loading…
Reference in New Issue
Block a user