diff --git a/lib/msf/util/exe.rb b/lib/msf/util/exe.rb index 5e01700639f2f..1e3f2ce930383 100644 --- a/lib/msf/util/exe.rb +++ b/lib/msf/util/exe.rb @@ -135,6 +135,8 @@ def to_executable_fmt(framework, arch, plat, code, fmt, exeopts) to_win32pe(framework, code, exeopts) when ARCH_X64 to_win64pe(framework, code, exeopts) + when ARCH_AARCH64 + to_winaarch64pe(framework, code, exeopts) end when 'exe-service' case arch @@ -154,7 +156,7 @@ def to_executable_fmt(framework, arch, plat, code, fmt, exeopts) case arch when ARCH_X86, nil to_winpe_only(framework, code, exeopts) - when ARCH_X64 + when ARCH_X64, ARCH_AARCH64 to_winpe_only(framework, code, exeopts, arch) end when 'msi'