Class: Rex::Post::Meterpreter::Extensions::Espia::Espia
- Inherits:
-
Rex::Post::Meterpreter::Extension
- Object
- Rex::Post::Meterpreter::Extension
- Rex::Post::Meterpreter::Extensions::Espia::Espia
- Defined in:
- lib/rex/post/meterpreter/extensions/espia/espia.rb
Overview
This meterpreter extensions interface that is capable grab webcam frame and recor mic audio
Instance Attribute Summary
Attributes inherited from Rex::Post::Meterpreter::Extension
Class Method Summary collapse
Instance Method Summary collapse
- #espia_image_get_dev_screen ⇒ Object
-
#initialize(client) ⇒ Espia
constructor
A new instance of Espia.
Constructor Details
#initialize(client) ⇒ Espia
Returns a new instance of Espia.
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rex/post/meterpreter/extensions/espia/espia.rb', line 24 def initialize(client) super(client, 'espia') client.register_extension_aliases( [ { 'name' => 'espia', 'ext' => self }, ]) end |
Class Method Details
.extension_id ⇒ Object
20 21 22 |
# File 'lib/rex/post/meterpreter/extensions/espia/espia.rb', line 20 def self.extension_id EXTENSION_ID_ESPIA end |
Instance Method Details
#espia_image_get_dev_screen ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/rex/post/meterpreter/extensions/espia/espia.rb', line 36 def espia_image_get_dev_screen request = Packet.create_request(COMMAND_ID_ESPIA_IMAGE_GET_DEV_SCREEN) response = client.send_request( request ) if response.result == 0 response.get_tlv_value(TLV_TYPE_DEV_SCREEN) else nil end end |