From 120d6a4a7c0f57f6b840a639cf19f04698b078c4 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 13 Oct 2010 20:59:06 +0000 Subject: [PATCH] update --- tamper/charencode.py | 3 +-- tamper/doubleencode.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tamper/charencode.py b/tamper/charencode.py index cf522e820..f58830f93 100644 --- a/tamper/charencode.py +++ b/tamper/charencode.py @@ -8,7 +8,6 @@ from lib.core.exception import sqlmapUnsupportedFeatureException value -> urlencode of nonencoded chars in value """ def tamper(place, value): - raise sqlmapUnsupportedFeatureException, "can't use tampering module 'charencode.py' with 'URI' type injections" retVal = value if value: if place != "URI": @@ -22,5 +21,5 @@ def tamper(place, value): retVal += '%%%X' % ord(value[i]) i += 1 else: - raise sqlmapUnsupportedFeatureException, "can't use tampering module 'charencode.py' with 'URI' type injections" + raise sqlmapUnsupportedFeatureException, "can't use tampering module '%s' with 'URI' type injections" % __name__ return retVal diff --git a/tamper/doubleencode.py b/tamper/doubleencode.py index 04597e6e8..6b88c5489 100644 --- a/tamper/doubleencode.py +++ b/tamper/doubleencode.py @@ -11,5 +11,5 @@ def tamper(place, value): if place != "URI": value = urlencode(value) else: - raise sqlmapUnsupportedFeatureException, "can't use tampering module 'doubleencode.py' with 'URI' type injections" + raise sqlmapUnsupportedFeatureException, "can't use tampering module '%s' with 'URI' type injections" % __name__ return value