mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-29 04:53:48 +03:00
Minor refactoring
This commit is contained in:
parent
d577c57a11
commit
5ec44b8346
|
@ -2543,7 +2543,7 @@ def urlencode(value, safe="%&=-_", convall=False, limit=False, spaceplus=False):
|
||||||
# corner case when character % really needs to be
|
# corner case when character % really needs to be
|
||||||
# encoded (when not representing URL encoded char)
|
# encoded (when not representing URL encoded char)
|
||||||
# except in cases when tampering scripts are used
|
# except in cases when tampering scripts are used
|
||||||
if all(map(lambda x: '%' in x, [safe, value])) and not kb.tamperFunctions:
|
if all('%' in _ for _ in (safe, value)) and not kb.tamperFunctions:
|
||||||
value = re.sub("%(?![0-9a-fA-F]{2})", "%25", value)
|
value = re.sub("%(?![0-9a-fA-F]{2})", "%25", value)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
|
|
@ -19,7 +19,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME
|
||||||
from lib.core.enums import OS
|
from lib.core.enums import OS
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.1.6.13"
|
VERSION = "1.1.6.14"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
|
@ -27,7 +27,7 @@ a97df93b552ee4e4ba3692eae870de7c lib/controller/handler.py
|
||||||
310efc965c862cfbd7b0da5150a5ad36 lib/controller/__init__.py
|
310efc965c862cfbd7b0da5150a5ad36 lib/controller/__init__.py
|
||||||
d58e85ffeac2471ef3af729076b3b5f7 lib/core/agent.py
|
d58e85ffeac2471ef3af729076b3b5f7 lib/core/agent.py
|
||||||
6cc95a117fbd34ef31b9aa25520f0e31 lib/core/bigarray.py
|
6cc95a117fbd34ef31b9aa25520f0e31 lib/core/bigarray.py
|
||||||
8390c2963730e65ad853f677793b8c1c lib/core/common.py
|
20f5c7cb2e810a36e931addf8a289797 lib/core/common.py
|
||||||
5065a4242a8cccf72f91e22e1007ae63 lib/core/convert.py
|
5065a4242a8cccf72f91e22e1007ae63 lib/core/convert.py
|
||||||
a8143dab9d3a27490f7d49b6b29ea530 lib/core/data.py
|
a8143dab9d3a27490f7d49b6b29ea530 lib/core/data.py
|
||||||
7936d78b1a7f1f008ff92bf2f88574ba lib/core/datatype.py
|
7936d78b1a7f1f008ff92bf2f88574ba lib/core/datatype.py
|
||||||
|
@ -46,7 +46,7 @@ f1531be15ed98555a9010e2db3c9da75 lib/core/optiondict.py
|
||||||
d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
|
d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
|
||||||
785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
|
785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
|
||||||
40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
|
40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
|
||||||
d01b255e9b1e3005ad02d9c7d4cf2fe5 lib/core/settings.py
|
862f6871868a96595f78af4bcc3ad121 lib/core/settings.py
|
||||||
d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
|
d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
|
||||||
2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
|
2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
|
||||||
04cca8a05faef752c98d1a775d98a0e6 lib/core/target.py
|
04cca8a05faef752c98d1a775d98a0e6 lib/core/target.py
|
||||||
|
@ -264,7 +264,7 @@ b2331640743170f82be9a8c27f65b206 tamper/space2morecomment.py
|
||||||
507a174c64345df8df003ddba93c8cd1 tamper/space2morehash.py
|
507a174c64345df8df003ddba93c8cd1 tamper/space2morehash.py
|
||||||
0ce89b0d602abbd64344ab038be8acbc tamper/space2mssqlblank.py
|
0ce89b0d602abbd64344ab038be8acbc tamper/space2mssqlblank.py
|
||||||
fa66af20648b5538289748abe7a08fe6 tamper/space2mssqlhash.py
|
fa66af20648b5538289748abe7a08fe6 tamper/space2mssqlhash.py
|
||||||
ca7597ba264ec731b8a73e9cad5334eb tamper/space2mysqlblank.py
|
9dde72d94ce42bf71e3615108fe0214f tamper/space2mysqlblank.py
|
||||||
038b8ea90f9a3a45b9bc67fcdff38511 tamper/space2mysqldash.py
|
038b8ea90f9a3a45b9bc67fcdff38511 tamper/space2mysqldash.py
|
||||||
5665c217ef8998bfd18f9ef1d8c617bd tamper/space2plus.py
|
5665c217ef8998bfd18f9ef1d8c617bd tamper/space2plus.py
|
||||||
a30fa43203d960c7a9d8709bf24ca401 tamper/space2randomblank.py
|
a30fa43203d960c7a9d8709bf24ca401 tamper/space2randomblank.py
|
||||||
|
|
Loading…
Reference in New Issue
Block a user