MCPcopy Create free account
hub / github.com/AutoRecon/AutoRecon / run

Method run

autorecon/default-plugins/redis-cli.py:19–24  ·  view source on GitHub ↗
(self, service)

Source from the content-addressed store, hash-verified

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')

Callers

nothing calls this directly

Calls 2

readlineMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected