File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9898from lib .core .exception import SqlmapSystemException
9999from lib .core .exception import SqlmapUnsupportedDBMSException
100100from lib .core .exception import SqlmapUserQuitException
101+ from lib .core .exception import SqlmapValueException
101102from lib .core .log import FORMATTER
102103from lib .core .optiondict import optDict
103104from lib .core .settings import CODECS_LIST_PAGE
@@ -1418,7 +1419,10 @@ def _setHTTPTimeout():
14181419 else :
14191420 conf .timeout = 30.0
14201421
1421- socket .setdefaulttimeout (conf .timeout )
1422+ try :
1423+ socket .setdefaulttimeout (conf .timeout )
1424+ except OverflowError as ex :
1425+ raise SqlmapValueException ("invalid value used for option '--timeout' ('%s')" % getSafeExString (ex ))
14221426
14231427def _checkDependencies ():
14241428 """
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.11.80 "
21+ VERSION = "1.3.11.81 "
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 )
You can’t perform that action at this time.
0 commit comments