Path: blob/master/lib/msf/util/exe/linux/zarch.rb
36043 views
module Msf::Util::EXE::Linux::Zarch1include Msf::Util::EXE::Common2include Msf::Util::EXE::Linux::Common34def self.included(base)5base.extend(ClassMethods)6end78module ClassMethods910# Create a ZARCH Linux ELF containing the payload provided in +code+11#12# @param framework [Msf::Framework]13# @param code [String]14# @param opts [Hash]15# @option [String] :template16# @return [String] Returns an elf17def to_linux_zarch_elf(framework, code, opts = {})18to_exe_elf(framework, opts, "template_zarch_linux.bin", code)19end2021# Create a ZARCH Linux ELF_DYN containing the payload provided in +code+22#23# @param framework [Msf::Framework]24# @param code [String]25# @param opts [Hash]26# @option [String] :template27# @return [String] Returns an elf28def to_linux_zarch_elf_dll(framework, code, opts = {})29to_exe_elf(framework, opts, "template_zarch_linux_dll.bin", code)30end31end3233class << self34include ClassMethods35end3637end383940