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

Skip to content

Commit 5a83f1c

Browse files
committed
minor update
1 parent 4bc6f3f commit 5a83f1c

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

lib/request/inject.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from lib.core.common import randomInt
3030
from lib.core.common import readInput
3131
from lib.core.common import safeStringFormat
32+
from lib.core.common import singleTimeWarnMessage
3233
from lib.core.data import conf
3334
from lib.core.data import kb
3435
from lib.core.data import logger
@@ -446,6 +447,12 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
446447

447448
kb.safeCharEncode = False
448449

450+
if not kb.testMode and value is None:
451+
warnMsg = "in case of continuous data retrieval problems you are advised to try "
452+
warnMsg += "a hidden switch '--no-cast' (fixing problems with some collation "
453+
warnMsg += "issues) and/or switch '--hex'"
454+
singleTimeWarnMessage(warnMsg)
455+
449456
return extractExpectedValue(value, expected)
450457

451458
def goStacked(expression, silent=False):

lib/techniques/union/use.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,6 @@ def __oneShotUnionUse(expression, unpack=True, limited=False):
9494
warnMsg = "possible server trimmed output detected (due to its length): "
9595
warnMsg += trimmed
9696
logger.warn(warnMsg)
97-
elif Backend.isDbms(DBMS.MYSQL) and not kb.multiThreadMode:
98-
warnMsg = "if the problem persists with 'None' values please try to use "
99-
warnMsg += "hidden switch '--no-cast' (fixing problems with some collation "
100-
warnMsg += "issues) or switch '--hex'"
101-
singleTimeWarnMessage(warnMsg)
10297

10398
hashDBWrite("%s%s" % (conf.hexConvert, expression), retVal)
10499

0 commit comments

Comments
 (0)