Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6af110d

Browse files
committed
avoiding --no-cast/--hex warning message before a DBMS is fingerprinted
1 parent 64c241f commit 6af110d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/request/inject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
466466

467467
kb.safeCharEncode = False
468468

469-
if not kb.testMode and value is None and Backend.getDbms():
469+
if not kb.testMode and value is None and Backend.getDbms() and conf.dbmsHandler:
470470
warnMsg = "in case of continuous data retrieval problems you are advised to try "
471471
warnMsg += "a switch '--no-cast' and/or switch '--hex'"
472472
singleTimeWarnMessage(warnMsg)

0 commit comments

Comments
 (0)