/
githubmirror
/
metasploit-framework
Обзор
Документация
Войти
/
githubmirror
/
metasploit-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/msf/util/exe/linux/ppc64.rb
29 строк
728 B
Martin Sutovsky
Prepends binary coding to all platform-specific files for payload generating
24 мар 2026, 18:13
Не верифицирован
24 мар 2026, 18:13
7170c77
Код
Авторство
О чём код?
# -*- coding: binary -*- module Msf::Util::EXE::Linux::Ppc64 include Msf::Util::EXE::Common include Msf::Util::EXE::Linux::Common def self.included(base) base.extend(ClassMethods) end module ClassMethods # Create a PPC64 64-bit BE Linux ELF containing the payload provided in +code+ # to_linux_ppc64_elf # # @param framework [Msf::Framework] # @param code [String] # @param opts [Hash] # @option [String] :template # @return [String] Returns an elf def to_linux_ppc64_elf(framework, code, opts = {}) to_exe_elf(framework, opts, "template_ppc64_linux.bin", code, true) end end class << self include ClassMethods end end