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

Skip to content

Commit 4ac2611

Browse files
committed
Added another tamper script
1 parent d9e499a commit 4ac2611

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

tamper/apostrophenullencode.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/usr/bin/env python
2+
3+
"""
4+
$Id$
5+
6+
Copyright (c) 2006-2012 sqlmap developers (http://www.sqlmap.org/)
7+
See the file 'doc/COPYING' for copying permission
8+
"""
9+
10+
from lib.core.enums import PRIORITY
11+
12+
__priority__ = PRIORITY.LOWEST
13+
14+
def dependencies():
15+
pass
16+
17+
def tamper(payload):
18+
"""
19+
Replaces apostrophe character with its illegal double unicode counterpart
20+
21+
Example:
22+
* Input: AND '1'='1'
23+
* Output: AND %00%271%00%27=%00%271%00%27
24+
"""
25+
26+
retVal = payload
27+
28+
if payload:
29+
retVal = payload.replace('\'', '%00%27')
30+
31+
return retVal

0 commit comments

Comments
 (0)