diff --git a/lib/techniques/inband/union/test.py b/lib/techniques/inband/union/test.py index e68948a4f..e1e2a5a09 100644 --- a/lib/techniques/inband/union/test.py +++ b/lib/techniques/inband/union/test.py @@ -206,6 +206,11 @@ def __unionTestByCharBruteforce(comment, place, parameter, value, prefix, suffix validPayload, vector = __unionConfirm(comment, place, parameter, value, prefix, suffix, count) + if not all([validPayload, vector]) and not conf.uChar: + warnMsg = "please consider usage of --union-char option " + warnMsg += "(e.g. --union-char=1) to make it work" + logger.warn(warnMsg) + return validPayload, vector def unionTest(comment, place, parameter, value, prefix, suffix):