mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 16:07:55 +03:00 
			
		
		
		
	implementing a --page-rank switch as requested by l0rda@l0rda.biz
This commit is contained in:
		
							parent
							
								
									02379c01a2
								
							
						
					
					
						commit
						bd75fd26e9
					
				|  | @ -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 | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -160,6 +160,7 @@ optDict = { | |||
|                                "checkPayload":      "boolean", | ||||
|                                "cleanup":           "boolean", | ||||
|                                "googlePage":        "integer", | ||||
|                                "pageRank":          "boolean", | ||||
|                                "parseErrors":       "boolean", | ||||
|                                "replicate":         "boolean", | ||||
|                                "tor":               "boolean", | ||||
|  |  | |||
|  | @ -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, | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user