diff --git a/lib/core/option.py b/lib/core/option.py index 1c05b253d..1ef78a367 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -430,7 +430,11 @@ def _setStdinPipeTargets(): return self.next() def next(self): - line = next(conf.stdinPipe) + try: + line = next(conf.stdinPipe) + except (IOError, OSError): + line = None + if line: match = re.search(r"\b(https?://[^\s'\"]+|[\w.]+\.\w{2,3}[/\w+]*\?[^\s'\"]+)", line, re.I) if match: diff --git a/lib/core/settings.py b/lib/core/settings.py index a476190c7..160a52fa1 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.12.41" +VERSION = "1.4.12.42" 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)