Skip to content

Commit 697b893

Browse files
committed
Land rapid7#9091, fix linux x86 elf-so generation
2 parents 7e338fd + d5cdd25 commit 697b893

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/msf/util/exe.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,6 +1100,17 @@ def self.to_linux_x64_elf(framework, code, opts = {})
11001100
to_exe_elf(framework, opts, "template_x64_linux.bin", code)
11011101
end
11021102

1103+
# Create a 32-bit Linux ELF_DYN containing the payload provided in +code+
1104+
#
1105+
# @param framework [Msf::Framework]
1106+
# @param code [String]
1107+
# @param opts [Hash]
1108+
# @option [String] :template
1109+
# @return [String] Returns an elf
1110+
def self.to_linux_x86_elf_dll(framework, code, opts = {})
1111+
to_exe_elf(framework, opts, "template_x86_linux_dll.bin", code)
1112+
end
1113+
11031114
# Create a 64-bit Linux ELF_DYN containing the payload provided in +code+
11041115
#
11051116
# @param framework [Msf::Framework]

0 commit comments

Comments
 (0)