From 252eb97198dab6914088e5bb1f370092626bd615 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 12 Mar 2016 19:28:28 +0100 Subject: [PATCH] Patch related to the #1755 --- lib/core/settings.py | 2 +- sqlmap.py | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 8b8e8e7a2..3d762a1fd 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 and site -VERSION = "1.0.0.19" +VERSION = "1.0.0.20" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev") diff --git a/sqlmap.py b/sqlmap.py index 6b474b038..c61114df9 100755 --- a/sqlmap.py +++ b/sqlmap.py @@ -5,6 +5,12 @@ Copyright (c) 2006-2016 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ +import sys + +sys.dont_write_bytecode = True + +from lib.utils import versioncheck # this has to be the first non-standard import + import bdb import inspect import logging @@ -17,13 +23,9 @@ import time import traceback import warnings -sys.dont_write_bytecode = True - warnings.filterwarnings(action="ignore", message=".*was already imported", category=UserWarning) warnings.filterwarnings(action="ignore", category=DeprecationWarning) -from lib.utils import versioncheck # this has to be the first non-standard import - from lib.controller.controller import start from lib.core.common import banner from lib.core.common import createGithubIssue