<filename>pentestly-master/modules/pentestly/show_local_admins.py
from __future__ import print_function

import sys
import os

from libs.pentestlymodule import PentestlyModule

class Module(PentestlyModule):
    meta = {
        'name': 'Show local administrator accounts',
        'author': '<NAME> (@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 execute="True"')
