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
57477 views
1
# -*- coding: binary -*-
2
module Msf::Util::EXE::Linux::Ppc
3
include Msf::Util::EXE::Common
4
include Msf::Util::EXE::Linux::Common
5
6
def self.included(base)
7
base.extend(ClassMethods)
8
end
9
10
module ClassMethods
11
12
# Create a PPC 32-bit BE Linux ELF containing the payload provided in +code+
13
# to_linux_ppc_elf
14
#
15
# @param framework [Msf::Framework]
16
# @param code [String]
17
# @param opts [Hash]
18
# @option [String] :template
19
# @return [String] Returns an elf
20
def to_linux_ppc_elf(framework, code, opts = {})
21
to_exe_elf(framework, opts, "template_ppc_linux.bin", code)
22
end
23
end
24
25
class << self
26
include ClassMethods
27
end
28
29
30
end
31
32