3 ms·
> I didn't know one Electron app could target the other. An Electron app consists of two parts: HTML5 (which can run Javascript, but within a browser-like sand
by derefr 8y ago
> I didn't know one Electron app could target the other.
An Electron app consists of two parts: HTML5 (which can run Javascript, but within a browser-like sandbox), and native Javascript code, running under Node.js with no sandbox whatsoever. The native half of an Electron app can do anything to your filesystem (including the parts that contain other applications) that any other native app can do.
- rmrfrmrf 8y agoI'm not sure how easy that would be since you're dealing with ASAR (just a binary encoding but definitely not as easy as modifying plain JS files) and code signing.
- arvidkahl 8y agoThere is a node-js package to pack and unpack asar files. You can modify any asar archive by unpacking, copying/editing and re-packing. The signature would obviously change, but most electron apps really don't check for that (yet).