From 7878c22cd2af10619ad033977a7c9b6e5aa74e9d Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 30 Sep 2021 08:36:59 +0200 Subject: [PATCH] Minor refactoring --- lib/core/settings.py | 2 +- lib/core/testing.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index a55b327e4..5fc82cbd0 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -20,7 +20,7 @@ from thirdparty import six from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.5.9.29" +VERSION = "1.5.9.30" 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/core/testing.py b/lib/core/testing.py index 31fd2cd8a..e766dea7b 100644 --- a/lib/core/testing.py +++ b/lib/core/testing.py @@ -87,9 +87,10 @@ def vulnTest(): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) if s.connect_ex((address, port)): break + else: + time.sleep(1) finally: s.close() - time.sleep(1) def _thread(): vulnserver.init(quiet=True)