File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22
33"""
4- $Id$
4+ $Id$
55
66Copyright (c) 2006-2011 sqlmap developers (http://www.sqlmap.org/)
77See the file 'doc/COPYING' for copying permission
Original file line number Diff line number Diff line change 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 base64
11+
12+ from lib .core .enums import PRIORITY
13+
14+ __priority__ = PRIORITY .LOWEST
15+
16+ def dependencies ():
17+ pass
18+
19+ def tamper (payload ):
20+ """
21+ Base64 all characters in a given payload
22+
23+ Example:
24+ * Input: 1' AND SLEEP(5)#
25+ * Output: MScgQU5EIFNMRUVQKDUpIw==
26+ """
27+
28+ retVal = payload
29+
30+ if payload :
31+ retVal = base64 .b64encode (payload )
32+
33+ return retVal
You can’t perform that action at this time.
0 commit comments