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

Skip to content

Commit abe31c1

Browse files
committed
Minor update
1 parent 8ec0c7a commit abe31c1

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

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.15"
21+
VERSION = "1.3.11.16"
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)

lib/utils/crawler.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def crawl(target):
4646
visited = set()
4747
threadData = getCurrentThreadData()
4848
threadData.shared.value = OrderedSet()
49+
threadData.shared.formsFound = False
4950

5051
def crawlThread():
5152
threadData = getCurrentThreadData()
@@ -123,7 +124,7 @@ def crawlThread():
123124
pass
124125
finally:
125126
if conf.forms:
126-
findPageForms(content, current, False, True)
127+
threadData.shared.formsFound |= len(findPageForms(content, current, False, True)) > 0
127128

128129
if conf.verbose in (1, 2):
129130
threadData.shared.count += 1
@@ -189,8 +190,11 @@ def crawlThread():
189190
clearConsoleLine(True)
190191

191192
if not threadData.shared.value:
192-
warnMsg = "no usable links found (with GET parameters)"
193-
logger.warn(warnMsg)
193+
if not (conf.forms and threadData.shared.formsFound):
194+
warnMsg = "no usable links found (with GET parameters)"
195+
if conf.forms:
196+
warnMsg += " or forms"
197+
logger.warn(warnMsg)
194198
else:
195199
for url in threadData.shared.value:
196200
kb.targets.add((urldecode(url, kb.pageEncoding), None, None, None, None))

0 commit comments

Comments
 (0)