merging in my branched changes, eventlogging, power, etc
git-svn-id: file:///home/svn/incoming/trunk@2674 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
4caa017d09
commit
0fedc3b76f
|
@ -164,3 +164,15 @@ EVENTLOG_SEQUENTIAL_READ = 0x00000001
|
|||
EVENTLOG_SEEK_READ = 0x00000002
|
||||
EVENTLOG_FORWARDS_READ = 0x00000004
|
||||
EVENTLOG_BACKWARDS_READ = 0x00000008
|
||||
|
||||
##
|
||||
#
|
||||
# Event Log
|
||||
#
|
||||
##
|
||||
EWX_LOGOFF = 0
|
||||
EWX_SHUTDOWN = 0x00000001
|
||||
EWX_REBOOT = 0x00000002
|
||||
EWX_FORCE = 0x00000004
|
||||
EWX_POWEROFF = 0x00000008
|
||||
EWX_FORCEIFHUNG = 0x00000010
|
||||
|
|
|
@ -12,6 +12,7 @@ require 'Rex/Post/Meterpreter/Extensions/Stdapi/Net/Socket'
|
|||
require 'Rex/Post/Meterpreter/Extensions/Stdapi/Sys/Process'
|
||||
require 'Rex/Post/Meterpreter/Extensions/Stdapi/Sys/Registry'
|
||||
require 'Rex/Post/Meterpreter/Extensions/Stdapi/Sys/EventLog'
|
||||
require 'Rex/Post/Meterpreter/Extensions/Stdapi/Sys/Power'
|
||||
require 'Rex/Post/Meterpreter/Extensions/Stdapi/UI'
|
||||
|
||||
module Rex
|
||||
|
@ -51,7 +52,8 @@ class Stdapi < Extension
|
|||
{
|
||||
'process' => self.process,
|
||||
'registry' => self.registry,
|
||||
'eventlog' => self.eventlog
|
||||
'eventlog' => self.eventlog,
|
||||
'power' => self.power
|
||||
})
|
||||
},
|
||||
{
|
||||
|
@ -106,6 +108,11 @@ class Stdapi < Extension
|
|||
def eventlog
|
||||
brand(Rex::Post::Meterpreter::Extensions::Stdapi::Sys::EventLog)
|
||||
end
|
||||
|
||||
# Returns a copy of the Power class
|
||||
def power
|
||||
brand(Rex::Post::Meterpreter::Extensions::Stdapi::Sys::Power)
|
||||
end
|
||||
end
|
||||
|
||||
end; end; end; end; end
|
||||
|
|
Loading…
Reference in New Issue