Created
December 30, 2015 13:22
-
-
Save andresriancho/689f4a38bc6cb9a7adc0 to your computer and use it in GitHub Desktop.
Random X-Forwarding-For tamper script for sqlmap
This file contains hidden or 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
import random | |
from lib.core.enums import PRIORITY | |
__priority__ = PRIORITY.NORMAL | |
def dependencies(): | |
pass | |
def tamper(payload, **kwargs): | |
headers = kwargs.get("headers", {}) | |
headers["X-Forwarded-For"] = "127.0.0.%s" % random.randint(1,254) | |
return payload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment