diff --git a/lib/core/common.py b/lib/core/common.py index ef1259785..3ed1975f8 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -543,6 +543,7 @@ def setPaths(): paths.SQLMAP_HISTORY = os.path.join(paths.SQLMAP_ROOT_PATH, ".sqlmap_history") paths.SQLMAP_CONFIG = os.path.join(paths.SQLMAP_ROOT_PATH, "sqlmap-%s.conf" % randomStr()) paths.FUZZ_VECTORS = os.path.join(paths.SQLMAP_TXT_PATH, "fuzz_vectors.txt") + paths.DETECTION_RULES_XML = os.path.join(paths.SQLMAP_XML_PATH, "detection.xml") paths.ERRORS_XML = os.path.join(paths.SQLMAP_XML_PATH, "errors.xml") paths.QUERIES_XML = os.path.join(paths.SQLMAP_XML_PATH, "queries.xml") paths.GENERIC_XML = os.path.join(paths.SQLMAP_XML_BANNER_PATH, "generic.xml") diff --git a/lib/utils/detection.py b/lib/utils/detection.py index 50d601c65..fc9ee211e 100644 --- a/lib/utils/detection.py +++ b/lib/utils/detection.py @@ -24,7 +24,6 @@ Franklin St, Fifth Floor, Boston, MA 02110-1301 USA import re, sre_constants from xml.dom import minidom -from lib.core.data import conf from lib.core.data import paths from lib.core.data import logger diff --git a/xml/detection_rules.xml b/xml/detection.xml similarity index 100% rename from xml/detection_rules.xml rename to xml/detection.xml