mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +03:00 
			
		
		
		
	
							parent
							
								
									80dc67f85a
								
							
						
					
					
						commit
						323af987ed
					
				| 
						 | 
					@ -5327,6 +5327,7 @@ def parseRequestFile(reqFile, checkParams=True):
 | 
				
			||||||
                    continue
 | 
					                    continue
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            getPostReq = False
 | 
					            getPostReq = False
 | 
				
			||||||
 | 
					            forceBody = False
 | 
				
			||||||
            url = None
 | 
					            url = None
 | 
				
			||||||
            host = None
 | 
					            host = None
 | 
				
			||||||
            method = None
 | 
					            method = None
 | 
				
			||||||
| 
						 | 
					@ -5347,7 +5348,7 @@ def parseRequestFile(reqFile, checkParams=True):
 | 
				
			||||||
                line = line.strip('\r')
 | 
					                line = line.strip('\r')
 | 
				
			||||||
                match = re.search(r"\A([A-Z]+) (.+) HTTP/[\d.]+\Z", line) if not method else None
 | 
					                match = re.search(r"\A([A-Z]+) (.+) HTTP/[\d.]+\Z", line) if not method else None
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if len(line.strip()) == 0 and method and method != HTTPMETHOD.GET and data is None:
 | 
					                if len(line.strip()) == 0 and method and (method != HTTPMETHOD.GET or forceBody) and data is None:
 | 
				
			||||||
                    data = ""
 | 
					                    data = ""
 | 
				
			||||||
                    params = True
 | 
					                    params = True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -5394,7 +5395,7 @@ def parseRequestFile(reqFile, checkParams=True):
 | 
				
			||||||
                    # headers and consider the following lines as
 | 
					                    # headers and consider the following lines as
 | 
				
			||||||
                    # POSTed data
 | 
					                    # POSTed data
 | 
				
			||||||
                    if key.upper() == HTTP_HEADER.CONTENT_LENGTH.upper():
 | 
					                    if key.upper() == HTTP_HEADER.CONTENT_LENGTH.upper():
 | 
				
			||||||
                        data = ""
 | 
					                        forceBody = True
 | 
				
			||||||
                        params = True
 | 
					                        params = True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    # Avoid proxy and connection type related headers
 | 
					                    # Avoid proxy and connection type related headers
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -20,7 +20,7 @@ from thirdparty import six
 | 
				
			||||||
from thirdparty.six import unichr as _unichr
 | 
					from thirdparty.six import unichr as _unichr
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
 | 
					# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
 | 
				
			||||||
VERSION = "1.7.2.22"
 | 
					VERSION = "1.7.3.0"
 | 
				
			||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
 | 
					TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
 | 
				
			||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
 | 
					TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
 | 
				
			||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
 | 
					VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user