added highlighting to code snippet

This commit is contained in:
Bernardo Damele 2012-07-15 01:33:19 +01:00
parent c05ee0eeb2
commit 66248cdf4f

View File

@ -838,13 +838,15 @@ To take advantage of this switch, provide sqlmap with a comma-separated list of
The format of a valid tamper script is as follows:
# Needed imports
from lib.core.enums import PRIORITY
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ {.python}
# Needed imports
from lib.core.enums import PRIORITY
# Define which is the order of application of tamper scripts against the payload
__priority__ = PRIORITY.NORMAL
# Define which is the order of application of tamper scripts against
# the payload
__priority__ = PRIORITY.NORMAL
def tamper(payload):
def tamper(payload):
'''
Description of your tamper script
'''
@ -855,6 +857,7 @@ The format of a valid tamper script is as follows:
# return the tampered payload
return retVal
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can check valid and usable tamper scripts in the `tamper/` directory.