from __future__ import print_function

import sys
import os

from libs.pentestlymodule import PentestlyModule

class Module(PentestlyModule):
    meta = {
        'name': 'Show local administrator accounts',
        'author': 'Cory Duplantis (@ctfhacker)',
        'description': 'Display all credentials that have administrator access',
        'query': 'SELECT * from pentestly_creds where execute="True"',
        'options': (
        ),
    }

    def module_run(self, hosts):
        self.do_query('SELECT * from pentestly_creds where access like "%Admin%"')
