This class provides access to the power of the remote machine (reboot, etc).
Reboots the remote machine.
# File lib/rex/post/meterpreter/extensions/stdapi/sys/power.rb, line 43 def Power.reboot(reason = 0) self._exitwindows(EWX_REBOOT, reason) end
Shuts down the remote machine.
# File lib/rex/post/meterpreter/extensions/stdapi/sys/power.rb, line 50 def Power.shutdown(force = 0, reason = 0) flags = EWX_POWEROFF flags |= EWX_FORCEIFHUNG if force == 1 flags |= EWX_FORCE if force == 2 self._exitwindows(flags, reason) end
Generated with the Darkfish Rdoc Generator 2.