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

Skip to content

Commit 965c151

Browse files
committed
adding new tamper script
1 parent 601d118 commit 965c151

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

tamper/unionalltounion.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-2012 sqlmap developers (http://www.sqlmap.org/)
7+
See the file 'doc/COPYING' for copying permission
8+
"""
9+
10+
import re
11+
12+
from lib.core.enums import PRIORITY
13+
14+
__priority__ = PRIORITY.HIGHEST
15+
16+
def dependencies():
17+
pass
18+
19+
def tamper(payload):
20+
"""
21+
Replaces UNION ALL SELECT with UNION SELECT
22+
23+
Example:
24+
* Input: -1 UNION ALL SELECT
25+
* Output: -1 UNION SELECT
26+
"""
27+
28+
return payload.replace("UNION ALL SELECT", "UNION SELECT") if payload else payload

0 commit comments

Comments
 (0)