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

Skip to content

Commit 823119a

Browse files
committed
Update regarding #3826
1 parent 6b88fa3 commit 823119a

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

lib/core/option.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,12 +455,14 @@ def _findPageForms():
455455
if conf.url and not checkConnection():
456456
return
457457

458+
found = False
458459
infoMsg = "searching for forms"
459460
logger.info(infoMsg)
460461

461462
if not any((conf.bulkFile, conf.googleDork, conf.sitemapUrl)):
462463
page, _, _ = Request.queryPage(content=True)
463-
findPageForms(page, conf.url, True, True)
464+
if findPageForms(page, conf.url, True, True):
465+
found = True
464466
else:
465467
if conf.bulkFile:
466468
targets = getFileItems(conf.bulkFile)
@@ -473,7 +475,8 @@ def _findPageForms():
473475
try:
474476
target = targets[i]
475477
page, _, _ = Request.getPage(url=target.strip(), cookie=conf.cookie, crawling=True, raise404=False)
476-
findPageForms(page, target, False, True)
478+
if findPageForms(page, target, False, True):
479+
found = True
477480

478481
if conf.verbose in (1, 2):
479482
status = '%d/%d links visited (%d%%)' % (i + 1, len(targets), round(100.0 * (i + 1) / len(targets)))
@@ -484,6 +487,10 @@ def _findPageForms():
484487
errMsg = "problem occurred while searching for forms at '%s' ('%s')" % (target, getSafeExString(ex))
485488
logger.error(errMsg)
486489

490+
if not found:
491+
warnMsg = "no forms found"
492+
logger.warn(warnMsg)
493+
487494
def _setDBMSAuthentication():
488495
"""
489496
Check and set the DBMS authentication credentials to run statements as

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.7.24"
21+
VERSION = "1.3.7.25"
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)