| 1 | from autorecon.plugins import ServiceScan |
| 2 | |
| 3 | class SSLScan(ServiceScan): |
| 4 | |
| 5 | def __init__(self): |
| 6 | super().__init__() |
| 7 | self.name = "SSL Scan" |
| 8 | self.tags = ['default', 'safe', 'ssl', 'tls'] |
| 9 | |
| 10 | def configure(self): |
| 11 | self.match_all_service_names(True) |
| 12 | self.require_ssl(True) |
| 13 | |
| 14 | async def run(self, service): |
| 15 | if service.protocol == 'tcp' and service.secure: |
| 16 | await service.execute('sslscan --show-certificate --no-colour {addressv6}:{port} 2>&1', outfile='{protocol}_{port}_sslscan.html') |
nothing calls this directly
no outgoing calls
no test coverage detected