Path: blob/master/lib/msf/util/exe/linux/x64.rb
36043 views
module Msf::Util::EXE::Linux::X641include Msf::Util::EXE::Linux::Common23def self.included(base)4base.extend(ClassMethods)5end67module ClassMethods89# Create a 64-bit Linux ELF containing the payload provided in +code+10# to_linux_x64_elf11#12# @param framework [Msf::Framework]13# @param code [String]14# @param opts [Hash]15# @option [String] :template16# @return [String] Returns an elf17def to_linux_x64_elf(framework, code, opts = {})18Msf::Util::EXE::Common.to_exe_elf(framework, opts, "template_x64_linux.bin", code)19end2021# Create a 64-bit Linux ELF_DYN containing the payload provided in +code+22# to_linux_x64_elf_dll23#24# @param framework [Msf::Framework]25# @param code [String]26# @param opts [Hash]27# @option [String] :template28# @return [String] Returns an elf29def to_linux_x64_elf_dll(framework, code, opts = {})30Msf::Util::EXE::Common.to_exe_elf(framework, opts, "template_x64_linux_dll.bin", code)31end3233# Create a 64-bit Linux ELF containing the payload provided in +code+34# to_linux_x64_elf35#36# @param framework [Msf::Framework]37# @param code [String]38# @param opts [Hash]39# @option [String] :template40# @return [String] Returns an elf41def to_linux_x64_elf(framework, code, opts = {})42to_exe_elf(framework, opts, "template_x64_linux.bin", code)43end44end4546class << self47include ClassMethods48end49end505152