mirror of
				https://github.com/jtesta/ssh-audit.git
				synced 2025-10-30 04:55:26 +01:00 
			
		
		
		
	Fix: Do not hang, while reading banner.
This commit is contained in:
		| @@ -415,9 +415,10 @@ class SSH(object): | ||||
| 			if self.__state < self.SM_BANNER_SENT: | ||||
| 				self.send_banner() | ||||
| 			while self.__banner is None: | ||||
| 				s, e = self.recv() | ||||
| 				if s < 0: | ||||
| 					break | ||||
| 				if not s > 0: | ||||
| 					s, e = self.recv() | ||||
| 					if s < 0: | ||||
| 						break | ||||
| 				while self.__banner is None and self.unread_len > 0: | ||||
| 					line = self.read_line() | ||||
| 					if len(line.strip()) == 0: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Andris Raugulis
					Andris Raugulis