Path: blob/master/lib/msf/util/exe/bsd/x86.rb
57477 views
# -*- coding: binary -*-1module Msf::Util::EXE::Bsd::X862include Msf::Util::EXE::Common34def self.included(base)5base.extend(ClassMethods)6end78module ClassMethods9# Create a 32-bit BSD (test on FreeBSD) ELF containing the payload provided in +code+10#11# @param framework [Msf::Framework]12# @param code [String]13# @param opts [Hash]14# @option [String] :template15# @return [String] Returns an elf16def to_bsd_x86_elf(framework, code, opts = {})17to_exe_elf(framework, opts, "template_x86_bsd.bin", code)18end1920end2122class << self23include ClassMethods24end25end2627