File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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.5.3.18 "
21+ VERSION = "1.5.3.19 "
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 @@ -101,13 +101,22 @@ def fetchall(self):
101101 return None
102102
103103 def execute (self , query ):
104+ retVal = False
105+
104106 try :
105107 self .cursor = self .connector .execute (query )
108+ retVal = True
106109 except (_sqlalchemy .exc .OperationalError , _sqlalchemy .exc .ProgrammingError ) as ex :
107110 logger .log (logging .WARN if conf .dbmsHandler else logging .DEBUG , "(remote) %s" % getSafeExString (ex ))
108111 except _sqlalchemy .exc .InternalError as ex :
109112 raise SqlmapConnectionException (getSafeExString (ex ))
110113
114+ return retVal
115+
111116 def select (self , query ):
112- self .execute (query )
113- return self .fetchall ()
117+ retVal = None
118+
119+ if self .execute (query ):
120+ retVal = self .fetchall ()
121+
122+ return retVal
You can’t perform that action at this time.
0 commit comments