Path: blob/master/lib/msf/util/exe/solaris/x86.rb
36043 views
module Msf::Util::EXE::Solaris::X861include Msf::Util::EXE::Common23def self.included(base)4base.extend(ClassMethods)5end67module ClassMethods8def to_executable(framework, code, fmt='elf', opts = {})9return to_solaris_x86_elf(framework, code, opts) if fmt == 'elf'10end11# Create a 32-bit Solaris ELF containing the payload provided in +code+12#13# @param framework [Msf::Framework]14# @param code [String]15# @param opts [Hash]16# @option [String] :template17# @return [String] Returns an elf18def to_solaris_x86_elf(framework, code, opts = {})19to_exe_elf(framework, opts, "template_x86_solaris.bin", code)20end21end2223class << self24include ClassMethods25end26end2728