minor fixes pointed by RS

This commit is contained in:
Miroslav Stampar 2011-07-11 09:08:24 +00:00
parent f5e45bf113
commit 7a6bddf811
2 changed files with 6 additions and 0 deletions

View File

@ -62,6 +62,9 @@ def tamper(payload):
if payload[i].isspace():
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]
break
else:
retVal += payload[i]

View File

@ -48,6 +48,9 @@ def tamper(payload):
if payload[i].isspace():
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]
break
else:
retVal += payload[i]