Path: blob/master/lib/msf/util/exe/solaris/x86.rb
57477 views
# -*- coding: binary -*-1module Msf::Util::EXE::Solaris::X862include Msf::Util::EXE::Common34def self.included(base)5base.extend(ClassMethods)6end78module ClassMethods9def to_executable(framework, code, fmt='elf', opts = {})10return to_solaris_x86_elf(framework, code, opts) if fmt == 'elf'11end12# Create a 32-bit Solaris ELF containing the payload provided in +code+13#14# @param framework [Msf::Framework]15# @param code [String]16# @param opts [Hash]17# @option [String] :template18# @return [String] Returns an elf19def to_solaris_x86_elf(framework, code, opts = {})20to_exe_elf(framework, opts, "template_x86_solaris.bin", code)21end22end2324class << self25include ClassMethods26end27end2829