2012-06-29 00:18:28 -05:00
|
|
|
# -*- coding: binary -*-
|
2010-10-08 19:36:34 +00:00
|
|
|
|
2010-07-20 00:53:24 +00:00
|
|
|
|
|
|
|
|
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
|
2016-10-28 07:16:05 +10:00
|
|
|
self.base_platform = 'java'
|
2016-10-29 08:10:44 +10:00
|
|
|
self.base_arch = ARCH_JAVA
|
2010-07-20 00:53:24 +00:00
|
|
|
end
|
2022-02-11 11:43:35 +00:00
|
|
|
|
|
|
|
|
def native_arch
|
|
|
|
|
@native_arch ||= self.core.native_arch
|
|
|
|
|
end
|
2010-07-20 00:53:24 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
end
|