From 66248cdf4fb25b0d9a3d535e7de8c9997ac42341 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Sun, 15 Jul 2012 01:33:19 +0100 Subject: [PATCH] added highlighting to code snippet --- Users-manual.md | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/Users-manual.md b/Users-manual.md index 76924f2..cafb6ec 100644 --- a/Users-manual.md +++ b/Users-manual.md @@ -838,23 +838,26 @@ 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): - ''' - Description of your tamper script - ''' +def tamper(payload): + ''' + Description of your tamper script + ''' - retVal = payload + retVal = payload - # your code to tamper the original payload + # your code to tamper the original payload - # return the tampered payload - return retVal + # return the tampered payload + return retVal +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ You can check valid and usable tamper scripts in the `tamper/` directory.