Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1f3a5b4

Browse files
committed
Fixes #4016
1 parent d87328f commit 1f3a5b4

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

lib/core/option.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
from lib.core.exception import SqlmapSystemException
9999
from lib.core.exception import SqlmapUnsupportedDBMSException
100100
from lib.core.exception import SqlmapUserQuitException
101+
from lib.core.exception import SqlmapValueException
101102
from lib.core.log import FORMATTER
102103
from lib.core.optiondict import optDict
103104
from 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

14231427
def _checkDependencies():
14241428
"""

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from 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"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)