| 17 | return False |
| 18 | |
| 19 | async def run(self, service): |
| 20 | if which('redis-cli') is not None: |
| 21 | _, stdout, _ = await service.execute('redis-cli -p {port} -h {address} INFO', outfile='{protocol}_{port}_redis_info.txt') |
| 22 | if not (await stdout.readline()).startswith('NOAUTH Authentication required'): |
| 23 | await service.execute('redis-cli -p {port} -h {address} CONFIG GET \'*\'', outfile='{protocol}_{port}_redis_config.txt') |
| 24 | await service.execute('redis-cli -p {port} -h {address} CLIENT LIST', outfile='{protocol}_{port}_redis_client-list.txt') |