Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/msf/util/exe/solaris.rb
57467 views
1
# -*- coding: binary -*-
2
module Msf::Util::EXE::Solaris
3
include Msf::Util::EXE::Common
4
include Msf::Util::EXE::Solaris::X86
5
6
def self.included(base)
7
base.extend(ClassMethods)
8
end
9
10
module ClassMethods
11
def to_executable_solaris(framework, arch, code, fmt = 'elf', opts = {})
12
return to_executable_solaris_x86(framework, code, fmt, opts) if arch.index(ARCH_X86)
13
end
14
15
def to_executable_solaris_x86(framework, code, fmt = 'elf', opts = {})
16
return to_solaris_x86_elf(framework, code, opts) if fmt == 'elf'
17
end
18
end
19
20
class << self
21
include ClassMethods
22
end
23
end
24
25