Class: Rex::Post::Meterpreter::Extensions::Espia::Espia

Inherits:
Rex::Post::Meterpreter::Extension show all
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

#client, #name

Class Method Summary collapse

Instance Method Summary collapse

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_idObject



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_screenObject



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