{"id":13795543,"url":"https://github.com/ps4dev/elf-loader","last_synced_at":"2025-05-12T23:32:22.915Z","repository":{"id":219966554,"uuid":"58487948","full_name":"ps4dev/elf-loader","owner":"ps4dev","description":"Run ps4sdk elf files via TCP on you ps4","archived":false,"fork":false,"pushed_at":"2018-07-28T19:10:48.000Z","size":498,"stargazers_count":29,"open_issues_count":6,"forks_count":9,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-11-18T10:33:40.632Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ps4dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-10T19:26:33.000Z","updated_at":"2024-05-20T02:20:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c36fedb-bdf1-4a44-9a14-0ba3ee102925","html_url":"https://github.com/ps4dev/elf-loader","commit_stats":null,"previous_names":["ps4dev/elf-loader"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ps4dev%2Felf-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ps4dev%2Felf-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ps4dev%2Felf-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ps4dev%2Felf-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ps4dev","download_url":"https://codeload.github.com/ps4dev/elf-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253840965,"owners_count":21972570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T23:00:58.466Z","updated_at":"2025-05-12T23:32:22.576Z","avatar_url":"https://github.com/ps4dev.png","language":"JavaScript","readme":"# Elf loader\n\nRuns ps4sdk elf files in-process on your PS4.\n\n## Prerequisites\n* clang (not the OSX version though)\n* make\n* [ps4sdk](https://github.com/ps4dev/ps4sdk)\n* node.js to run server.js (or any alternative to serve /local)\n* socat, netcat, etc. to send files and to communicate with the standard IO\n\n## Important\n\nThe elf loader does not support dynamically linked executables. All libraries need to be statically linked into the executable. [ps4sdk](https://github.com/ps4dev/ps4sdk) provides a variaty of position independant, statically linkable libraries, such as a libc, for the PS4. Depending on their build system and requirenments, you can compile third party libraries using the ps4-lib target of the sdk. Alternatively you will have to alter their build system to compile them as PIC statically linked libraries.\n\n## Example\n```bash\n# Build as raw binary to bin/ and then convert to ldr.js in /local (you can 'make keepelf=1' to debug)\nmake clean \u0026\u0026 make\n\n# Start server\ncd local\nnode server.js\n\n# Browse ps4 browser to local server (\u003clocal\u003e:5350)\n# Wait until the browser hangs in 'step 5'\n\n# Connect debug/stdio channel\nsocat - TCP:\u003cps4\u003e:5052\n\n# Send elf file to the user space process for execution\nsocat -u FILE:ps4sdk-examples/libless/stress/bin/stress TCP:\u003cps4\u003e:5053\n# OR Send kernel elf file (mode for long-running code, or module-like code)\nsocat -u FILE:ps4sdk-examples/kernel/function-hook/bin/function-hook TCP:\u003cps4\u003e:5055\n# OR Send kernel elf file (runs in the browsers process, but is loaded and executed into the kernel)\nsocat -u FILE:ps4sdk-examples/kernel/cache/bin/cache TCP:\u003cps4\u003e:5054\n\n# Some examples (esp. kernel) use a second socket for their comminication. The default choice is 5088\n# Connect to it after the upload to trigger the execution of the code - please see the examples sources for more\nsocat - TCP:\u003cps4\u003e:5088\n```\n\n## Docker images\nA stand alone elf-loader container is available (but currently a bit large):\n\n```bash\n# Make sure newest container is used (only do this as needed)\ndocker pull ps4dev/elf-loader\n# Run the elf loader (listens on port 5350)\ndocker run -p 5350:5350 --rm ps4dev/elf-loader\u0026\n# Stop elf loader\ndocker kill $(docker ps -q -f ancestor=ps4dev/elf-loader)\n```\n","funding_links":[],"categories":["Dev Tools"],"sub_categories":["Remote Package Installers"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fps4dev%2Felf-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fps4dev%2Felf-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fps4dev%2Felf-loader/lists"}