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

Skip to content

Commit d41cd53

Browse files
committed
Minor style fix (distinguish form from URL testing when --forms --crawl combo used)
1 parent caafa37 commit d41cd53

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/controller/controller.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ def start():
316316
if conf.multipleTargets:
317317
hostCount += 1
318318

319-
if conf.forms:
320-
message = "[#%d] form:\n%s %s" % (hostCount, conf.method or HTTPMETHOD.GET, targetUrl)
319+
if conf.forms and conf.method:
320+
message = "[#%d] form:\n%s %s" % (hostCount, conf.method, targetUrl)
321321
else:
322322
message = "URL %d:\n%s %s%s" % (hostCount, HTTPMETHOD.GET, targetUrl, " (PageRank: %s)" % get_pagerank(targetUrl) if conf.googleDork and conf.pageRank else "")
323323

@@ -327,7 +327,7 @@ def start():
327327
if conf.data is not None:
328328
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 "")
329329

330-
if conf.forms:
330+
if conf.forms and conf.method:
331331
if conf.method == HTTPMETHOD.GET and targetUrl.find("?") == -1:
332332
continue
333333

0 commit comments

Comments
 (0)