Path: blob/master/lib/msf/util/exe/linux/aarch64.rb
36043 views
module Msf::Util::EXE::Linux::Aarch641include Msf::Util::EXE::Common2include Msf::Util::EXE::Linux::Common34def self.included(base)5base.extend(ClassMethods)6end78module ClassMethods910# Create a AARCH64 64-bit LE Linux ELF containing the payload provided in +code+11# to_linux_aarch64_elf12#13# @param framework [Msf::Framework]14# @param code [String]15# @param opts [Hash]16# @option [String] :template17# @return [String] Returns an elf18def to_linux_aarch64_elf(framework, code, opts = {})19to_exe_elf(framework, opts, "template_aarch64_linux.bin", code)20end2122# Create a AARCH64 Linux ELF_DYN containing the payload provided in +code+23#24# @param framework [Msf::Framework]25# @param code [String]26# @param opts [Hash]27# @option [String] :template28# @return [String] Returns an elf29def to_linux_aarch64_elf_dll(framework, code, opts = {})30to_exe_elf(framework, opts, "template_aarch64_linux_dll.bin", code)31end32end3334class << self35include ClassMethods36end3738end394041