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

Skip to content

Commit 1b6365b

Browse files
committed
Minor cleanup
1 parent d38a054 commit 1b6365b

6 files changed

Lines changed: 12 additions & 36 deletions

File tree

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.10.1"
22+
VERSION = "1.2.10.2"
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/securesphere.py

Lines changed: 0 additions & 26 deletions
This file was deleted.

tamper/symboliclogical.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"""
77

88
import re
9+
import urllib
910

1011
from lib.core.enums import PRIORITY
1112

@@ -25,6 +26,6 @@ def tamper(payload, **kwargs):
2526
retVal = payload
2627

2728
if payload:
28-
retVal = re.sub(r"(?i)\bAND\b", "%26%26", re.sub(r"(?i)\bOR\b", "%7C%7C", payload))
29+
retVal = re.sub(r"(?i)\bAND\b", urllib.quote("&&"), re.sub(r"(?i)\bOR\b", urllib.quote("||"), payload))
2930

3031
return retVal

tamper/unmagicquotes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def tamper(payload, **kwargs):
2525
* http://shiflett.org/blog/2006/jan/addslashes-versus-mysql-real-escape-string
2626
2727
>>> tamper("1' AND 1=1")
28-
'1%bf%27-- '
28+
'1%bf%27-- -'
2929
"""
3030

3131
retVal = payload
@@ -46,7 +46,7 @@ def tamper(payload, **kwargs):
4646
_ = re.sub(r"(?i)\s*(AND|OR)[\s(]+([^\s]+)\s*(=|LIKE)\s*\2", "", retVal)
4747
if _ != retVal:
4848
retVal = _
49-
retVal += "-- "
49+
retVal += "-- -"
5050
elif not any(_ in retVal for _ in ('#', '--', '/*')):
51-
retVal += "-- "
51+
retVal += "-- -"
5252
return retVal

tamper/xforwardedfor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ def dependencies():
1414

1515
def randomIP():
1616
numbers = []
17+
1718
while not numbers or numbers[0] in (10, 172, 192):
1819
numbers = sample(xrange(1, 255), 4)
20+
1921
return '.'.join(str(_) for _ in numbers)
2022

2123
def tamper(payload, **kwargs):

txt/checksum.md5

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
4949
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
5050
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5151
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
52-
5f2410ec4abd6170ac6244321a959323 lib/core/settings.py
52+
501b38eaa341d98935b4fc3cecefaffc lib/core/settings.py
5353
dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py
5454
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5555
62bc180e3e828949ffb342a8f756c183 lib/core/target.py
@@ -265,7 +265,6 @@ a47aafcbc1de2deb85160e29de46f748 tamper/plus2concat.py
265265
759b86cf3bb1d7871dc6489538253f94 tamper/plus2fnconcat.py
266266
078494e1217400b485ef653108d32699 tamper/randomcase.py
267267
28626e4b8c673228dcfe4f1627a9e08b tamper/randomcomments.py
268-
938bfac6e55a8823e4a66cd29166d980 tamper/securesphere.py
269268
cac8a56f8cc6c14524ee392daa5ae2fd tamper/space2comment.py
270269
4e6da2aca962b6110652e5f83dce5cd7 tamper/space2dash.py
271270
7cdbae483262f66ef5d77521c59d9621 tamper/space2hash.py
@@ -278,14 +277,14 @@ b55ed15af74ffefc4dc303646c7c6482 tamper/space2mssqlblank.py
278277
72a547bc3bf32dba0d1c3093988df8af tamper/space2plus.py
279278
a74cd6375c5d5d253e2e7014b00ecd33 tamper/space2randomblank.py
280279
93fc10b57586936cef05e88227c84ad0 tamper/sp_password.py
281-
041cb567dff6bb6e7389e12ab3fb84c6 tamper/symboliclogical.py
280+
690eb5200c9e61e54cd8952edaefda23 tamper/symboliclogical.py
282281
6679c4ffb7322315a738dcfa68c6fb7c tamper/unionalltounion.py
283-
51d20b5cb5a50fc2e44d39087f865d23 tamper/unmagicquotes.py
282+
0a7e97374019321ffc606d41535f26d6 tamper/unmagicquotes.py
284283
cc212839f55692d422beef3a8e22a8d4 tamper/uppercase.py
285284
f2b9eac52d346315f5705f71beeda791 tamper/varnish.py
286285
0e40966a51d1eb5d42a2159d2015a8a4 tamper/versionedkeywords.py
287286
0fba004bf1be6edbefbda89f23f4e518 tamper/versionedmorekeywords.py
288-
bb87c2c0ec66927015c9709aaaf93561 tamper/xforwardedfor.py
287+
d8279aa1633e2485ed751eb0361d1c8e tamper/xforwardedfor.py
289288
1ebf563bb2cb18b68ea952418bba0ec5 thirdparty/ansistrm/ansistrm.py
290289
d41d8cd98f00b204e9800998ecf8427e thirdparty/ansistrm/__init__.py
291290
8e775c25bc9e84891ad6fcb4f0005c23 thirdparty/beautifulsoup/beautifulsoup.py

0 commit comments

Comments
 (0)