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

Skip to content

Commit c12e511

Browse files
committed
Minor style update
1 parent 77ba63b commit c12e511

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/techniques/union/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def _unionTestByCharBruteforce(comment, place, parameter, value, prefix, suffix)
278278
test = readInput(message, default="Y")
279279
if test[0] not in ("y", "Y"):
280280
warnMsg += "usage of option '--union-char' "
281-
warnMsg += "(e.g. --union-char=1) "
281+
warnMsg += "(e.g. '--union-char=1') "
282282
else:
283283
conf.uChar = kb.uChar = str(randomInt(2))
284284
validPayload, vector = _unionConfirm(comment, place, parameter, prefix, suffix, count)
@@ -288,7 +288,7 @@ def _unionTestByCharBruteforce(comment, place, parameter, value, prefix, suffix)
288288
warnMsg += "and/or try to force the "
289289
else:
290290
warnMsg += "forcing the "
291-
warnMsg += "back-end DBMS (e.g. --dbms=mysql) "
291+
warnMsg += "back-end DBMS (e.g. '--dbms=mysql') "
292292

293293
if not all([validPayload, vector]) and not warnMsg.endswith("consider "):
294294
singleTimeWarnMessage(warnMsg)

lib/techniques/union/use.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def unionThread():
316316
del threadData.shared.buffered[0]
317317

318318
if conf.verbose == 1 and not (threadData.resumed and kb.suppressResumeInfo) and not threadData.shared.showEta:
319-
status = "[%s] [INFO] %s: %s" % (time.strftime("%X"), "resumed" if threadData.resumed else "retrieved", safecharencode(",".join("\"%s\"" % _ for _ in flattenValue(arrayizeValue(items)))))
319+
status = "[%s] [INFO] %s: %s" % (time.strftime("%X"), "resumed" if threadData.resumed else "retrieved", safecharencode(",".join("'%s'" % _ for _ in flattenValue(arrayizeValue(items)))))
320320

321321
if len(status) > width:
322322
status = "%s..." % status[:width - 3]

0 commit comments

Comments
 (0)