mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Patch for an Issue #422
This commit is contained in:
parent
6969874c02
commit
d1ae62b22b
|
@ -21,6 +21,7 @@ except (ImportError, OSError):
|
|||
else:
|
||||
_multiprocessing = multiprocessing
|
||||
|
||||
import gc
|
||||
import os
|
||||
import re
|
||||
import tempfile
|
||||
|
@ -767,6 +768,8 @@ def dictionaryAttack(attack_dict):
|
|||
infoMsg = "starting %d processes " % _multiprocessing.cpu_count()
|
||||
singleTimeLogMessage(infoMsg)
|
||||
|
||||
gc.disable()
|
||||
|
||||
retVal = _multiprocessing.Queue()
|
||||
count = _multiprocessing.Value('i', _multiprocessing.cpu_count())
|
||||
|
||||
|
@ -803,6 +806,9 @@ def dictionaryAttack(attack_dict):
|
|||
pass
|
||||
|
||||
finally:
|
||||
if _multiprocessing:
|
||||
gc.enable()
|
||||
|
||||
if retVal:
|
||||
conf.hashDB.beginTransaction()
|
||||
|
||||
|
@ -845,6 +851,8 @@ def dictionaryAttack(attack_dict):
|
|||
infoMsg = "starting %d processes " % _multiprocessing.cpu_count()
|
||||
singleTimeLogMessage(infoMsg)
|
||||
|
||||
gc.disable()
|
||||
|
||||
retVal = _multiprocessing.Queue()
|
||||
found_ = _multiprocessing.Value('i', False)
|
||||
count = _multiprocessing.Value('i', _multiprocessing.cpu_count())
|
||||
|
@ -892,6 +900,9 @@ def dictionaryAttack(attack_dict):
|
|||
pass
|
||||
|
||||
finally:
|
||||
if _multiprocessing:
|
||||
gc.enable()
|
||||
|
||||
if retVal:
|
||||
conf.hashDB.beginTransaction()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user