mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 06:50:14 +00:00
some refactoring
This commit is contained in:
parent
36999a07c4
commit
5852bad963
4 changed files with 16 additions and 12 deletions
|
|
@ -21,6 +21,7 @@ import urlparse
|
|||
import ntpath
|
||||
import posixpath
|
||||
import subprocess
|
||||
import threading
|
||||
|
||||
from ConfigParser import DEFAULTSECT
|
||||
from ConfigParser import RawConfigParser
|
||||
|
|
@ -1533,14 +1534,17 @@ def pushValue(value):
|
|||
Push value to the stack
|
||||
"""
|
||||
|
||||
kb.valueStack.append(value)
|
||||
threadId = threading.currentThread().ident
|
||||
if threadId not in kb.valueStack:
|
||||
kb.valueStack[threadId] = []
|
||||
kb.valueStack[threadId].append(value)
|
||||
|
||||
def popValue():
|
||||
"""
|
||||
Pop value from the stack
|
||||
"""
|
||||
|
||||
return kb.valueStack.pop()
|
||||
return kb.valueStack[threading.currentThread().ident].pop()
|
||||
|
||||
def wasLastRequestDBMSError():
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue