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

@ -267,6 +267,9 @@ Anastasios Monachos <anastasiosm@gmail.com>
for providing some useful data
for suggesting a feature
Kirill Morozov <l0rda@l0rda.biz>
for suggesting a feature
Alejo Murillo Moya <alex@65535.com>
for reporting a minor bug
for suggesting a few features

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

View File

@ -160,6 +160,7 @@ optDict = {
"checkPayload": "boolean",
"cleanup": "boolean",
"googlePage": "integer",
"pageRank": "boolean",
"parseErrors": "boolean",
"replicate": "boolean",
"tor": "boolean",

View File

@ -482,7 +482,11 @@ def cmdLineParser():
help="Parse and test forms on target url")
miscellaneous.add_option("--gpage", dest="googlePage", type="int",
help="Use google dork results from specified page number")
help="Use Google dork results from specified page number")
miscellaneous.add_option("--page-rank", dest="pageRank",
action="store_true", default=False,
help="Display page rank (PR) for Google dork results")
miscellaneous.add_option("--parse-errors", dest="parseErrors",
action="store_true", default=False,

View File

@ -514,11 +514,15 @@ cleanup = False
# Valid: True or False
forms = False
# Use google dork results from specified page number.
# Use Google dork results from specified page number.
# Valid: integer
# Default: 1
googlePage = 1
# Display page rank (PR) for Google dork results.
# Valid: True or False
pageRank = False
# Parse DBMS error messages from response pages.
# Valid: True or False
parseErrors = False