mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-10-31 07:57:47 +03:00 
			
		
		
		
	full page read is not needed in DNS exfiltration mode
This commit is contained in:
		
							parent
							
								
									4e6fcce9ca
								
							
						
					
					
						commit
						09f2144485
					
				|  | @ -124,16 +124,19 @@ class Connect: | |||
|     @staticmethod | ||||
|     def __connReadProxy(conn): | ||||
|         retVal = "" | ||||
|         while True: | ||||
|             _ = conn.read(MAX_CONNECTION_CHUNK_SIZE) | ||||
|             if len(_) == MAX_CONNECTION_CHUNK_SIZE: | ||||
|                 warnMsg = "large response detected. This could take a while" | ||||
|                 singleTimeWarnMessage(warnMsg) | ||||
|                 _ = re.sub(r"(?si)%s.+?%s" % (kb.chars.stop, kb.chars.start), "%s%s%s" % (kb.chars.stop, LARGE_CHUNK_TRIM_MARKER, kb.chars.start), _) | ||||
|                 retVal += _ | ||||
|             else: | ||||
|                 retVal += _ | ||||
|                 break | ||||
| 
 | ||||
|         if not kb.dnsMode: | ||||
|             while True: | ||||
|                 _ = conn.read(MAX_CONNECTION_CHUNK_SIZE) | ||||
|                 if len(_) == MAX_CONNECTION_CHUNK_SIZE: | ||||
|                     warnMsg = "large response detected. This could take a while" | ||||
|                     singleTimeWarnMessage(warnMsg) | ||||
|                     _ = re.sub(r"(?si)%s.+?%s" % (kb.chars.stop, kb.chars.start), "%s%s%s" % (kb.chars.stop, LARGE_CHUNK_TRIM_MARKER, kb.chars.start), _) | ||||
|                     retVal += _ | ||||
|                 else: | ||||
|                     retVal += _ | ||||
|                     break | ||||
| 
 | ||||
|         return retVal | ||||
| 
 | ||||
|     @staticmethod | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user