mirror of
				https://github.com/jtesta/ssh-audit.git
				synced 2025-10-30 21:15:27 +01:00 
			
		
		
		
	Better output for OpenSSH patch-level.
This commit is contained in:
		
							
								
								
									
										10
									
								
								ssh-audit.py
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								ssh-audit.py
									
									
									
									
									
								
							| @@ -242,8 +242,14 @@ class SSH(object): | ||||
| 			out += self.product | ||||
| 			if self.version: | ||||
| 				out += ' {0}'.format(self.version) | ||||
| 			if self.patch: | ||||
| 				out += ' {0}'.format(self.patch) | ||||
| 			patch = self.patch | ||||
| 			if self.product == 'OpenSSH': | ||||
| 				mx = re.match('^(p\d)(.*)$', self.patch) | ||||
| 				if mx is not None: | ||||
| 					out += mx.group(1) | ||||
| 					patch = mx.group(2).strip() | ||||
| 			if patch: | ||||
| 				out += ' ({0})'.format(self.patch) | ||||
| 			if self.os: | ||||
| 				out += ' running on {0}'.format(self.os) | ||||
| 			return out | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Andris Raugulis
					Andris Raugulis