Skip to content

Commit 56a4e50

Browse files
committed
Minor refactoring
1 parent 5b99180 commit 56a4e50

20 files changed

+53
-40
lines changed

.github/CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ Many [people](https://raw.github.com/sqlmapproject/sqlmap/master/doc/THANKS.md)
2424
In order to maintain consistency and readability throughout the code, we ask that you adhere to the following instructions:
2525

2626
* Each patch should make one logical change.
27-
* Wrap code to 76 columns when possible.
2827
* Avoid tabbing, use four blank spaces instead.
2928
* Before you put time into a non-trivial patch, it is worth discussing it privately by [email](mailto:dev@sqlmap.org).
3029
* Do not change style on numerous files in one single pull request, we can [discuss](mailto:dev@sqlmap.org) about those before doing any major restyling, but be sure that personal preferences not having a strong support in [PEP 8](http://www.python.org/dev/peps/pep-0008/) will likely to be rejected.

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.2.2.5"
22+
VERSION = "1.2.2.6"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

tamper/appendnullbyte.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
See the file 'LICENSE' for copying permission
66
"""
77

8+
from lib.core.common import singleTimeWarnMessage
9+
from lib.core.enums import DBMS
810
from lib.core.enums import PRIORITY
911

1012
__priority__ = PRIORITY.LOWEST
1113

1214
def dependencies():
13-
pass
15+
singleTimeWarnMessage("tamper script '%s' is only meant to be run against %s" % (os.path.basename(__file__).split(".")[0], DBMS.ACCESS))
1416

1517
def tamper(payload, **kwargs):
1618
"""

tamper/base64encode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from lib.core.enums import PRIORITY
1111
from lib.core.settings import UNICODE_ENCODING
1212

13-
__priority__ = PRIORITY.LOWEST
13+
__priority__ = PRIORITY.LOW
1414

1515
def dependencies():
1616
pass

tamper/bluecoat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def dependencies():
1818
def tamper(payload, **kwargs):
1919
"""
2020
Replaces space character after SQL statement with a valid random blank character.
21-
Afterwards replace character = with LIKE operator
21+
Afterwards replace character '=' with operator LIKE
2222
2323
Requirement:
2424
* Blue Coat SGOS with WAF activated as documented in

tamper/charunicodeescape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from lib.core.enums import PRIORITY
1111

12-
__priority__ = PRIORITY.LOWEST
12+
__priority__ = PRIORITY.NORMAL
1313

1414
def tamper(payload, **kwargs):
1515
"""

tamper/commalesslimit.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77

88
import re
99

10+
from lib.core.common import singleTimeWarnMessage
11+
from lib.core.enums import DBMS
1012
from lib.core.enums import PRIORITY
1113

1214
__priority__ = PRIORITY.HIGH
1315

1416
def dependencies():
15-
pass
17+
singleTimeWarnMessage("tamper script '%s' is only meant to be run against %s" % (os.path.basename(__file__).split(".")[0], DBMS.MYSQL))
1618

1719
def tamper(payload, **kwargs):
1820
"""

tamper/commalessmid.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
import re
1010

1111
from lib.core.common import singleTimeWarnMessage
12+
from lib.core.enums import DBMS
1213
from lib.core.enums import PRIORITY
1314

1415
__priority__ = PRIORITY.HIGH
1516

1617
def dependencies():
17-
pass
18+
singleTimeWarnMessage("tamper script '%s' is only meant to be run against %s" % (os.path.basename(__file__).split(".")[0], DBMS.MYSQL))
1819

1920
def tamper(payload, **kwargs):
2021
"""

tamper/commentbeforeparentheses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from lib.core.enums import PRIORITY
1111

12-
__priority__ = PRIORITY.LOW
12+
__priority__ = PRIORITY.NORMAL
1313

1414
def dependencies():
1515
pass

tamper/concat2concatws.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
See the file 'LICENSE' for copying permission
66
"""
77

8+
from lib.core.common import singleTimeWarnMessage
9+
from lib.core.enums import DBMS
810
from lib.core.enums import PRIORITY
911

1012
__priority__ = PRIORITY.HIGHEST
1113

1214
def dependencies():
13-
pass
15+
singleTimeWarnMessage("tamper script '%s' is only meant to be run against %s" % (os.path.basename(__file__).split(".")[0], DBMS.MYSQL))
1416

1517
def tamper(payload, **kwargs):
1618
"""

0 commit comments

Comments
 (0)