mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 16:07:55 +03:00 
			
		
		
		
	Minor patches
This commit is contained in:
		
							parent
							
								
									404d8481ad
								
							
						
					
					
						commit
						87f6db467d
					
				|  | @ -4504,7 +4504,7 @@ def findPageForms(content, url, raise_=False, addToTargets=False): | ||||||
|         data = data.strip("['\"]") |         data = data.strip("['\"]") | ||||||
|         retVal.add((url, HTTPMETHOD.POST, data, conf.cookie, None)) |         retVal.add((url, HTTPMETHOD.POST, data, conf.cookie, None)) | ||||||
| 
 | 
 | ||||||
|     if not retVal: |     if not retVal and not conf.crawlDepth: | ||||||
|         errMsg = "there were no forms found at the given target URL" |         errMsg = "there were no forms found at the given target URL" | ||||||
|         if raise_: |         if raise_: | ||||||
|             raise SqlmapGenericException(errMsg) |             raise SqlmapGenericException(errMsg) | ||||||
|  |  | ||||||
|  | @ -18,7 +18,7 @@ from lib.core.enums import OS | ||||||
| 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.3.11.22" | VERSION = "1.3.11.23" | ||||||
| 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) | ||||||
|  |  | ||||||
|  | @ -27,6 +27,7 @@ except ImportError: | ||||||
|     pass |     pass | ||||||
| 
 | 
 | ||||||
| _protocols = filterNone(getattr(ssl, _, None) for _ in ("PROTOCOL_TLSv1_2", "PROTOCOL_TLSv1_1", "PROTOCOL_TLSv1", "PROTOCOL_SSLv3", "PROTOCOL_SSLv23", "PROTOCOL_SSLv2")) | _protocols = filterNone(getattr(ssl, _, None) for _ in ("PROTOCOL_TLSv1_2", "PROTOCOL_TLSv1_1", "PROTOCOL_TLSv1", "PROTOCOL_SSLv3", "PROTOCOL_SSLv23", "PROTOCOL_SSLv2")) | ||||||
|  | _lut = dict((getattr(ssl, _), _) for _ in dir(ssl) if _.startswith("PROTOCOL_")) | ||||||
| 
 | 
 | ||||||
| class HTTPSConnection(_http_client.HTTPSConnection): | class HTTPSConnection(_http_client.HTTPSConnection): | ||||||
|     """ |     """ | ||||||
|  | @ -66,7 +67,7 @@ class HTTPSConnection(_http_client.HTTPSConnection): | ||||||
|                         sock.close() |                         sock.close() | ||||||
|                 except (ssl.SSLError, socket.error, _http_client.BadStatusLine) as ex: |                 except (ssl.SSLError, socket.error, _http_client.BadStatusLine) as ex: | ||||||
|                     self._tunnel_host = None |                     self._tunnel_host = None | ||||||
|                     logger.debug("SSL connection error occurred ('%s')" % getSafeExString(ex)) |                     logger.debug("SSL connection error occurred for '%s' ('%s')" % (_lut[protocol], getSafeExString(ex))) | ||||||
| 
 | 
 | ||||||
|             if kb.tlsSNI.get(self.host) is None: |             if kb.tlsSNI.get(self.host) is None: | ||||||
|                 kb.tlsSNI[self.host] = success |                 kb.tlsSNI[self.host] = success | ||||||
|  | @ -86,7 +87,7 @@ class HTTPSConnection(_http_client.HTTPSConnection): | ||||||
|                         sock.close() |                         sock.close() | ||||||
|                 except (ssl.SSLError, socket.error, _http_client.BadStatusLine) as ex: |                 except (ssl.SSLError, socket.error, _http_client.BadStatusLine) as ex: | ||||||
|                     self._tunnel_host = None |                     self._tunnel_host = None | ||||||
|                     logger.debug("SSL connection error occurred ('%s')" % getSafeExString(ex)) |                     logger.debug("SSL connection error occurred for '%s' ('%s')" % (_lut[protocol], getSafeExString(ex))) | ||||||
| 
 | 
 | ||||||
|         if not success: |         if not success: | ||||||
|             errMsg = "can't establish SSL connection" |             errMsg = "can't establish SSL connection" | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user