File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ c1881685bef8504ded32c51abed00ab51849008c84b74e8a66117e5f5041b3df lib/controller
166166d69e84f1648cdb907f5d2dd454f03874a4613752b07867510145d51d84b3c56f lib/controller/handler.py
1671671966ca704961fb987ab757f0a4afddbf841d1a880631b701487c75cef63d60c3 lib/controller/__init__.py
168168b2555d11529689f5d7d02bee0741d3228969e2bf29a2b9140bf1560ff60249e7 lib/core/agent.py
169- aeed026c6717af3b410fb6182e48f1193e87aec1b3e3412979c09c3c257e8363 lib/core/bigarray.py
169+ ca3e5ce56cb1cae0a8e815425ab6810068004bffe8861d1037c7c87c0ae02477 lib/core/bigarray.py
170170df59ab7c23d2cf96ea951a9a91f95865b79008ff4131e9178b346e274d920dff lib/core/common.py
171171f30b4eccdb574731fa7e6ef48e71ea82d4bc99be70a2e27bff230943e9039313 lib/core/compat.py
172172e37bfd314a46699b14e1c8a5ea851d546d3a36bea8e5f37466ef2921ff78fefd lib/core/convert.py
@@ -188,7 +188,7 @@ c03dc585f89642cfd81b087ac2723e3e1bb3bfa8c60e6f5fe58ef3b0113ebfe6 lib/core/data.
18818848797d6c34dd9bb8a53f7f3794c85f4288d82a9a1d6be7fcf317d388cb20d4b3 lib/core/replication.py
1891890b8c38a01bb01f843d94a6c5f2075ee47520d0c4aa799cecea9c3e2c5a4a23a6 lib/core/revision.py
190190888daba83fd4a34e9503fe21f01fef4cc730e5cde871b1d40e15d4cbc847d56c lib/core/session.py
191- cb5636c13b3718468a10b085a37b4d6f78c626d968884031c80a44aee7f7453e lib/core/settings.py
191+ 03c22d641e9f45aaaa0006bcbbaeb9987c21d1ecf78337dbe889ccfa1b8848ea lib/core/settings.py
192192cd5a66deee8963ba8e7e9af3dd36eb5e8127d4d68698811c29e789655f507f82 lib/core/shell.py
193193bcb5d8090d5e3e0ef2a586ba09ba80eef0c6d51feb0f611ed25299fbb254f725 lib/core/subprocessng.py
19419470ea3768f1b3062b22d20644df41c86238157ec80dd43da40545c620714273c6 lib/core/target.py
Original file line number Diff line number Diff line change @@ -233,12 +233,22 @@ def _checkcache(self, index):
233233 raise SqlmapSystemException (errMsg )
234234
235235 def __getstate__ (self ):
236- if self .cache and self .cache .dirty :
237- filename = self ._dump (self .cache .data )
238- self .chunks [self .cache .index ] = filename
239- self .cache .dirty = False
236+ with self ._lock :
237+ if self .cache and self .cache .dirty :
238+ old_filename = self .chunks [self .cache .index ]
239+ filename = self ._dump (self .cache .data )
240+ self .chunks [self .cache .index ] = filename
241+
242+ if isinstance (old_filename , STRING_TYPES ):
243+ try :
244+ self ._os_remove (old_filename )
245+ self .filenames .discard (old_filename )
246+ except OSError :
247+ pass
248+
249+ self .cache .dirty = False
240250
241- return self .chunks , self .filenames , self .chunk_length
251+ return self .chunks , self .filenames , self .chunk_length
242252
243253 def __setstate__ (self , state ):
244254 self .__init__ ()
Original file line number Diff line number Diff line change 2020from thirdparty import six
2121
2222# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23- VERSION = "1.10.6.49 "
23+ VERSION = "1.10.6.50 "
2424TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2525TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2626VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
You can’t perform that action at this time.
0 commit comments