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

7 lines
No EOL
512 B
Python

from ops.data import OpsClass, OpsField, DszObject, DszCommandObject, cmd_definitions
import dsz
if ('uptime' not in cmd_definitions):
dszuptime = OpsClass('uptime', {'days': OpsField('days', dsz.TYPE_INT), 'hours': OpsField('hours', dsz.TYPE_INT), 'minutes': OpsField('minutes', dsz.TYPE_INT), 'seconds': OpsField('seconds', dsz.TYPE_INT)}, DszObject)
uptimecommand = OpsClass('uptime', {'idletime': dszuptime, 'uptime': dszuptime}, DszCommandObject)
cmd_definitions['uptime'] = uptimecommand