mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-15 18:43:16 +03:00
another fix (OS was set to None at all previous sessions if there was no explicit OS testing done)
This commit is contained in:
parent
e28b9f26fc
commit
6651ba05eb
|
@ -361,23 +361,24 @@ def resumeConfKb(expression, url, value):
|
||||||
elif expression == "OS" and url == conf.url:
|
elif expression == "OS" and url == conf.url:
|
||||||
os = unSafeFormatString(value[:-1])
|
os = unSafeFormatString(value[:-1])
|
||||||
|
|
||||||
logMsg = "resuming back-end DBMS operating system '%s' " % os
|
if os and os != 'None':
|
||||||
logMsg += "from session file"
|
logMsg = "resuming back-end DBMS operating system '%s' " % os
|
||||||
logger.info(logMsg)
|
logMsg += "from session file"
|
||||||
|
logger.info(logMsg)
|
||||||
|
|
||||||
if conf.os and conf.os.lower() != os.lower():
|
if conf.os and conf.os.lower() != os.lower():
|
||||||
message = "you provided '%s' as back-end DBMS operating " % conf.os
|
message = "you provided '%s' as back-end DBMS operating " % conf.os
|
||||||
message += "system, but from a past scan information on the "
|
message += "system, but from a past scan information on the "
|
||||||
message += "target URL sqlmap assumes the back-end DBMS "
|
message += "target URL sqlmap assumes the back-end DBMS "
|
||||||
message += "operating system is %s. " % os
|
message += "operating system is %s. " % os
|
||||||
message += "Do you really want to force the back-end DBMS "
|
message += "Do you really want to force the back-end DBMS "
|
||||||
message += "OS value? [y/N] "
|
message += "OS value? [y/N] "
|
||||||
test = readInput(message, default="N")
|
test = readInput(message, default="N")
|
||||||
|
|
||||||
if not test or test[0] in ("n", "N"):
|
if not test or test[0] in ("n", "N"):
|
||||||
|
conf.os = os
|
||||||
|
else:
|
||||||
conf.os = os
|
conf.os = os
|
||||||
else:
|
|
||||||
conf.os = os
|
|
||||||
|
|
||||||
elif expression == "TABLE_EXISTS" and url == conf.url:
|
elif expression == "TABLE_EXISTS" and url == conf.url:
|
||||||
table = unSafeFormatString(value[:-1])
|
table = unSafeFormatString(value[:-1])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user