Gallopsled / pwntools

CTF framework and exploit development library
http://pwntools.com
Other
11.99k stars 1.7k forks source link

MIPS ELF loader #2295

Open enty8080 opened 11 months ago

enty8080 commented 11 months ago

Hello,

There are ELF loaders for x64, x86 and arm. I was wondering if it is possible to achieve the same thing on MIPS.

I am not really good at MIPS assembly but I still think it would be wonderful if pwntools had the loader for this architecture.

Thought, I'll try to code it myself (using my dramatically limited skills and knowledge of MIPS) :P However, it would be great if I could contact the creator of the original loader, so he could point me in the right direction, if it is an appropriate request.

Regards, Ivan Nikolsky (@enty8080)

Arusekk commented 11 months ago

Email z czwartku 2 listopada 2023 od Ivana Nikolsky'ego:

There are ELF loaders for x64, x86 and arm. I was wondering if it is possible to achieve the same thing on MIPS.

It surely is. I think it would not be that different from arm/aarch64 as they have similar instruction sets.

Thought, I'll try to code it myself (using my dramatically limited skills and knowledge of MIPS) :P

Great idea! You can take existing loaders as an inspiration, sine the important constants are the same on every architecture. Keep in mind the so-called delayed jump slot, which is MIPS-unique and can induce a lot of headache.

However, it would be great if I could contact the creator of the original loader, so he could point me in the right direction, if it is an appropriate request.

Unfortunately, the code comes from an internal repo of SamuraiCTF (you can try to ask them if they know the original creator), but the guy who committed it to pwntools has sadly passed away half a year ago.

-- Wysłane z mojego urządzenia Sailfish