Skip to content

Commit 2cf2dd9

Browse files
committed
Fixes #4502
1 parent 82e28e0 commit 2cf2dd9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/core/option.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,11 @@ def __next__(self):
430430
return self.next()
431431

432432
def next(self):
433-
line = next(conf.stdinPipe)
433+
try:
434+
line = next(conf.stdinPipe)
435+
except (IOError, OSError):
436+
line = None
437+
434438
if line:
435439
match = re.search(r"\b(https?://[^\s'\"]+|[\w.]+\.\w{2,3}[/\w+]*\?[^\s'\"]+)", line, re.I)
436440
if match:

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

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

0 commit comments

Comments
 (0)