@@ -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+
487494def _setDBMSAuthentication ():
488495 """
489496 Check and set the DBMS authentication credentials to run statements as
0 commit comments