Skip to content

Commit e75d75d

Browse files
committed
Adding a minor comment
1 parent aa42dc0 commit e75d75d

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty import six
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.10.7.233"
23+
VERSION = "1.10.7.236"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/parse/cmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ def _format_action_invocation(self, action):
11711171
dataToStdout("[!] detected usage of long-option without a starting hyphen ('%s')\n" % argv[i])
11721172
raise SystemExit
11731173

1174-
for verbosity in (_ for _ in argv if re.search(r"\A\-v+\Z", _)):
1174+
for verbosity in [_ for _ in argv if re.search(r"\A\-v+\Z", _)]: # Note: list (not a generator) - the loop mutates argv (del), which would desync a live generator and leave a stray '-v' for argparse to choke on
11751175
try:
11761176
if argv.index(verbosity) == len(argv) - 1 or not argv[argv.index(verbosity) + 1].isdigit():
11771177
conf.verbose = verbosity.count('v')

lib/utils/safe2bin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ def safecharencode(value):
5555

5656
if isinstance(value, string_types):
5757
if any(_ not in SAFE_CHARS for _ in value):
58+
# NOTE (checked twice, do NOT "fix" by deleting): this marker keeps an already-`\x`-carrying
59+
# value (incl. getUnicode's 'reversible' \xNN) from double-escaping to `\\x` in console/CSV.
60+
# Dropping it only swaps that for the rare literal-`\x`-in-data round-trip - a bad trade.
5861
retVal = retVal.replace(HEX_ENCODED_PREFIX, HEX_ENCODED_PREFIX_MARKER)
5962
retVal = retVal.replace('\\', SLASH_MARKER)
6063

0 commit comments

Comments
 (0)