Recently
mtnjustme let us know about a utility called BIN2JS (Binary 2 JavaScript) to convert PlayStation 4 v4.05 / v4.55
payload.bin files into
payload.js files used when creating Web / USB wifi versions.
Below is a BIN2JS Github repository by
@cfwprophet alongside a compiled version from
RetroGamer_74 with a roughly translated guide by
@fabrebatalla18 for those interested.
Download:
WEB Base 4.05.zip / WEB Base 4.55.zip (Confirmed working) /
bin2js.py (
Bin2js 6.72 Al Azif script via
Red-J)
Spoiler: Depreciated
Previously we've seen both a
Setting Up & Building Payload.bin and a
Building PlayStation 4 Payloads tutorial for those who missed them.
From the
ReadMe.md:
Binary 2 JavaScript
A simple tool to convert a binary file which will be mostly a payload, to a unsigned integer 32 Array, embeded into a JavaScript function call. The application is ready to use for the PS4 OpenSource Hacking Community.
- Fixed a bug on the bin conversion routine.
- Added a second format for the .js to write. Simple use any flag to trigger it. Added Vortex Payload Format.
- Added back conversion support for all 3 formats.
Code:
Flags: -1 = Foramt1 u32[] -2 = Format2 p.write4addr.add(... -3 = Format3 payload = [.... -4 = js2bin
And here's the tutorial from...