mirror of
				https://github.com/jtesta/ssh-audit.git
				synced 2025-11-04 11:12:15 +01:00 
			
		
		
		
	Fix: Do not hang, while reading banner.
This commit is contained in:
		@@ -415,6 +415,7 @@ class SSH(object):
 | 
				
			|||||||
			if self.__state < self.SM_BANNER_SENT:
 | 
								if self.__state < self.SM_BANNER_SENT:
 | 
				
			||||||
				self.send_banner()
 | 
									self.send_banner()
 | 
				
			||||||
			while self.__banner is None:
 | 
								while self.__banner is None:
 | 
				
			||||||
 | 
									if not s > 0:
 | 
				
			||||||
					s, e = self.recv()
 | 
										s, e = self.recv()
 | 
				
			||||||
					if s < 0:
 | 
										if s < 0:
 | 
				
			||||||
						break
 | 
											break
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user