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

Skip to content

Commit 0d0f286

Browse files
committed
adding one more tamper script
1 parent 03d6031 commit 0d0f286

2 files changed

Lines changed: 28 additions & 2 deletions

File tree

extra/odict/odict.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222

2323
__docformat__ = "restructuredtext en"
2424

25-
__revision__ = '$Id$'
26-
2725
__version__ = '0.2.2'
2826

2927
__all__ = ['OrderedDict', 'SequenceOrderedDict']

tamper/appendnullbyte.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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

0 commit comments

Comments
 (0)