We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9e499a commit 4ac2611Copy full SHA for 4ac2611
1 file changed
tamper/apostrophenullencode.py
@@ -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