File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222
2323__docformat__ = "restructuredtext en"
2424
25- __revision__ = '$Id$'
26-
2725__version__ = '0.2.2'
2826
2927__all__ = ['OrderedDict' , 'SequenceOrderedDict' ]
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://sqlmap.sourceforge.net/)
7+ See the file 'doc/COPYING' for copying permission
8+ """
9+
10+ import string
11+
12+ from lib .core .enums import PRIORITY
13+
14+ __priority__ = PRIORITY .LOWEST
15+
16+ def tamper (payload ):
17+ """
18+ Appends encoded null byte character at the end of payload
19+ Example: "AND 1=1" becomes "AND 1=1%00"
20+ Reference: http://projects.webappsec.org/w/page/13246949/Null-Byte-Injection
21+ """
22+
23+ retVal = payload
24+
25+ if payload :
26+ retVal = "%s%%00" % payload
27+
28+ return retVal
You can’t perform that action at this time.
0 commit comments