Skip to content

Add Linux LoongArch64 execute command payload#21239

Open
bcoles wants to merge 1 commit intorapid7:masterfrom
bcoles:loongarch64-exec
Open

Add Linux LoongArch64 execute command payload#21239
bcoles wants to merge 1 commit intorapid7:masterfrom
bcoles:loongarch64-exec

Conversation

@bcoles
Copy link
Copy Markdown
Contributor

@bcoles bcoles commented Apr 6, 2026

Verification

$ ./msfvenom -p linux/loongarch64/exec CMD="echo hello world>/tmp/asdf" -f elf -o exec.elf && chmod +x exec.elf 
[-] No platform was selected, choosing Msf::Module::Platform::Linux from the payload
[-] No arch selected, selecting arch: loongarch64 from the payload
No encoder specified, outputting raw payload
Payload size: 108 bytes
Final size of elf file: 228 bytes
Saved as: exec.elf
$ /home/user/qemu/build/qemu-loongarch64 -strace ./exec.elf 
3127512 execve("/bin/sh",{"/bin/sh","-c","echo hello world>/tmp/asdf",NULL})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants