Skip to content

Instantly share code, notes, and snippets.

@andresriancho
Created December 30, 2015 13:22
Show Gist options
  • Save andresriancho/689f4a38bc6cb9a7adc0 to your computer and use it in GitHub Desktop.
Save andresriancho/689f4a38bc6cb9a7adc0 to your computer and use it in GitHub Desktop.
Random X-Forwarding-For tamper script for sqlmap
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