30 lines
432 B
Ruby
30 lines
432 B
Ruby
# -*- coding: binary -*-
|
|
|
|
require 'msf/base/sessions/meterpreter'
|
|
|
|
module Msf
|
|
module Sessions
|
|
|
|
###
|
|
#
|
|
# This class creates a platform-specific meterpreter session type
|
|
#
|
|
###
|
|
class Meterpreter_Php_Php < Msf::Sessions::Meterpreter
|
|
def supports_ssl?
|
|
false
|
|
end
|
|
def supports_zlib?
|
|
false
|
|
end
|
|
def initialize(rstream, opts={})
|
|
super
|
|
self.platform = 'php/php'
|
|
self.binary_suffix = 'php'
|
|
end
|
|
end
|
|
|
|
end
|
|
end
|
|
|