File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020from thirdparty .six import unichr as _unichr
2121
2222# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23- VERSION = "1.7.1.10 "
23+ VERSION = "1.7.1.11 "
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 )
Original file line number Diff line number Diff line change @@ -926,10 +926,11 @@ class _(dict):
926926 errMsg += "function '%s' ('%s')" % (function .__name__ , getSafeExString (ex ))
927927 raise SqlmapGenericException (errMsg )
928928
929- if code in conf .abortCode :
930- errMsg = "aborting due to detected HTTP code '%d'" % code
931- singleTimeLogMessage (errMsg , logging .CRITICAL )
932- raise SystemExit
929+ for _ in (getattr (conn , "redcode" , None ), code ):
930+ if _ is not None and _ in conf .abortCode :
931+ errMsg = "aborting due to detected HTTP code '%d'" % _
932+ singleTimeLogMessage (errMsg , logging .CRITICAL )
933+ raise SystemExit
933934
934935 threadData .lastPage = page
935936 threadData .lastCode = code
You can’t perform that action at this time.
0 commit comments