mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 00:04:23 +03:00
Fixes #2322
This commit is contained in:
parent
2fa5341879
commit
1c737d7515
|
@ -2226,10 +2226,19 @@ def _mergeOptions(inputOptions, overrideOptions):
|
||||||
|
|
||||||
if inputOptions.pickledOptions:
|
if inputOptions.pickledOptions:
|
||||||
try:
|
try:
|
||||||
inputOptions = base64unpickle(inputOptions.pickledOptions, unsafe=True)
|
unpickledOptions = base64unpickle(inputOptions.pickledOptions, unsafe=True)
|
||||||
if type(inputOptions) == dict:
|
|
||||||
inputOptions = AttribDict(inputOptions)
|
if type(unpickledOptions) == dict:
|
||||||
_normalizeOptions(inputOptions)
|
unpickledOptions = AttribDict(unpickledOptions)
|
||||||
|
|
||||||
|
_normalizeOptions(unpickledOptions)
|
||||||
|
|
||||||
|
unpickledOptions["pickledOptions"] = None
|
||||||
|
for key in inputOptions:
|
||||||
|
if key not in unpickledOptions:
|
||||||
|
unpickledOptions[key] = inputOptions[key]
|
||||||
|
|
||||||
|
inputOptions = unpickledOptions
|
||||||
except Exception, ex:
|
except Exception, ex:
|
||||||
errMsg = "provided invalid value '%s' for option '--pickled-options'" % inputOptions.pickledOptions
|
errMsg = "provided invalid value '%s' for option '--pickled-options'" % inputOptions.pickledOptions
|
||||||
errMsg += " (%s)" % repr(ex)
|
errMsg += " (%s)" % repr(ex)
|
||||||
|
|
|
@ -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.0.12.15"
|
VERSION = "1.0.12.16"
|
||||||
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)
|
||||||
|
|
|
@ -21,7 +21,7 @@ cc9c82cfffd8ee9b25ba3af6284f057e extra/sqlharvest/__init__.py
|
||||||
4f2f817596540d82f9fcc0c5b2228beb extra/sqlharvest/sqlharvest.py
|
4f2f817596540d82f9fcc0c5b2228beb extra/sqlharvest/sqlharvest.py
|
||||||
2daa39e4d59526acb4772b6c47eb315f lib/controller/action.py
|
2daa39e4d59526acb4772b6c47eb315f lib/controller/action.py
|
||||||
eb36e67d0f698384978486d9b16591c5 lib/controller/checks.py
|
eb36e67d0f698384978486d9b16591c5 lib/controller/checks.py
|
||||||
531365e625d740ffed1fe97d8318979c lib/controller/controller.py
|
921349d423cd7288ec16d2700e85da14 lib/controller/controller.py
|
||||||
ec007a1424da78cfdae90da6ae49ed9b lib/controller/handler.py
|
ec007a1424da78cfdae90da6ae49ed9b lib/controller/handler.py
|
||||||
cc9c82cfffd8ee9b25ba3af6284f057e lib/controller/__init__.py
|
cc9c82cfffd8ee9b25ba3af6284f057e lib/controller/__init__.py
|
||||||
cdffff6260c40ccb4e4092fc21d9d63f lib/core/agent.py
|
cdffff6260c40ccb4e4092fc21d9d63f lib/core/agent.py
|
||||||
|
@ -39,13 +39,13 @@ e4aec2b11c1ad6039d0c3dbbfbc5eb1a lib/core/exception.py
|
||||||
cc9c82cfffd8ee9b25ba3af6284f057e lib/core/__init__.py
|
cc9c82cfffd8ee9b25ba3af6284f057e lib/core/__init__.py
|
||||||
91c514013daa796e2cdd940389354eac lib/core/log.py
|
91c514013daa796e2cdd940389354eac lib/core/log.py
|
||||||
ea5b08cac48cf538fb4bce31438b387b lib/core/optiondict.py
|
ea5b08cac48cf538fb4bce31438b387b lib/core/optiondict.py
|
||||||
5d530c06c9720626ef6bf9e0a3decd2a lib/core/option.py
|
3f1a2c9d978df38c112d3534440dda9f lib/core/option.py
|
||||||
7af487340c138f7b5dbd443161cbb428 lib/core/profiling.py
|
7af487340c138f7b5dbd443161cbb428 lib/core/profiling.py
|
||||||
e60456db5380840a586654344003d4e6 lib/core/readlineng.py
|
e60456db5380840a586654344003d4e6 lib/core/readlineng.py
|
||||||
b3a62d41a5af6cd7fa733b6227febb0c lib/core/replication.py
|
b3a62d41a5af6cd7fa733b6227febb0c lib/core/replication.py
|
||||||
dfb664b223ac3585d51e58839b777d9b lib/core/revision.py
|
dfb664b223ac3585d51e58839b777d9b lib/core/revision.py
|
||||||
7c15dd2777af4dac2c89cab6df17462e lib/core/session.py
|
7c15dd2777af4dac2c89cab6df17462e lib/core/session.py
|
||||||
d686c45c24eaa2519bc7e942fa8a2743 lib/core/settings.py
|
e639cc2dee56c9e8d9bb6deb6da63cb8 lib/core/settings.py
|
||||||
7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py
|
7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py
|
||||||
23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py
|
23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py
|
||||||
c3ace7874a536d801f308cf1fd03df99 lib/core/target.py
|
c3ace7874a536d801f308cf1fd03df99 lib/core/target.py
|
||||||
|
|
Loading…
Reference in New Issue
Block a user