Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/msf/util/exe/linux/ppce500v2.rb
36043 views
1
module Msf::Util::EXE::Linux::Ppce500v2
2
include Msf::Util::EXE::Common
3
include Msf::Util::EXE::Linux::Common
4
def self.included(base)
5
base.extend(ClassMethods)
6
end
7
8
module ClassMethods
9
10
# Create a PPC64 64-bit BE Linux ELF containing the payload provided in +code+
11
# to_linux_ppce500v2_elf
12
#
13
# @param framework [Msf::Framework]
14
# @param code [String]
15
# @param opts [Hash]
16
# @option [String] :template
17
# @return [String] Returns an elf
18
def to_linux_ppce500v2_elf(framework, code, opts = {})
19
to_exe_elf(framework, opts, "template_ppce500v2_linux.bin", code, true)
20
end
21
end
22
23
class << self
24
include ClassMethods
25
end
26
27
28
end
29
30