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.
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 82 |
# File 'lib/rex/post/meterpreter/extensions/stdapi_webcam/stdapi_webcam.rb', line 49 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
42 43 44 |
# File 'lib/rex/post/meterpreter/extensions/stdapi_webcam/stdapi_webcam.rb', line 42 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.
87 88 89 90 91 |
# File 'lib/rex/post/meterpreter/extensions/stdapi_webcam/stdapi_webcam.rb', line 87 def brand(klass) klass = klass.dup klass.client = client return klass end |
#eventlog ⇒ Object
Returns a copy of the EventLog class.
110 111 112 |
# File 'lib/rex/post/meterpreter/extensions/stdapi_webcam/stdapi_webcam.rb', line 110 def eventlog brand(Rex::Post::Meterpreter::Extensions::Stdapi_Webcam::Sys::EventLog) end |
#power ⇒ Object
Returns a copy of the Power class.
117 118 119 |
# File 'lib/rex/post/meterpreter/extensions/stdapi_webcam/stdapi_webcam.rb', line 117 def power brand(Rex::Post::Meterpreter::Extensions::Stdapi_Webcam::Sys::Power) end |
#process ⇒ Object
Returns a copy of the Process class.
96 97 98 |
# File 'lib/rex/post/meterpreter/extensions/stdapi_webcam/stdapi_webcam.rb', line 96 def process brand(Rex::Post::Meterpreter::Extensions::Stdapi_Webcam::Sys::Process) end |
#registry ⇒ Object
Returns a copy of the Registry class.
103 104 105 |
# File 'lib/rex/post/meterpreter/extensions/stdapi_webcam/stdapi_webcam.rb', line 103 def registry brand(Rex::Post::Meterpreter::Extensions::Stdapi_Webcam::Sys::Registry) end |