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