Closed SCIF closed 4 years ago
You are missing the dlls from the 'dlls' subdirectory, eimgfs expects to find them in the same directory as the executable.
I just tried eimgfs on a debian 10 linux laptop, and confirmed that my code does still work on linux.
Unfortunately on my Mac with MacOS 10.15 it no longer does, since only 64 bit binaries are supported now by Apple.
Hi @nlitsme , thanks for the response.
Just curious if dlls can work on linux? I run this code on linux as well.
Hmmmm. I'm quite shocked. I was thinking dlls cannot work in linux. So, application worked without dll errors and produced log like:
ERROR(00000011): CreateDirectory(avic/22)
no fffb: blk: 00090009 0009402b 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
mg: 0009d001 884a76c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 5007a089 00000002
found xip
8b89a73c: romhdr dll:4001c001-4177c0db, phys:884a1000-8b89c934, ram:8b89d000-8e8a1000, copy:2, profile:00000000-00000000, drvglob:00000000-00000000, track:00000000-00000000
imgfs: partition table not found
ERROR(00000011): CreateDirectory(./xip)
033fa6d0 2012-07-19 02:24:30 1470976 M:[00000007] 1SegCore.dll
033f9f30 2012-07-19 05:13:33 95744 M:[00000007] afd.dll
…
Files were extracted in ./xip
! That's really good! But why it ignored -d
option?
I have updated dockerfile in order to copy dlls and make it fully working!
@nlitsme , could you explain what happens with directories? Thanks!
DLL execution is handled by the code in the dllloader directory, i wrote it to emulate loading the dlls and provide a tiny compatibility layer for basics like LocalAlloc. It only works for dll's with minimal dependencies, like the compression code.
"With directories", do you mean: why it does not save to the files to the directory specified after the -d
option? ... i wondered the same. it should have though. i will look into it.
I'm really happy with having this tool and extremely excited. However, I'm bare noob in this area and have a lot of question. Just curious if there is any chat/forum I can ask question regarding this gorgeous tool?
Ah, the order of arguments is important, put the -d /app/1/test/22
option before the -extractall
argument, and it will work.
I think you might still find people on https://forum.xda-developers.com/ which use it, that is where i originally published it, about 10 years ago.
And tried to extract files: