mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
fix for a bug reported by m4l1c3 (AttributeError: '_MainThread' object has no attribute 'ident')
This commit is contained in:
@@ -1541,18 +1541,18 @@ def longestCommonPrefix(*sequences):
|
||||
def commonFinderOnly(initial, sequence):
|
||||
return longestCommonPrefix(*filter(lambda x: x.startswith(initial), sequence))
|
||||
|
||||
def getCurrentThreadID():
|
||||
return threading.currentThread().ident
|
||||
def getCurrentThreadUID():
|
||||
return hash(threading.currentThread())
|
||||
|
||||
def getCurrentThreadData():
|
||||
"""
|
||||
Returns current thread's dependent data
|
||||
"""
|
||||
|
||||
threadID = getCurrentThreadID()
|
||||
if threadID not in kb.threadData:
|
||||
kb.threadData[threadID] = ThreadData()
|
||||
return kb.threadData[threadID]
|
||||
threadUID = getCurrentThreadUID()
|
||||
if threadUID not in kb.threadData:
|
||||
kb.threadData[threadUID] = ThreadData()
|
||||
return kb.threadData[threadUID]
|
||||
|
||||
def pushValue(value):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user