2013-08-06 03:38:49 +00:00
|
|
|
# -*- coding: binary -*-
|
|
|
|
|
|
|
|
require 'msf/base/sessions/meterpreter'
|
|
|
|
|
|
|
|
module Msf
|
|
|
|
module Sessions
|
|
|
|
|
|
|
|
###
|
|
|
|
#
|
|
|
|
# This class creates a platform-specific meterpreter session type
|
|
|
|
#
|
|
|
|
###
|
|
|
|
class Meterpreter_Python_Python < Msf::Sessions::Meterpreter
|
2013-08-30 21:28:33 +00:00
|
|
|
def supports_ssl?
|
|
|
|
false
|
|
|
|
end
|
|
|
|
def supports_zlib?
|
|
|
|
false
|
|
|
|
end
|
|
|
|
def initialize(rstream, opts={})
|
|
|
|
super
|
|
|
|
self.platform = 'python/python'
|
|
|
|
self.binary_suffix = 'py'
|
|
|
|
end
|
2013-08-06 03:38:49 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|