From 95c5c20de46db0ea8628b50639a62cae20fb26c3 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 15 Nov 2019 09:50:00 +0100 Subject: [PATCH] Quick patch for #4012 --- lib/core/settings.py | 2 +- lib/utils/crawler.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 5fd808758..539eba042 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.3.11.51" +VERSION = "1.3.11.52" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/lib/utils/crawler.py b/lib/utils/crawler.py index 883847480..0730a05bb 100644 --- a/lib/utils/crawler.py +++ b/lib/utils/crawler.py @@ -43,6 +43,9 @@ from thirdparty.six.moves import http_client as _http_client from thirdparty.six.moves import urllib as _urllib def crawl(target): + if not target: + return + try: visited = set() threadData = getCurrentThreadData()