Class: Rex::Post::Meterpreter::Extensions::Stdapi_Webcam::Stdapi_Webcam
- Inherits:
-
Rex::Post::Meterpreter::Extension
- Object
- Rex::Post::Meterpreter::Extension
- Rex::Post::Meterpreter::Extensions::Stdapi_Webcam::Stdapi_Webcam
- Defined in:
- lib/rex/post/meterpreter/extensions/stdapi_webcam/stdapi_webcam.rb
Instance Attribute Summary
Attributes inherited from Rex::Post::Meterpreter::Extension
Class Method Summary collapse
Instance Method Summary collapse
-
#brand(klass) ⇒ Object
Sets the client instance on a duplicated copy of the supplied class.
-
#eventlog ⇒ Object
Returns a copy of the EventLog class.
-
#initialize(client) ⇒ Stdapi_Webcam
constructor
Initializes an instance of the Standard API (Webcam Namespace) extension.
-
#power ⇒ Object
Returns a copy of the Power class.
-
#process ⇒ Object
Returns a copy of the Process class.
-
#registry ⇒ Object
Returns a copy of the Registry class.
Constructor Details
#initialize(client) ⇒ Stdapi_Webcam
Initializes an instance of the Standard API (Webcam Namespace) extension.
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/rex/post/meterpreter/extensions/stdapi_webcam/stdapi_webcam.rb', line 48 def initialize(client) super(client, 'stdapi_webcam') # Alias the following things on the client object so that they # can be directly referenced client.register_extension_aliases( [ { 'name' => 'audio_output', 'ext' => Rex::Post::Meterpreter::Extensions::Stdapi_Webcam::AudioOutput::AudioOutput.new(client) }, { 'name' => 'mic', 'ext' => Rex::Post::Meterpreter::Extensions::Stdapi_Webcam::Mic::Mic.new(client) }, { 'name' => 'sys', 'ext' => ObjectAliases.new( { 'config' => Rex::Post::Meterpreter::Extensions::Stdapi_Webcam::Sys::Config.new(client), 'process' => process, 'registry' => registry, 'eventlog' => eventlog, 'power' => power } ) }, { 'name' => 'webcam', 'ext' => Rex::Post::Meterpreter::Extensions::Stdapi_Webcam::Webcam::Webcam.new(client) }, ] ) end |
Class Method Details
.extension_id ⇒ Object
41 42 43 |
# File 'lib/rex/post/meterpreter/extensions/stdapi_webcam/stdapi_webcam.rb', line 41 def self.extension_id Rex::Post::Meterpreter::Extensions::Stdapi::EXTENSION_ID_STDAPI end |
Instance Method Details
#brand(klass) ⇒ Object
Sets the client instance on a duplicated copy of the supplied class.
86 87 88 89 90 |
# File 'lib/rex/post/meterpreter/extensions/stdapi_webcam/stdapi_webcam.rb', line 86 def brand(klass) klass = klass.dup klass.client = client return klass end |
#eventlog ⇒ Object
Returns a copy of the EventLog class.
109 110 111 |
# File 'lib/rex/post/meterpreter/extensions/stdapi_webcam/stdapi_webcam.rb', line 109 def eventlog brand(Rex::Post::Meterpreter::Extensions::Stdapi_Webcam::Sys::EventLog) end |
#power ⇒ Object
Returns a copy of the Power class.
116 117 118 |
# File 'lib/rex/post/meterpreter/extensions/stdapi_webcam/stdapi_webcam.rb', line 116 def power brand(Rex::Post::Meterpreter::Extensions::Stdapi_Webcam::Sys::Power) end |
#process ⇒ Object
Returns a copy of the Process class.
95 96 97 |
# File 'lib/rex/post/meterpreter/extensions/stdapi_webcam/stdapi_webcam.rb', line 95 def process brand(Rex::Post::Meterpreter::Extensions::Stdapi_Webcam::Sys::Process) end |
#registry ⇒ Object
Returns a copy of the Registry class.
102 103 104 |
# File 'lib/rex/post/meterpreter/extensions/stdapi_webcam/stdapi_webcam.rb', line 102 def registry brand(Rex::Post::Meterpreter::Extensions::Stdapi_Webcam::Sys::Registry) end |