diff --git a/tamper/space2morepound.py b/tamper/space2morepound.py index 63a8003e4..a94d80ab6 100644 --- a/tamper/space2morepound.py +++ b/tamper/space2morepound.py @@ -63,7 +63,7 @@ def tamper(payload): randomStr = ''.join(random.choice(string.ascii_uppercase + string.lowercase) for x in range(random.randint(6, 12))) retVal += "%%23%s%%0A" % randomStr elif payload[i] == '#' or payload[i:i+3] == '-- ': - retVal += payload[i] + retVal += payload[i:] break else: retVal += payload[i] diff --git a/tamper/space2pound.py b/tamper/space2pound.py index bd0d25612..b717b2e58 100644 --- a/tamper/space2pound.py +++ b/tamper/space2pound.py @@ -49,7 +49,7 @@ def tamper(payload): randomStr = ''.join(random.choice(string.ascii_uppercase + string.lowercase) for x in range(random.randint(6, 12))) retVal += "%%23%s%%0A" % randomStr elif payload[i] == '#' or payload[i:i+3] == '-- ': - retVal += payload[i] + retVal += payload[i:] break else: retVal += payload[i]