2010-10-08 19:36:34 +00:00
|
|
|
##
|
|
|
|
# $Id$
|
|
|
|
##
|
|
|
|
|
2010-07-20 00:53:24 +00:00
|
|
|
require 'msf/base/sessions/meterpreter'
|
|
|
|
|
|
|
|
module Msf
|
|
|
|
module Sessions
|
|
|
|
|
|
|
|
###
|
|
|
|
#
|
|
|
|
# This class creates a platform-specific meterpreter session type
|
|
|
|
#
|
|
|
|
###
|
|
|
|
class Meterpreter_Java_Java < Msf::Sessions::Meterpreter
|
|
|
|
def supports_ssl?
|
|
|
|
false
|
|
|
|
end
|
|
|
|
def supports_zlib?
|
|
|
|
false
|
|
|
|
end
|
|
|
|
def initialize(rstream, opts={})
|
|
|
|
super
|
|
|
|
self.platform = 'java/java'
|
|
|
|
self.binary_suffix = 'jar'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|