From c83d417298a239f7ad55d0b4e25376b3305a9e47 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 5 Oct 2016 23:02:20 +0200 Subject: [PATCH] Fixes #2212 --- lib/core/common.py | 10 +++++----- lib/core/settings.py | 2 +- txt/checksum.md5 | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index 47cbbd88c..119ec8ac2 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -885,12 +885,12 @@ def dataToStdout(data, forceOutput=False, bold=False, content_type=None, status= else: message = data - if hasattr(conf, "api"): - sys.stdout.write(message, status, content_type) - else: - sys.stdout.write(setColor(message, bold)) - try: + if hasattr(conf, "api"): + sys.stdout.write(message, status, content_type) + else: + sys.stdout.write(setColor(message, bold)) + sys.stdout.flush() except IOError: pass diff --git a/lib/core/settings.py b/lib/core/settings.py index 4c40b71b6..8b92a9e75 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -20,7 +20,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version (...) -VERSION = "1.0.10.15" +VERSION = "1.0.10.16" REVISION = getRevisionNumber() TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} diff --git a/txt/checksum.md5 b/txt/checksum.md5 index a1d9674a3..f3c03f1a2 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -26,7 +26,7 @@ f15544a4c9c365ae8f2f8fa2e3a69aa5 lib/controller/checks.py cc9c82cfffd8ee9b25ba3af6284f057e lib/controller/__init__.py 04f16204c899438dc7599a9a8426bfee lib/core/agent.py eb0bd28b0bd9fbf67dcc3119116df377 lib/core/bigarray.py -e8f1325ebcd7c7c823c53fead7c02b1d lib/core/common.py +c5aebf5a8a28af6290c45d403f4a1ac8 lib/core/common.py 5680d0c446a3bed5c0f2a0402d031557 lib/core/convert.py e77cca1cb063016f71f6e6bdebf4ec73 lib/core/data.py 1d042f0bc0557d3fd564ea5a46deb77e lib/core/datatype.py @@ -45,7 +45,7 @@ e60456db5380840a586654344003d4e6 lib/core/readlineng.py 5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py 99a2b496b9d5b546b335653ca801153f lib/core/revision.py 7c15dd2777af4dac2c89cab6df17462e lib/core/session.py -3905165d1e329ecf816e73ab278317e7 lib/core/settings.py +a3a07da9c74b3aa25aca23b00abfbe71 lib/core/settings.py 7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py 23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py c3ace7874a536d801f308cf1fd03df99 lib/core/target.py