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

Skip to content

Commit 69421b4

Browse files
committed
Fixes #4231
1 parent 3910b86 commit 69421b4

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

lib/core/option.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
from lib.core.exception import SqlmapMissingDependence
9494
from lib.core.exception import SqlmapMissingMandatoryOptionException
9595
from lib.core.exception import SqlmapMissingPrivileges
96-
from lib.core.exception import SqlmapNoneDataException
9796
from lib.core.exception import SqlmapSilentQuitException
9897
from lib.core.exception import SqlmapSyntaxException
9998
from lib.core.exception import SqlmapSystemException
@@ -984,15 +983,12 @@ def _setHTTPHandlers():
984983

985984
with kb.locks.handlers:
986985
if conf.proxyList is not None:
987-
if not conf.proxyList:
988-
errMsg = "list of usable proxies is exhausted"
989-
raise SqlmapNoneDataException(errMsg)
990-
991986
conf.proxy = conf.proxyList[0]
992-
conf.proxyList = conf.proxyList[1:]
987+
conf.proxyList = conf.proxyList[1:] + conf.proxyList[:1]
993988

994-
infoMsg = "loading proxy '%s' from a supplied proxy list file" % conf.proxy
995-
logger.info(infoMsg)
989+
if len(conf.proxyList) > 1:
990+
infoMsg = "loading proxy '%s' from a supplied proxy list file" % conf.proxy
991+
logger.info(infoMsg)
996992

997993
elif not conf.proxy:
998994
if conf.hostname in ("localhost", "127.0.0.1") or conf.ignoreProxy:

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.4.6.8"
21+
VERSION = "1.4.6.9"
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)