Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/msf/util/exe/bsd/x86.rb
36043 views
1
module Msf::Util::EXE::Bsd::X86
2
include Msf::Util::EXE::Common
3
4
def self.included(base)
5
base.extend(ClassMethods)
6
end
7
8
module ClassMethods
9
# 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] :template
15
# @return [String] Returns an elf
16
def to_bsd_x86_elf(framework, code, opts = {})
17
to_exe_elf(framework, opts, "template_x86_bsd.bin", code)
18
end
19
20
end
21
22
class << self
23
include ClassMethods
24
end
25
end
26