implementing a --page-rank switch as requested by l0rda@l0rda.biz

This commit is contained in:
Miroslav Stampar
2011-03-23 11:57:57 +00:00
parent 02379c01a2
commit bd75fd26e9
5 changed files with 15 additions and 3 deletions

View File

@@ -201,7 +201,7 @@ def start():
if conf.forms:
message = "[#%d] form:\n%s %s" % (hostCount, conf.method or HTTPMETHOD.GET, targetUrl)
else:
message = "url %d:\n%s %s%s" % (hostCount, conf.method or HTTPMETHOD.GET, targetUrl, " (PageRank: %s)" % get_pagerank(targetUrl) if conf.googleDork else "")
message = "url %d:\n%s %s%s" % (hostCount, conf.method or HTTPMETHOD.GET, targetUrl, " (PageRank: %s)" % get_pagerank(targetUrl) if conf.googleDork and conf.pageRank else "")
if conf.cookie:
message += "\nCookie: %s" % conf.cookie