Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 058e1ae

Browse files
committed
minor update
1 parent 7e1f784 commit 058e1ae

6 files changed

Lines changed: 5 additions & 13 deletions

File tree

tamper/charencode.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import re
22
import string
33

4-
from lib.core.convert import urlencode
54
from lib.core.exception import sqlmapUnsupportedFeatureException
65

76
"""
8-
value -> urlencode of nonencoded chars in value
7+
value -> urlencode of nonencoded chars in value (e.g., SELECT%20FIELD%20FROM%20TABLE -> %53%45%4c%45%43%54%20%46%49%45%4c%44%20%46%52%4f%4d%20%54%41%42%4c%45)
98
"""
109
def tamper(place, value):
1110
retVal = value

tamper/doubleencode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from lib.core.exception import sqlmapUnsupportedFeatureException
55

66
"""
7-
Tampering value -> urlencode(value)
7+
Tampering value -> urlencode(value) (e.g., SELECT%20FIELD%20FROM%20TABLE -> SELECT%25%20FIELD%25%20FROM%25%20TABLE)
88
"""
99
def tamper(place, value):
1010
if value:

tamper/dummy.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

tamper/ifnull2ifisnull.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from lib.core.convert import urlencode
55

66
"""
7-
IFNULL(A,B) -> IF(ISNULL(A),B,A)
7+
IFNULL(A,B) -> IF(ISNULL(A),B,A) (e.g., IFNULL(1,2) -> IF(ISNULL(1),2,1))
88
"""
99
def tamper(place, value):
1010
if value and value.find("IFNULL") > -1:

tamper/randomcase.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import re
22
import string
33

4-
from lib.core.convert import urlencode
54
from lib.core.common import randomRange
65
from lib.core.exception import sqlmapUnsupportedFeatureException
76

87
"""
9-
value -> chars from value with random case
8+
value -> chars from value with random case (e.g., INSERT->InsERt)
109
"""
1110
def tamper(place, value):
1211
retVal = value

tamper/space2comment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from lib.core.convert import urlencode
55

66
"""
7-
' ' -> /**/
7+
' ' -> /**/ (e.g., SELECT id FROM users->SELECT/**/id/**/FROM users)
88
"""
99
def tamper(place, value):
1010
if value:

0 commit comments

Comments
 (0)