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

Skip to content

Commit 21cc6e3

Browse files
committed
Potential patch for #4367
1 parent a2a73b8 commit 21cc6e3

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.4.10.1"
21+
VERSION = "1.4.10.2"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/utils/hash.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,17 +1147,19 @@ def dictionaryAttack(attack_dict):
11471147
warnMsg = "user aborted during dictionary-based attack phase (Ctrl+C was pressed)"
11481148
logger.warn(warnMsg)
11491149

1150+
finally:
1151+
if _multiprocessing:
1152+
gc.enable()
1153+
1154+
# NOTE: https://github.com/sqlmapproject/sqlmap/issues/4367
1155+
# NOTE: https://dzone.com/articles/python-101-creating-multiple-processes
11501156
for process in processes:
11511157
try:
11521158
process.terminate()
11531159
process.join()
11541160
except (OSError, AttributeError):
11551161
pass
11561162

1157-
finally:
1158-
if _multiprocessing:
1159-
gc.enable()
1160-
11611163
if retVal:
11621164
if conf.hashDB:
11631165
conf.hashDB.beginTransaction()

0 commit comments

Comments
 (0)