mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 01:47:37 +03:00 
			
		
		
		
	minor update regarding requestFile option
This commit is contained in:
		
							parent
							
								
									8817b2884f
								
							
						
					
					
						commit
						a193205323
					
				| 
						 | 
				
			
			@ -28,7 +28,8 @@ optDict = {
 | 
			
		|||
                               "url":               "string",
 | 
			
		||||
                               "list":              "string",
 | 
			
		||||
                               "googleDork":        "string",
 | 
			
		||||
                               "configFile":        "string"
 | 
			
		||||
                               "configFile":        "string",
 | 
			
		||||
                               "requestFile":       "string"
 | 
			
		||||
                             },
 | 
			
		||||
 | 
			
		||||
            "Request":       {
 | 
			
		||||
| 
						 | 
				
			
			@ -48,8 +49,7 @@ optDict = {
 | 
			
		|||
                               "delay":             "float",
 | 
			
		||||
                               "timeout":           "float",
 | 
			
		||||
                               "retries":           "integer",
 | 
			
		||||
                               "scope":             "string",
 | 
			
		||||
                               "requestFile":       "string"
 | 
			
		||||
                               "scope":             "string"
 | 
			
		||||
                             },
 | 
			
		||||
 | 
			
		||||
            "Injection":     {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -59,6 +59,9 @@ def cmdLineParser():
 | 
			
		|||
        target.add_option("-c", dest="configFile",
 | 
			
		||||
                          help="Load options from a configuration INI file")
 | 
			
		||||
                          
 | 
			
		||||
        target.add_option("-r", dest="requestFile",
 | 
			
		||||
                          help="Load HTTP request from a file")
 | 
			
		||||
                          
 | 
			
		||||
        # Request options
 | 
			
		||||
        request = OptionGroup(parser, "Request", "These options can be used "
 | 
			
		||||
                              "to specify how to connect to the target url.")
 | 
			
		||||
| 
						 | 
				
			
			@ -121,9 +124,6 @@ def cmdLineParser():
 | 
			
		|||
        request.add_option("--scope", dest="scope", 
 | 
			
		||||
                           help="Regexp to filter targets from provided proxy log")
 | 
			
		||||
 | 
			
		||||
        request.add_option("-r", dest="requestFile",
 | 
			
		||||
                          help="Load HTTP request from a file")
 | 
			
		||||
 | 
			
		||||
        # Injection options
 | 
			
		||||
        injection = OptionGroup(parser, "Injection", "These options can be "
 | 
			
		||||
                                "used to specify which parameters to test "
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,6 +17,10 @@ list =
 | 
			
		|||
# Example: +ext:php +inurl:"&id=" +intext:"powered by "
 | 
			
		||||
googleDork = 
 | 
			
		||||
 | 
			
		||||
# Load HTTP request from a file
 | 
			
		||||
# Example (file content): POST /login.jsp HTTP/1.1\nUser-Agent: Mozilla/4.0\n\nuserid=joe&password=guessme
 | 
			
		||||
requestFile = 
 | 
			
		||||
 | 
			
		||||
[Request]
 | 
			
		||||
 | 
			
		||||
# HTTP method to perform HTTP requests.
 | 
			
		||||
| 
						 | 
				
			
			@ -99,10 +103,6 @@ retries = 3
 | 
			
		|||
# Example: (google|yahoo)
 | 
			
		||||
scope = 
 | 
			
		||||
 | 
			
		||||
# Load HTTP request from a file
 | 
			
		||||
# Example (file content): POST /login.jsp HTTP/1.1\nUser-Agent: Mozilla/4.0\n\nuserid=joe&password=guessme
 | 
			
		||||
requestFile = 
 | 
			
		||||
 | 
			
		||||
[Injection]
 | 
			
		||||
 | 
			
		||||
# Testable parameter(s) comma separated. By default all GET/POST/Cookie
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user