diff --git a/data/xml/payloads/customized.xml b/data/xml/payloads/customized.xml new file mode 100644 index 000000000..39eec7da1 --- /dev/null +++ b/data/xml/payloads/customized.xml @@ -0,0 +1,176 @@ + + + + + + + Testing Customized Payload + 7 + 1 + 1 + 1,2,3,4,5 + 1 + [UNION] + + + [GENERIC_SQL_COMMENT] + NULL + 1-10 + + + + + + + diff --git a/lib/core/enums.py b/lib/core/enums.py index 36784c999..c7bb5f3ad 100644 --- a/lib/core/enums.py +++ b/lib/core/enums.py @@ -294,6 +294,7 @@ class PAYLOAD(object): 4: "stacked queries", 5: "time-based blind", 6: "UNION query", + 7: "Customized" } PARAMETER = { @@ -338,6 +339,7 @@ class PAYLOAD(object): STACKED = 4 TIME = 5 UNION = 6 + CUSTOM = 7 class WHERE(object): ORIGINAL = 1 diff --git a/lib/core/settings.py b/lib/core/settings.py index ba685d0ac..c36d0018e 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -837,7 +837,7 @@ SUHOSIN_MAX_VALUE_LENGTH = 512 MIN_BINARY_DISK_DUMP_SIZE = 100 # Filenames of payloads xml files (in order of loading) -PAYLOAD_XML_FILES = ("boolean_blind.xml", "error_based.xml", "inline_query.xml", "stacked_queries.xml", "time_blind.xml", "union_query.xml") +PAYLOAD_XML_FILES = ("boolean_blind.xml", "error_based.xml", "inline_query.xml", "stacked_queries.xml", "time_blind.xml", "union_query.xml", "customized.xml") # Regular expression used for extracting form tags FORM_SEARCH_REGEX = r"(?si)"