mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-29 09:29:50 +03:00
Update luanginxwafbypass.py
This commit is contained in:
parent
bbd7ba9fd0
commit
c70818bfc7
|
@ -27,12 +27,18 @@ def randomParameterGenerator(size=6, chars=string.ascii_uppercase + string.digit
|
||||||
output = ''.join(random.choice(chars) for _ in range(size))
|
output = ''.join(random.choice(chars) for _ in range(size))
|
||||||
return output
|
return output
|
||||||
|
|
||||||
''' [Tamper] LUA-Nginx WAFs Bypass '''
|
''' [Tamper] LUA-Nginx WAF Bypass '''
|
||||||
def tamper(payload, **kwargs):
|
def tamper(payload, **kwargs):
|
||||||
try:
|
try:
|
||||||
headers = kwargs.get("headers", {})
|
headers = kwargs.get("headers", {})
|
||||||
randomParameter = randomParameterGenerator()
|
randomParameter = randomParameterGenerator()
|
||||||
parameter = conf["testParameter"]
|
|
||||||
|
''' Get parameter name to test '''
|
||||||
|
parameter = conf["testParameter"][0]
|
||||||
|
|
||||||
|
if not parameter:
|
||||||
|
print "\n[-] [ERROR] Add an injectable parameter with -p option (-p param)"
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
if conf["skipUrlEncode"] != True:
|
if conf["skipUrlEncode"] != True:
|
||||||
print "\n[-] [ERROR] --skip-urlencode option must be activated"
|
print "\n[-] [ERROR] --skip-urlencode option must be activated"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user