shadowbrokers-exploits/windows/Resources/Ops/PyScripts/lib/ops/data/whoami.py

7 lines
354 B
Python
Raw Normal View History

from ops.data import OpsClass, OpsField, DszObject, DszCommandObject, cmd_definitions
import dsz
if ('whoami' not in cmd_definitions):
dszwhoami = OpsClass('user', {'name': OpsField('name', dsz.TYPE_STRING)}, DszObject)
whoamicommand = OpsClass('whoami', {'user': dszwhoami}, DszCommandObject)
cmd_definitions['whoami'] = whoamicommand