Skip to content

Commit 4ec0faf

Browse files
committed
fix aarch64 cmdstager
1 parent f3e2f4d commit 4ec0faf

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

lib/msf/util/exe.rb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ def self.to_linux_x64_elf_dll(framework, code, opts = {})
11221122
to_exe_elf(framework, opts, "template_x64_linux_dll.bin", code)
11231123
end
11241124

1125-
# self.to_linux_mipsle_elf
1125+
# self.to_linux_armle_elf
11261126
#
11271127
# @param framework [Msf::Framework]
11281128
# @param code [String]
@@ -1133,6 +1133,17 @@ def self.to_linux_armle_elf(framework, code, opts = {})
11331133
to_exe_elf(framework, opts, "template_armle_linux.bin", code)
11341134
end
11351135

1136+
# self.to_linux_aarch64_elf
1137+
#
1138+
# @param framework [Msf::Framework]
1139+
# @param code [String]
1140+
# @param opts [Hash]
1141+
# @option [String] :template
1142+
# @return [String] Returns an elf
1143+
def self.to_linux_aarch64_elf(framework, code, opts = {})
1144+
to_exe_elf(framework, opts, "template_aarch64_linux.bin", code)
1145+
end
1146+
11361147
# self.to_linux_mipsle_elf
11371148
# Little Endian
11381149
# @param framework [Msf::Framework]

0 commit comments

Comments
 (0)