Skip to content

Commit 90b444c

Browse files
committed
Minor adjustments
1 parent 99f07b6 commit 90b444c

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

lib/core/settings.py

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

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

lib/core/testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def vulnTest():
3939

4040
TESTS = (
4141
("-h", ("to see full list of options run with '-hh'",)),
42-
("--dependencies --deprecations", ("sqlmap requires", "third-party library", "~DeprecationWarning:")),
42+
("--dependencies", ("sqlmap requires", "third-party library")),
4343
("-u <url> --data=\"reflect=1\" --flush-session --wizard --disable-coloring", ("Please choose:", "back-end DBMS: SQLite", "current user is DBA: True", "banner: '3.")),
4444
("-u <url> --data=\"code=1\" --code=200 --technique=B --banner --no-cast --flush-session", ("back-end DBMS: SQLite", "banner: '3.", "~COALESCE(CAST(")),
4545
(u"-c <config> --flush-session --output-dir=\"<tmpdir>\" --smart --roles --statements --hostname --privileges --sql-query=\"SELECT '\u0161u\u0107uraj'\" --technique=U", (u": '\u0161u\u0107uraj'", "on SQLite it is not possible", "as the output directory")),

sqlmap.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,17 @@
3232
import traceback
3333
import warnings
3434

35+
if "--deprecations" not in sys.argv:
36+
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
37+
else:
38+
warnings.resetwarnings()
39+
3540
warnings.filterwarnings(action="ignore", message="Python 2 is no longer supported")
3641
warnings.filterwarnings(action="ignore", message=".*was already imported", category=UserWarning)
3742
warnings.filterwarnings(action="ignore", message=".*using a very old release", category=UserWarning)
3843
warnings.filterwarnings(action="ignore", message=".*default buffer size will be used", category=RuntimeWarning)
3944
warnings.filterwarnings(action="ignore", category=UserWarning, module="psycopg2")
4045

41-
if "--deprecations" not in sys.argv:
42-
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
43-
4446
from lib.core.data import logger
4547

4648
from lib.core.common import banner

0 commit comments

Comments
 (0)