Python - SQLMAP - Tamper Script for Custom Caesar Cypher
#!/usr/bin/env python | |
from lib.core.data import kb | |
from lib.core.enums import PRIORITY | |
import string | |
__priority__ = PRIORITY.NORMAL | |
def dependencies(): | |
pass | |
def tamper(payload, **kwargs): | |
orig = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" | |
srvr = "QqnPvka03wMU6ZybjmK4BRSEWdVishgClpI1AouFNOJ9zrtL2Yef7Tc8GxDHX5" | |
return payload.translate(string.maketrans(orig,srvr)) |
This comment has been minimized.
This comment has been minimized.
but good point of view ;) |
This comment has been minimized.
This comment has been minimized.
its a sqlmap module. https://pen-testing.sans.org/blog/2017/10/13/sqlmap-tamper-scripts-for-the-win |
This comment has been minimized.
This comment has been minimized.
got it working without errors. #!/usr/bin/env python
from lib.core.data import kb
from lib.core.enums import PRIORITY
import string
__priority__ = PRIORITY.NORMAL
def dependencies():
pass
def tamper(payload, **kwargs):
orig = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
srvr = "QqnPvka03wMU6ZybjmK4BRSEWdVishgClpI1AouFNOJ9zrtL2Yef7Tc8GxDHX5"
return payload.translate(payload.maketrans(orig,srvr)) |
This comment has been minimized.
This comment has been minimized.
remove:
replace with:
|
This comment has been minimized.
This comment has been minimized.
Thanks. payload.maketrans should now be str.maketrans although using payload will work. I’ll update the code. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
ImportError: No module named PRIORITY
NameError: name 'PRIORITY' is not defined
it has actually a lot of errors.