mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-01-07 23:29:03 +00:00
added --tamper option
This commit is contained in:
0
tamper/__init__.py
Normal file
0
tamper/__init__.py
Normal file
6
tamper/dummy.py
Normal file
6
tamper/dummy.py
Normal file
@@ -0,0 +1,6 @@
|
||||
def tamper(place, value):
|
||||
print "Hi, World!"
|
||||
print value
|
||||
if place=="GET" and value:
|
||||
value=value.upper()
|
||||
return value
|
||||
11
tamper/ifnull2ifisnull.py
Normal file
11
tamper/ifnull2ifisnull.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import re
|
||||
|
||||
#not finished (watch for number of parenthesis)
|
||||
#IFNULL(A,B) -> IF(ISNULL(A),B,A)
|
||||
def tamper(place, value):
|
||||
if value:
|
||||
if value.find("IFNULL") > -1:
|
||||
import pdb
|
||||
pdb.set_trace()
|
||||
value = re.sub(r"IFNULL(\(|%28)(?P<A>.+?)(,|%2C)(?P<B>.+?)(\)|%29)", lambda match: "IF%%28ISNULL%%28%s%%29%%2C%s%%2C%s%%29" % ("A="+match.group("A"), "B="+match.group("B"), "A="+match.group("A")), value)
|
||||
return value
|
||||
Reference in New Issue
Block a user