removed some problematic user agents (google won't work with them) and added page rank next to tested item in multi target mode

This commit is contained in:
Miroslav Stampar
2011-01-02 08:43:38 +00:00
parent 6651ba05eb
commit 5c6c870db4
4 changed files with 103 additions and 12 deletions

View File

@@ -38,6 +38,7 @@ from lib.core.exception import sqlmapUserQuitException
from lib.core.session import setInjection
from lib.core.target import initTargetEnv
from lib.core.target import setupTargetEnv
from extra.pagerank.pagerank import get_pagerank
def __selectInjection():
"""
@@ -193,7 +194,7 @@ def start():
if conf.forms:
message = "[#%d] form:\n%s %s" % (hostCount, conf.method or HTTPMETHOD.GET, targetUrl)
else:
message = "%s %d:\n%s %s" % ("url", hostCount, conf.method or HTTPMETHOD.GET, targetUrl)
message = "%s %d:\n%s %s (PR: %s)" % ("url", hostCount, conf.method or HTTPMETHOD.GET, targetUrl, get_pagerank(targetUrl))
if conf.cookie:
message += "\nCookie: %s" % conf.cookie