Closed Cdivyam closed 1 year ago
Hello @Cdivyam! Thanks for filing your issue. It looks your input app.asar
is breaking the asar
as you suspected. I tried to bump asar
to the latest version. Would it be possible for you to use https://github.com/doyensec/electronegativity/commit/27e772f7b148aca40f5a91fabbd1f906d11a6e6f and try again on the same archive or share the app.asar
with us? Is the npx asar extract app.asar <destfolder>
itself working?
PickleIterator
is part of the chromium-pickle-js
package, which is used to serialize and deserialize data in Chromium's pickle format. In your specific case, the getReadPayloadOffsetAndAdvance
function is called to get the offset of the data and advance the iterator, but it fails to read the data of the specified length.
This could be due to:
Hello @Cdivyam! Thanks for filing your issue. It looks your input
app.asar
is breaking theasar
as you suspected. I tried to bumpasar
to the latest version. Would it be possible for you to use 27e772f and try again on the same archive or share theapp.asar
with us? Is thenpx asar extract app.asar <destfolder>
itself working?
Hi @phosphore thanks for information.
I have tried running asar extract app.asar <destfolder>
, even that gives the same issue as above.
My asar
version is 3.2.0
.
The asar file is just 47 MB so I don't think it should be a issue with memory.
ASAR FILE https://drive.google.com/file/d/1RXk1O-GES--rqEPtC5uNowOrMq6x_NoS/view?usp=share_link
An ASAR archive typically consists of two parts:
It seems that the asar file you attached does not contain a properly formatted JSON string representing the file system structure, hence the ASAR library is not able to read or extract the archive correctly. Investigating it a bit more, you can see that in place of that you have an HEX string of characters. I'll leave this reversing part to you.
Cheers,
Thanks for the inputs @phosphore . It is good to know that the library is not at fault.
Describe the bug I get the following error when I try to read certain
.asar
files.To Reproduce
electron/asar
have reported a similar bug 5 years ago but no information https://github.com/electron/asar/issues/136Stacktraces
Platform (please complete the following information):
Additional context Is the issue primarily with chromium-pickle-js? How can we get past this issue. I have tried unpacking
electron.asar
and it works well, but not theapp.asar
.