Skip to content

Commit 3c9f55b

Browse files
committed
Dirty patch for #4920
1 parent 7d5883f commit 3c9f55b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/core/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.5.12.6"
23+
VERSION = "1.5.12.7"
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

+4-1
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,9 @@ def cmdLineParser(argv=None):
815815
parser.add_argument("--force-pivoting", dest="forcePivoting", action="store_true",
816816
help=SUPPRESS)
817817

818+
parser.add_argument("--ignore-stdin", dest="ignoreStdin", action="store_true",
819+
help=SUPPRESS)
820+
818821
parser.add_argument("--non-interactive", dest="nonInteractive", action="store_true",
819822
help=SUPPRESS)
820823

@@ -1060,7 +1063,7 @@ def _format_action_invocation(self, action):
10601063
if args.dummy:
10611064
args.url = args.url or DUMMY_URL
10621065

1063-
if hasattr(sys.stdin, "fileno") and not any((os.isatty(sys.stdin.fileno()), args.api, "GITHUB_ACTIONS" in os.environ)):
1066+
if hasattr(sys.stdin, "fileno") and not any((os.isatty(sys.stdin.fileno()), args.api, args.ignoreStdin, "GITHUB_ACTIONS" in os.environ)):
10641067
args.stdinPipe = iter(sys.stdin.readline, None)
10651068
else:
10661069
args.stdinPipe = None

0 commit comments

Comments
 (0)