Skip to content

Commit 9efbeb9

Browse files
author
HD Moore
committed
Lands rapid7#4870 by adding two MIPS architectures to the Metasm case statement
2 parents 4b54517 + fb74136 commit 9efbeb9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/msf/core/payload.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,8 @@ def build(asm, off={})
552552
when ARCH_X64 then Metasm::X86_64.new
553553
when ARCH_PPC then Metasm::PowerPC.new
554554
when ARCH_ARMLE then Metasm::ARM.new
555+
when ARCH_MIPSLE then Metasm::MIPS.new(:little)
556+
when ARCH_MIPSBE then Metasm::MIPS.new(:big)
555557
else
556558
elog("Broken payload #{refname} has arch unsupported with assembly: #{module_info["Arch"].inspect}")
557559
elog("Call stack:\n#{caller.join("\n")}")

0 commit comments

Comments
 (0)