Skip to content

Commit

Permalink
Land #19478, Post::Linux::Kernel.kernel_arch: Add support for RISC-V …
Browse files Browse the repository at this point in the history
…and LoongArch
  • Loading branch information
adfoster-r7 authored Sep 23, 2024
2 parents a27d491 + a6ccce8 commit feb9ebd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ GEM
reline (0.5.8)
io-console (~> 0.5)
require_all (3.0.0)
rex-arch (0.1.15)
rex-arch (0.1.16)
rex-text
rex-bin_tools (0.1.9)
metasm
Expand Down
3 changes: 3 additions & 0 deletions lib/msf/core/post/linux/kernel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def kernel_arch
return ARCH_MIPS if arch == 'mips'
return ARCH_MIPS64 if arch == 'mips64'
return ARCH_SPARC if arch == 'sparc'
return ARCH_RISCV32LE if arch == 'riscv32'
return ARCH_RISCV64LE if arch == 'riscv64'
return ARCH_LOONGARCH64 if arch == 'loongarch64'
arch
end

Expand Down

0 comments on commit feb9ebd

Please sign in to comment.