mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
minor update
This commit is contained in:
parent
058e1aecb4
commit
cf73d9c799
13
tamper/randomblanks.py
Normal file
13
tamper/randomblanks.py
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
import re
|
||||||
|
import string
|
||||||
|
|
||||||
|
from lib.core.common import randomRange
|
||||||
|
from lib.core.exception import sqlmapUnsupportedFeatureException
|
||||||
|
|
||||||
|
"""
|
||||||
|
value -> value with inserted random blanks (e.g., INSERT->IN/**/S/**/ERT)
|
||||||
|
"""
|
||||||
|
#TODO: all
|
||||||
|
#TODO: only do it for deepness = 0 regarding '"
|
||||||
|
def tamper(place, value):
|
||||||
|
return value
|
|
@ -7,6 +7,7 @@ from lib.core.exception import sqlmapUnsupportedFeatureException
|
||||||
"""
|
"""
|
||||||
value -> chars from value with random case (e.g., INSERT->InsERt)
|
value -> chars from value with random case (e.g., INSERT->InsERt)
|
||||||
"""
|
"""
|
||||||
|
#TODO: only do it for deepness = 0 regarding '"
|
||||||
def tamper(place, value):
|
def tamper(place, value):
|
||||||
retVal = value
|
retVal = value
|
||||||
if value:
|
if value:
|
||||||
|
|
|
@ -6,6 +6,7 @@ from lib.core.convert import urlencode
|
||||||
"""
|
"""
|
||||||
' ' -> /**/ (e.g., SELECT id FROM users->SELECT/**/id/**/FROM users)
|
' ' -> /**/ (e.g., SELECT id FROM users->SELECT/**/id/**/FROM users)
|
||||||
"""
|
"""
|
||||||
|
#TODO: only do it for deepness = 0 regarding '"
|
||||||
def tamper(place, value):
|
def tamper(place, value):
|
||||||
if value:
|
if value:
|
||||||
if place != "URI":
|
if place != "URI":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user