Add Linux LoongArch64 chmod payload - #21238
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new Metasploit single payload for Linux LoongArch64 that performs chmod (via fchmodat) on a caller-specified file path with a caller-specified octal mode, aligning with existing linux/*/chmod payload patterns.
Changes:
- Introduces
linux/loongarch64/chmodsingle payload module. - Implements LoongArch64 shellcode generation using
__NR_fchmodat+__NR_exit. - Adds
FILEandMODEdatastore options and encodesMODEinto the generated instruction stream.
smcintyre-r7
previously requested changes
Apr 16, 2026
Verification