diff --git a/lib/controller/handler.py b/lib/controller/handler.py index eb5fce696..1234478e9 100644 --- a/lib/controller/handler.py +++ b/lib/controller/handler.py @@ -8,7 +8,6 @@ See the file 'doc/COPYING' for copying permission from lib.core.common import Backend from lib.core.data import conf from lib.core.data import kb -from lib.core.data import logger from lib.core.dicts import DBMS_DICT from lib.core.enums import DBMS from lib.core.settings import MSSQL_ALIASES diff --git a/lib/core/settings.py b/lib/core/settings.py index 1edf648e0..2770d440d 100755 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME from lib.core.enums import OS # sqlmap version (...) -VERSION = "1.1.4.24" +VERSION = "1.1.4.25" 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/threads.py b/lib/core/threads.py index 67d428000..c1349ace1 100644 --- a/lib/core/threads.py +++ b/lib/core/threads.py @@ -7,7 +7,6 @@ See the file 'doc/COPYING' for copying permission import difflib import random -import thread import threading import time import traceback @@ -151,7 +150,7 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio try: thread.start() - except thread.error, ex: + except Exception, ex: errMsg = "error occurred while starting new thread ('%s')" % ex.message logger.critical(errMsg) break @@ -208,7 +207,7 @@ def runThreads(numThreads, threadFunction, cleanupFunction=None, forwardExceptio if lock.locked(): try: lock.release() - except thread.error: + except: pass if conf.get("hashDB"): diff --git a/plugins/dbms/firebird/fingerprint.py b/plugins/dbms/firebird/fingerprint.py index b673d1c43..7b7b6c557 100644 --- a/plugins/dbms/firebird/fingerprint.py +++ b/plugins/dbms/firebird/fingerprint.py @@ -18,7 +18,6 @@ from lib.core.enums import DBMS from lib.core.session import setDbms from lib.core.settings import FIREBIRD_ALIASES from lib.core.settings import METADB_SUFFIX -from lib.core.settings import UNKNOWN_DBMS_VERSION from lib.request import inject from plugins.generic.fingerprint import Fingerprint as GenericFingerprint diff --git a/plugins/dbms/hsqldb/enumeration.py b/plugins/dbms/hsqldb/enumeration.py index d0ea09997..0dda3e52f 100644 --- a/plugins/dbms/hsqldb/enumeration.py +++ b/plugins/dbms/hsqldb/enumeration.py @@ -10,7 +10,6 @@ from lib.core.data import conf from lib.core.data import kb from lib.core.data import logger from lib.core.data import queries -from lib.core.common import Backend from lib.core.common import unArrayizeValue from lib.core.enums import DBMS from lib.core.settings import HSQLDB_DEFAULT_SCHEMA diff --git a/plugins/dbms/hsqldb/fingerprint.py b/plugins/dbms/hsqldb/fingerprint.py index e2ad5ce90..693b80dfb 100644 --- a/plugins/dbms/hsqldb/fingerprint.py +++ b/plugins/dbms/hsqldb/fingerprint.py @@ -16,7 +16,6 @@ from lib.core.data import logger from lib.core.enums import DBMS from lib.core.session import setDbms from lib.core.settings import HSQLDB_ALIASES -from lib.core.settings import UNKNOWN_DBMS_VERSION from lib.request import inject from plugins.generic.fingerprint import Fingerprint as GenericFingerprint diff --git a/plugins/dbms/maxdb/enumeration.py b/plugins/dbms/maxdb/enumeration.py index dd42e4b34..e2ce3a1f7 100644 --- a/plugins/dbms/maxdb/enumeration.py +++ b/plugins/dbms/maxdb/enumeration.py @@ -5,7 +5,6 @@ Copyright (c) 2006-2017 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ -from lib.core.common import Backend from lib.core.common import randomStr from lib.core.common import readInput from lib.core.common import safeSQLIdentificatorNaming diff --git a/plugins/dbms/mssqlserver/enumeration.py b/plugins/dbms/mssqlserver/enumeration.py index f9c01d75a..6698a90a0 100644 --- a/plugins/dbms/mssqlserver/enumeration.py +++ b/plugins/dbms/mssqlserver/enumeration.py @@ -7,7 +7,6 @@ See the file 'doc/COPYING' for copying permission from lib.core.agent import agent from lib.core.common import arrayizeValue -from lib.core.common import Backend from lib.core.common import getLimitRange from lib.core.common import isInferenceAvailable from lib.core.common import isNoneValue diff --git a/plugins/dbms/mysql/fingerprint.py b/plugins/dbms/mysql/fingerprint.py index 4b7d5fcbe..b094a4fc8 100644 --- a/plugins/dbms/mysql/fingerprint.py +++ b/plugins/dbms/mysql/fingerprint.py @@ -20,7 +20,6 @@ from lib.core.enums import HASHDB_KEYS from lib.core.enums import OS from lib.core.session import setDbms from lib.core.settings import MYSQL_ALIASES -from lib.core.settings import UNKNOWN_DBMS_VERSION from lib.request import inject from plugins.generic.fingerprint import Fingerprint as GenericFingerprint diff --git a/plugins/dbms/oracle/enumeration.py b/plugins/dbms/oracle/enumeration.py index a1f2b940a..bb4d7bd1c 100644 --- a/plugins/dbms/oracle/enumeration.py +++ b/plugins/dbms/oracle/enumeration.py @@ -5,7 +5,6 @@ Copyright (c) 2006-2017 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ -from lib.core.common import Backend from lib.core.common import getLimitRange from lib.core.common import isAdminFromPrivileges from lib.core.common import isInferenceAvailable diff --git a/plugins/dbms/sybase/enumeration.py b/plugins/dbms/sybase/enumeration.py index f0bb7bce6..5aa0eb3e7 100644 --- a/plugins/dbms/sybase/enumeration.py +++ b/plugins/dbms/sybase/enumeration.py @@ -5,7 +5,6 @@ Copyright (c) 2006-2017 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ -from lib.core.common import Backend from lib.core.common import filterPairValues from lib.core.common import isTechniqueAvailable from lib.core.common import randomStr diff --git a/txt/checksum.md5 b/txt/checksum.md5 index 38bac4b1c..3185c347a 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -22,7 +22,7 @@ c55b400b72acc43e0e59c87dd8bb8d75 extra/shellcodeexec/windows/shellcodeexec.x32. 5df358defc488bee9b40084892e3d1cb lib/controller/action.py 9cb94acd4c59822a5e1a258c4d1a4860 lib/controller/checks.py 8bf4fde39867b94600f61dc7fddcf3b0 lib/controller/controller.py -d79481ab99acd739615e747d4a79d9d0 lib/controller/handler.py +52a3969f57170e935e3fc0156335bf2c lib/controller/handler.py 310efc965c862cfbd7b0da5150a5ad36 lib/controller/__init__.py 5c4cddb0016d02a57bd1b05b3fc60c54 lib/core/agent.py 6cc95a117fbd34ef31b9aa25520f0e31 lib/core/bigarray.py @@ -45,12 +45,12 @@ dd19b4d930d418f8aef498941346ab2d lib/core/option.py d8e9250f3775119df07e9070eddccd16 lib/core/replication.py 785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py 40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py -c6ecd382fa5a3e8de450e55aa92c8b84 lib/core/settings.py +9a61b162d66a2e5716edfef7c7222834 lib/core/settings.py d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py 2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py 2571146b71f487a3d11867746c033e40 lib/core/target.py 8970b88627902239d695280b1160e16c lib/core/testing.py -5521241c750855a4e44747fbac7771c6 lib/core/threads.py +ccea8b6dd69f3012b1262659bb4018d3 lib/core/threads.py ad74fc58fc7214802fd27067bce18dd2 lib/core/unescaper.py 1f1fa616b5b19308d78c610ec8046399 lib/core/update.py 4d13ed693401a498b6d073a2a494bd83 lib/core/wordlist.py @@ -132,14 +132,14 @@ ce8bc86383f2ade41e08f2dbee1844bf plugins/dbms/db2/syntax.py b8dcd6e97166f58ee452e68c46bfe2c4 plugins/dbms/firebird/connector.py 147afe5f4a3d09548a8a1dbc954fe29e plugins/dbms/firebird/enumeration.py 4e421504f59861bf1ed1a89abda583d1 plugins/dbms/firebird/filesystem.py -bbd239cd27b35c2fbd29443f0af5d973 plugins/dbms/firebird/fingerprint.py +d5d19126fec00967932dc75fe7880d6d plugins/dbms/firebird/fingerprint.py f86ace7fcaea5ff3f9e86ab2dce052c5 plugins/dbms/firebird/__init__.py 04f7c2977ab5198c6f4aa6233b872ae0 plugins/dbms/firebird/syntax.py 1cb1ab93e4b8c97e81586acfe4d030a2 plugins/dbms/firebird/takeover.py 3a97bd07cce66bc812309341e7b54697 plugins/dbms/hsqldb/connector.py -015281fb8f96dbade0d2e30fc8da9c4c plugins/dbms/hsqldb/enumeration.py +6d76854ebce4cad900b47a124a1867a9 plugins/dbms/hsqldb/enumeration.py c0b14e62e1ecbb679569a1abb9cf1913 plugins/dbms/hsqldb/filesystem.py -ad3090f3212a007274e016c3af90dddf plugins/dbms/hsqldb/fingerprint.py +cf5681143cd900fdf198ecd574842ecb plugins/dbms/hsqldb/fingerprint.py 0b18e3cf582b128cf9f16ee34ef85727 plugins/dbms/hsqldb/__init__.py 65e8f8edc9d18fe482deb474a29f83ff plugins/dbms/hsqldb/syntax.py 0a1584e2b01f33abe3ef91d99bafbd3f plugins/dbms/hsqldb/takeover.py @@ -152,14 +152,14 @@ f06d263b2c9b52ea7a120593eb5806c4 plugins/dbms/informix/fingerprint.py 744fb5044f2b9f9d5ebda6e3f08e3be7 plugins/dbms/informix/takeover.py 310efc965c862cfbd7b0da5150a5ad36 plugins/dbms/__init__.py e50b624ff23c3e180d80e065deb1763f plugins/dbms/maxdb/connector.py -cbd90f22ce862409fe392e65f0ea94ac plugins/dbms/maxdb/enumeration.py +870992420d5faadb28c5ba45f5c3904c plugins/dbms/maxdb/enumeration.py 815ea8e7b9bd714d73d9d6c454aff774 plugins/dbms/maxdb/filesystem.py 017c723354eff28188773670d3837c01 plugins/dbms/maxdb/fingerprint.py c03001c1f70e76de39d26241dfcbd033 plugins/dbms/maxdb/__init__.py e6036f5b2e39aec37ba036a8cf0efd6f plugins/dbms/maxdb/syntax.py 0be362015605e26551e5d79cc83ed466 plugins/dbms/maxdb/takeover.py e3e78fab9b5eb97867699f0b20e59b62 plugins/dbms/mssqlserver/connector.py -a7ed0510e47384eaf93164d53e2b6b36 plugins/dbms/mssqlserver/enumeration.py +16daf973fc7a988c3bf52435b759ff4e plugins/dbms/mssqlserver/enumeration.py 8554437c437052c30237be170ba8ce3a plugins/dbms/mssqlserver/filesystem.py 13cb15e8abfb05818e6f66c687b78664 plugins/dbms/mssqlserver/fingerprint.py 40bd890988f9acd3942255d687445371 plugins/dbms/mssqlserver/__init__.py @@ -168,12 +168,12 @@ a7ed0510e47384eaf93164d53e2b6b36 plugins/dbms/mssqlserver/enumeration.py 48fb283a0dbf980495ca054f7b55783f plugins/dbms/mysql/connector.py 7fe94b803fa273baf479b76ce7a3fb51 plugins/dbms/mysql/enumeration.py 1bd5e659962e814b66a451b807de9110 plugins/dbms/mysql/filesystem.py -5947eb45c33e183c61efc3e41a232c00 plugins/dbms/mysql/fingerprint.py +e43fda42decf2a70bad470b884674fbe plugins/dbms/mysql/fingerprint.py 42568a66a13a43ed46748290c503a652 plugins/dbms/mysql/__init__.py 96dfafcc4aecc1c574148ac05dbdb6da plugins/dbms/mysql/syntax.py 33b2dc28075ab560fd8a4dc898682a0d plugins/dbms/mysql/takeover.py ea4b9cd238075b79945bd2607810934a plugins/dbms/oracle/connector.py -3a08ef0037de6df9f9a92ec5b126d705 plugins/dbms/oracle/enumeration.py +6b98e1e040f95ed0bccd257ca8f8b59a plugins/dbms/oracle/enumeration.py dc5962a1d4d69d4206b6c03e00e7f33d plugins/dbms/oracle/filesystem.py 525381f48505095b14e567c1f59ca9c7 plugins/dbms/oracle/fingerprint.py 25a99a9dd7072b6b7346438599c78050 plugins/dbms/oracle/__init__.py @@ -194,7 +194,7 @@ ee430d142fa8f9ee571578d0a0916679 plugins/dbms/sqlite/fingerprint.py 4827722159a89652005f49265bb55c43 plugins/dbms/sqlite/syntax.py 02ab8ff465da9dd31ffe6a963c676180 plugins/dbms/sqlite/takeover.py e3e78fab9b5eb97867699f0b20e59b62 plugins/dbms/sybase/connector.py -a7f4d3a194f52fbb4fb4488be41273b1 plugins/dbms/sybase/enumeration.py +d1e09dd970bcf3f06b400227b85fe4c5 plugins/dbms/sybase/enumeration.py 62d772c7cd08275e3503304ba90c4e8a plugins/dbms/sybase/filesystem.py deed74334b637767fc9de8f74b37647a plugins/dbms/sybase/fingerprint.py 45436a42c2bb8075e1482a950d993d55 plugins/dbms/sybase/__init__.py @@ -429,7 +429,7 @@ d4fbb2af37ad3ade3118668f2b516693 waf/requestvalidationmode.py c1062e5c165cdaeca51113e60973afb2 waf/sophos.py e909c359a9181e64271e6c7c8347fe15 waf/stingray.py 33f3bdac403519a1f96fb9015680c575 waf/sucuri.py -507f7c1019afd1c45c76bbcd179ddfe9 waf/tencent.py +c863940e74f8ecab70a80bb62548b130 waf/tencent.py 3de96df7edeae2f21ba7b9d77c90f4d6 waf/teros.py d428df1e83a6fac9d8dbc90d6b5dab20 waf/trafficshield.py 385c84908b482c7f0fe93262ab5320fa waf/urlscan.py diff --git a/waf/tencent.py b/waf/tencent.py index c2f8ca909..1efcad0f0 100644 --- a/waf/tencent.py +++ b/waf/tencent.py @@ -5,8 +5,6 @@ Copyright (c) 2006-2017 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ -import re - from lib.core.settings import WAF_ATTACK_VECTORS __product__ = "Tencent Cloud Web Application Firewall (Tencent Cloud Computing)"