mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
some more refactoring
This commit is contained in:
parent
32ca99da53
commit
6632aa7308
5 changed files with 75 additions and 79 deletions
|
|
@ -374,14 +374,11 @@ class Backend:
|
|||
_ = readInput(msg, default='1')
|
||||
|
||||
if isinstance(_, basestring) and _.isdigit() and int(_) in ( 1, 2 ):
|
||||
if int(_) == 1:
|
||||
kb.arch = 32
|
||||
else:
|
||||
kb.arch = 64
|
||||
kb.arch = 32 if int(_) == 1 else 64
|
||||
|
||||
break
|
||||
else:
|
||||
warnMsg = "invalid value, valid values are 1 and 2"
|
||||
warnMsg = "invalid value. Valid values are 1 and 2"
|
||||
logger.warn(warnMsg)
|
||||
|
||||
return kb.arch
|
||||
|
|
@ -482,10 +479,8 @@ class Backend:
|
|||
if Backend.getVersionList() is None:
|
||||
return False
|
||||
|
||||
for dbmsVersion in Backend.getVersionList():
|
||||
if dbmsVersion == UNKNOWN_DBMS_VERSION:
|
||||
continue
|
||||
elif dbmsVersion in versionList:
|
||||
for _ in Backend.getVersionList():
|
||||
if _ != UNKNOWN_DBMS_VERSION and _ in versionList:
|
||||
return True
|
||||
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue