class Rex::Post::Meterpreter::Extensions::Stdapi::Sys::Power
This class provides access to the power of the remote machine (reboot, etc).
Attributes
client[RW]
Public Class Methods
reboot(force = 0, reason = 0)
click to toggle source
Reboots the remote machine.
# File lib/rex/post/meterpreter/extensions/stdapi/sys/power.rb, line 46 def Power.reboot(force = 0, reason = 0) self._exitwindows(EWX_REBOOT, reason, force) end
shutdown(force = 0, reason = 0)
click to toggle source
Shuts down the remote machine.
# File lib/rex/post/meterpreter/extensions/stdapi/sys/power.rb, line 53 def Power.shutdown(force = 0, reason = 0) self._exitwindows(EWX_POWEROFF, reason, force) end