Exemple #1
0
def cangetadmin(args):
    '''
    '''
    printT("Current thread is be able to get administrator access:")
    imp = Impersonate()
    status = imp.canGetAdminAccess()
    if status == True:
        printG("Yes. Current thread is be able to get administrator access")
    else:
        printB("No. Current thread is NOT able to get administrator access")
Exemple #2
0
# -*- coding: UTF-8 -*-
# By Quentin HARDY ([email protected]) - bobsecq

import sys
sys.path.append('../')
from impersonate import Impersonate
from utils import *

configureLogging()
imp = Impersonate()
print("Is current user can have administration access",
      imp.canGetAdminAccess())