Path: blob/master/lib/msf/util/exe/linux/loongarch64.rb
36045 views
module Msf::Util::EXE::Linux::Loongarch641include Msf::Util::EXE::Common2include Msf::Util::EXE::Linux::Common3def self.included(base)4base.extend(ClassMethods)5end67module ClassMethods8# Create a LOONGARCH64 64-bit LE Linux ELF containing the payload provided in +code+9# to_linux_loongarch64_elf10#11# @param framework [Msf::Framework]12# @param code [String]13# @param opts [Hash]14# @option [String] :template15# @return [String] Returns an elf16def to_linux_loongarch64_elf(framework, code, opts = {})17to_exe_elf(framework, opts, "template_loongarch64_linux.bin", code)18end1920# Create a LOONGARCH64 64-bit LE Linux ELF_DYN containing the payload provided in +code+21# to_linux_loongarch64_elf_dll22#23# @param framework [Msf::Framework]24# @param code [String]25# @param opts [Hash]26# @option [String] :template27# @return [String] Returns an elf28def to_linux_loongarch64_elf_dll(framework, code, opts = {})29to_exe_elf(framework, opts, "template_loongarch64_linux_dll.bin", code)30end31end3233class << self34include ClassMethods35end3637end383940