From e47f873fa4429c05aa3c8e48f95c62b637d94340 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Mon, 11 Jul 2011 09:49:03 +0000 Subject: [PATCH] Renamed space2extrarandomblank.py to space2mysqlblank.py --- ...space2extrarandomblank.py => space2mysqlblank.py} | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename tamper/{space2extrarandomblank.py => space2mysqlblank.py} (84%) diff --git a/tamper/space2extrarandomblank.py b/tamper/space2mysqlblank.py similarity index 84% rename from tamper/space2extrarandomblank.py rename to tamper/space2mysqlblank.py index ae5fd54db..3e56362ae 100644 --- a/tamper/space2extrarandomblank.py +++ b/tamper/space2mysqlblank.py @@ -39,11 +39,11 @@ def tamper(payload): """ # ASCII table: - # \t 09 horizontal TAB - # \n 0A new line - # - 0C new page - # \r 0D carriage return - # - 0B vertical TAB (MySQL only) + # TAB 09 horizontal TAB + # LF 0A new line + # FF 0C new page + # CR 0D carriage return + # VT 0B vertical TAB (MySQL and Microsoft SQL Server only) # - A0 - (MySQL only) blanks = ['%09', '%0A', '%0C', '%0D', '%0B', '%A0'] retVal = payload @@ -65,7 +65,7 @@ def tamper(payload): elif payload[i] == '"': doublequote = not doublequote - elif payload[i]==" " and not doublequote and not quote: + elif payload[i] == " " and not doublequote and not quote: retVal += random.choice(blanks) continue