RE: https://infosec.exchange/@barubary/117258063411390909 The Electron ASAR form...
Oriel Jutty :hhHHHAAAH: @barubary@infosec.exchange
RE: https://infosec.exchange/@barubary/117258063411390909
The Electron ASAR format is clownshoes, part 2.
The JSON index stores the archive structure in a tree. Every node in the tree is a JSON object. There are three kinds of nodes: (plain) files, symbolic links, and directories. However, there is no type field that tells you which kind a given node is. Instead you have to play guessing games:
- If it contains a
filesfield, it's a directory. - If it contains a
linkfield, it's a symbolic link. - If it contains a
sizefield, it's a plain file. - If it contains neither or multiple of the above, you can get fucked.