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

Skip to content

Commit 465a1e1

Browse files
committed
Minor update
1 parent 6af127c commit 465a1e1

3 files changed

Lines changed: 11 additions & 4 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.16"
22+
VERSION = "1.2.10.17"
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)

lib/core/target.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
from lib.core.exception import SqlmapFilePathException
4545
from lib.core.exception import SqlmapGenericException
4646
from lib.core.exception import SqlmapMissingPrivileges
47+
from lib.core.exception import SqlmapNoneDataException
4748
from lib.core.exception import SqlmapSystemException
4849
from lib.core.exception import SqlmapUserQuitException
4950
from lib.core.option import _setDBMS
@@ -466,7 +467,13 @@ def _resumeDBMS():
466467
value = hashDBRetrieve(HASHDB_KEYS.DBMS)
467468

468469
if not value:
469-
return
470+
if conf.offline:
471+
errMsg = "unable to continue in offline mode "
472+
errMsg += "because of lack of usable "
473+
errMsg += "session data"
474+
raise SqlmapNoneDataException(errMsg)
475+
else:
476+
return
470477

471478
dbms = value.lower()
472479
dbmsVersion = [UNKNOWN_DBMS_VERSION]

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
4949
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
5050
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5151
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
52-
bd070cf6683de2f9ed462d35eba1ead5 lib/core/settings.py
52+
f9c54a74954157624dafa19b563d92b6 lib/core/settings.py
5353
dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py
5454
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
55-
62bc180e3e828949ffb342a8f756c183 lib/core/target.py
55+
47ad325975ab21fc9f11d90b46d0d143 lib/core/target.py
5656
72d499ca8d792e90a1ebfb2ad2341a51 lib/core/testing.py
5757
cd0067d1798e45f422ce44b98baf57db lib/core/threads.py
5858
c40758411bb0bd68764d78e0bb72bd0f lib/core/unescaper.py

0 commit comments

Comments
 (0)