From fe4e79511ac43df741c7fea55c11284599e5ad6a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 2 Nov 2020 11:15:45 +0100 Subject: [PATCH] Fixes #4413 --- lib/core/settings.py | 2 +- lib/parse/cmdline.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 87c20dbfe..910f1cd50 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.4.10.28" +VERSION = "1.4.11.0" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/lib/parse/cmdline.py b/lib/parse/cmdline.py index 10d98e148..b22e541c4 100644 --- a/lib/parse/cmdline.py +++ b/lib/parse/cmdline.py @@ -806,9 +806,6 @@ def cmdLineParser(argv=None): parser.add_argument("--smoke-test", dest="smokeTest", action="store_true", help=SUPPRESS) - parser.add_argument("--stdin-pipe", dest="stdinPipe", - help=SUPPRESS) - parser.add_argument("--vuln-test", dest="vulnTest", action="store_true", help=SUPPRESS) @@ -1043,6 +1040,8 @@ def cmdLineParser(argv=None): if hasattr(sys.stdin, "fileno") and not os.isatty(sys.stdin.fileno()) and '-' not in sys.argv: args.stdinPipe = iter(sys.stdin.readline, None) + else: + args.stdinPipe = None if not any((args.direct, args.url, args.logFile, args.bulkFile, args.googleDork, args.configFile, args.requestFile, args.updateAll, args.smokeTest, args.vulnTest, args.bedTest, args.fuzzTest, args.wizard, args.dependencies, args.purge, args.listTampers, args.hashFile, args.stdinPipe)): errMsg = "missing a mandatory option (-d, -u, -l, -m, -r, -g, -c, --list-tampers, --wizard, --update, --purge or --dependencies). "