File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919from lib .core .enums import OS
2020
2121# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22- VERSION = "1.1.4.18 "
22+ VERSION = "1.1.4.19 "
2323TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2424TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2525VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python
2+
3+ """
4+ Copyright (c) 2006-2017 sqlmap developers (http://sqlmap.org/)
5+ See the file 'doc/COPYING' for copying permission
6+ """
7+
8+ import re
9+
10+ from lib .core .enums import PRIORITY
11+
12+ __priority__ = PRIORITY .LOW
13+
14+ def dependencies ():
15+ pass
16+
17+ def tamper (payload , ** kwargs ):
18+ """
19+ Prepends (inline) comment before parentheses
20+
21+ Tested against:
22+ * Microsoft SQL Server
23+ * MySQL
24+ * Oracle
25+ * PostgreSQL
26+
27+ Notes:
28+ * Useful to bypass web application firewalls that block usage
29+ of function calls
30+
31+ >>> tamper('SELECT ABS(1)')
32+ 'SELECT ABS/**/(1)'
33+ """
34+
35+ retVal = payload
36+
37+ if payload :
38+ retVal = re .sub (r"\b(\w+)\(" , "\g<1>/**/(" , retVal )
39+
40+ return retVal
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ dd19b4d930d418f8aef498941346ab2d lib/core/option.py
4545d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
4646785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
474740c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
48- 78ce748dd65ba204321cb74c53ec55e3 lib/core/settings.py
48+ a69ceaa3f1d3c59bc4678777218ae334 lib/core/settings.py
4949d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
50502ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
5151afd0636d2e93c23f4f0a5c9b6023ea17 lib/core/target.py
@@ -236,6 +236,7 @@ e6e3ae32bc3c3d5acb4b93289e3fe698 tamper/bluecoat.py
236236893e7d907bcd370394b70a30d502be2b tamper/charunicodeencode.py
237237596883203fbdd81ee760e4a00071bf39 tamper/commalesslimit.py
238238f341a48112354a50347546fa73f4f531 tamper/commalessmid.py
239+ 1a368a32530c04a11a531cd21d587682 tamper/commentbeforeparentheses.py
23924028c21fd9c9801d398698c646bb894260 tamper/concat2concatws.py
240241d496b8abd40ea1a86c771d9d20174f61 tamper/equaltolike.py
241242fb3c31b72675f6ef27fa420a4e974a55 tamper/escapequotes.py
You can’t perform that action at this time.
0 commit comments