shadowbrokers-exploits/windows/Resources/Ops/PyScripts/lib/ops/data/whoami.py
2017-04-14 11:45:07 +02:00

7 lines
No EOL
354 B
Python

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