From d41cd53d3153d5b3265f791682b8dfdd5426f400 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 28 Oct 2015 14:03:21 +0100 Subject: [PATCH] Minor style fix (distinguish form from URL testing when --forms --crawl combo used) --- lib/controller/controller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/controller/controller.py b/lib/controller/controller.py index a6d689ac0..a4531b071 100644 --- a/lib/controller/controller.py +++ b/lib/controller/controller.py @@ -316,8 +316,8 @@ def start(): if conf.multipleTargets: hostCount += 1 - if conf.forms: - message = "[#%d] form:\n%s %s" % (hostCount, conf.method or HTTPMETHOD.GET, targetUrl) + if conf.forms and conf.method: + message = "[#%d] form:\n%s %s" % (hostCount, conf.method, targetUrl) else: message = "URL %d:\n%s %s%s" % (hostCount, HTTPMETHOD.GET, targetUrl, " (PageRank: %s)" % get_pagerank(targetUrl) if conf.googleDork and conf.pageRank else "") @@ -327,7 +327,7 @@ def start(): if conf.data is not None: message += "\n%s data: %s" % ((conf.method if conf.method != HTTPMETHOD.GET else conf.method) or HTTPMETHOD.POST, urlencode(conf.data) if conf.data else "") - if conf.forms: + if conf.forms and conf.method: if conf.method == HTTPMETHOD.GET and targetUrl.find("?") == -1: continue