Path: blob/master/lib/msf/util/exe/linux/zarch.rb
57477 views
# -*- coding: binary -*-1module Msf::Util::EXE::Linux::Zarch2include Msf::Util::EXE::Common3include Msf::Util::EXE::Linux::Common45def self.included(base)6base.extend(ClassMethods)7end89module ClassMethods1011# Create a ZARCH Linux ELF containing the payload provided in +code+12#13# @param framework [Msf::Framework]14# @param code [String]15# @param opts [Hash]16# @option [String] :template17# @return [String] Returns an elf18def to_linux_zarch_elf(framework, code, opts = {})19to_exe_elf(framework, opts, "template_zarch_linux.bin", code)20end2122# Create a ZARCH 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_zarch_elf_dll(framework, code, opts = {})30to_exe_elf(framework, opts, "template_zarch_linux_dll.bin", code)31end32end3334class << self35include ClassMethods36end3738end394041