Skip to content

Commit 3d01a91

Browse files
committed
Fixing pypy bug with multiple targets and SQLite cursor
1 parent 95e0b36 commit 3d01a91

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/core/settings.py

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

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

lib/core/target.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
from lib.core.settings import URI_INJECTABLE_REGEX
7474
from lib.core.settings import USER_AGENT_ALIASES
7575
from lib.core.settings import XML_RECOGNITION_REGEX
76+
from lib.core.threads import getCurrentThreadData
7677
from lib.utils.hashdb import HashDB
7778
from thirdparty import six
7879
from thirdparty.odict import OrderedDict
@@ -708,6 +709,9 @@ def initTargetEnv():
708709
if conf.cj:
709710
resetCookieJar(conf.cj)
710711

712+
threadData = getCurrentThreadData()
713+
threadData.reset()
714+
711715
conf.paramDict = {}
712716
conf.parameters = {}
713717
conf.hashDBFile = None

0 commit comments

Comments
 (0)