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

Skip to content

Commit a303d67

Browse files
committed
Patch related to the #3455
1 parent e01a790 commit a303d67

3 files changed

Lines changed: 7 additions & 9 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.3.1.75"
22+
VERSION = "1.3.1.76"
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/utils/hashdb.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,18 +81,16 @@ def retrieve(self, key, unserialize=False):
8181
try:
8282
for row in self.cursor.execute("SELECT value FROM storage WHERE id=?", (hash_,)):
8383
retVal = row[0]
84-
except sqlite3.OperationalError as ex:
84+
except (sqlite3.OperationalError, sqlite3.DatabaseError) as ex:
8585
if any(_ in getSafeExString(ex) for _ in ("locked", "no such table")):
8686
warnMsg = "problem occurred while accessing session file '%s' ('%s')" % (self.filepath, getSafeExString(ex))
8787
singleTimeWarnMessage(warnMsg)
8888
elif "Could not decode" in getSafeExString(ex):
8989
break
9090
else:
91-
raise
92-
except sqlite3.DatabaseError as ex:
93-
errMsg = "error occurred while accessing session file '%s' ('%s'). " % (self.filepath, getSafeExString(ex))
94-
errMsg += "If the problem persists please rerun with '--flush-session'"
95-
raise SqlmapConnectionException(errMsg)
91+
errMsg = "error occurred while accessing session file '%s' ('%s'). " % (self.filepath, getSafeExString(ex))
92+
errMsg += "If the problem persists please rerun with '--flush-session'"
93+
raise SqlmapConnectionException(errMsg)
9694
else:
9795
break
9896

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fe370021c6bc99daf44b2bfc0d1effb3 lib/core/patch.py
5050
7d8a22c582ad201f65b73225e4456170 lib/core/replication.py
5151
3179d34f371e0295dd4604568fb30bcd lib/core/revision.py
5252
d6269c55789f78cf707e09a0f5b45443 lib/core/session.py
53-
4452b55a638f30718bddea46b64db046 lib/core/settings.py
53+
be251fb51accf69378bd62ae3ebbe9e1 lib/core/settings.py
5454
4483b4a5b601d8f1c4281071dff21ecc lib/core/shell.py
5555
10fd19b0716ed261e6d04f311f6f527c lib/core/subprocessng.py
5656
9c7b5c6397fb3da33e7a4d7876d159c6 lib/core/target.py
@@ -108,7 +108,7 @@ b27421eb57cea711050135f84be99258 lib/utils/crawler.py
108108
da4bc159e6920f1f7e45c92c39941690 lib/utils/deps.py
109109
f7c64515a3e4fcfe8266ca2be77be565 lib/utils/getch.py
110110
0d497906b06eb82d14da676e9f9c98f5 lib/utils/har.py
111-
d11f7f208ccf3a7753ccc417b4b01901 lib/utils/hashdb.py
111+
ce65061a15d7b609b36c672b8e824f78 lib/utils/hashdb.py
112112
07412688758500c3b4e46ae7e28e9709 lib/utils/hash.py
113113
17009289bb5c0dc0cceaa483113101e1 lib/utils/htmlentities.py
114114
fb6be55d21a70765e35549af2484f762 lib/utils/__init__.py

0 commit comments

Comments
 (0)