30 lines
435 B
Ruby
30 lines
435 B
Ruby
##
|
|
# $Id$
|
|
##
|
|
|
|
require 'msf/base/sessions/meterpreter'
|
|
require 'msf/windows_error'
|
|
|
|
module Msf
|
|
module Sessions
|
|
|
|
###
|
|
#
|
|
# This class creates a platform-specific meterpreter session type
|
|
#
|
|
###
|
|
class Meterpreter_x86_Win < Msf::Sessions::Meterpreter
|
|
def initialize(rstream,opts={})
|
|
super
|
|
self.platform = 'x86/win32'
|
|
self.binary_suffix = 'dll'
|
|
end
|
|
|
|
def lookup_error(code)
|
|
Msf::WindowsError.description(code)
|
|
end
|
|
end
|
|
|
|
end
|
|
end
|