Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/msf/util/exe/linux/mipsle.rb
57477 views
1
# -*- coding: binary -*-
2
module Msf::Util::EXE::Linux::Mipsle
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 MIPSLE 64-bit LE Linux ELF containing the payload provided in +code+
13
# to_linux_mipsle_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_mipsle_elf(framework, code, opts = {})
21
to_exe_elf(framework, opts, "template_mipsle_linux.bin", code)
22
end
23
end
24
25
class << self
26
include ClassMethods
27
end
28
29
end
30
31