File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3762,7 +3762,7 @@ def createGithubIssue(errMsg, excMsg):
37623762 logger .info (infoMsg )
37633763
37643764 try :
3765- with open (paths .GITHUB_HISTORY , "a+b" ) as f :
3765+ with openFile (paths .GITHUB_HISTORY , "a+b" ) as f :
37663766 f .write ("%s\n " % key )
37673767 except :
37683768 pass
Original file line number Diff line number Diff line change @@ -620,6 +620,7 @@ def dbTableValues(self, tableValues):
620620 with open (filepath , "wb" ) as f :
621621 _ = safechardecode (value , True )
622622 f .write (_ )
623+
623624 except magic .MagicException as ex :
624625 logger .debug (getSafeExString (ex ))
625626
Original file line number Diff line number Diff line change 1818from thirdparty .six import unichr as _unichr
1919
2020# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21- VERSION = "1.3.7.4 "
21+ VERSION = "1.3.7.5 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change 1010from lib .core .common import Backend
1111from lib .core .common import getSafeExString
1212from lib .core .common import isStackingAvailable
13+ from lib .core .common import openFile
1314from lib .core .common import readInput
1415from lib .core .common import runningAsAdmin
1516from lib .core .data import conf
@@ -137,7 +138,7 @@ def osPwn(self):
137138
138139 if os .path .exists (filename ):
139140 try :
140- with open (filename , "wb" ) as f :
141+ with openFile (filename , "wb" ) as f :
141142 f .write ("1" )
142143 except IOError as ex :
143144 errMsg = "there has been a file opening/writing error "
You can’t perform that action at this time.
0 commit comments