{"id":20083424,"url":"https://github.com/xfangfang/pppwn_cpp","last_synced_at":"2025-04-06T07:11:20.489Z","repository":{"id":238557465,"uuid":"796768691","full_name":"xfangfang/PPPwn_cpp","owner":"xfangfang","description":"C++ rewrite of PPPwn (PlayStation 4 PPPoE RCE)","archived":false,"fork":false,"pushed_at":"2024-05-29T02:12:32.000Z","size":198,"stargazers_count":294,"open_issues_count":10,"forks_count":37,"subscribers_count":14,"default_branch":"main","last_synced_at":"2024-05-29T04:10:02.721Z","etag":null,"topics":["pppwn","ps4","ps4-jailbreak","ps4exploit"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xfangfang.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":"2024-05-06T15:37:25.000Z","updated_at":"2024-06-01T14:27:09.330Z","dependencies_parsed_at":"2024-06-01T14:27:03.565Z","dependency_job_id":null,"html_url":"https://github.com/xfangfang/PPPwn_cpp","commit_stats":null,"previous_names":["xfangfang/pppwn_cpp"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xfangfang%2FPPPwn_cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xfangfang%2FPPPwn_cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xfangfang%2FPPPwn_cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xfangfang%2FPPPwn_cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xfangfang","download_url":"https://codeload.github.com/xfangfang/PPPwn_cpp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445669,"owners_count":20939958,"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":["pppwn","ps4","ps4-jailbreak","ps4exploit"],"created_at":"2024-11-13T15:47:11.383Z","updated_at":"2025-04-06T07:11:20.464Z","avatar_url":"https://github.com/xfangfang.png","language":"C++","readme":"# PPPwn c++\n\nThis is the C++ rewrite of [PPPwn](https://github.com/TheOfficialFloW/PPPwn)\n\n# Features\n\n- Smaller binary size\n- A wide range of CPU architectures and systems are supported\n- Run faster under Windows (more accurate sleep time)\n- Restart automatically when failing\n- Can be compiled as a library integrated into your application\n\n# Nightly build\n\nYou can download the latest build from [nightly.link](https://nightly.link/xfangfang/PPPwn_cpp/workflows/ci.yaml/main?status=completed).\n\nFor Windows users, you need to install [npcap](https://npcap.com) before run this program.\nThere are lots of GUI wrapper for pppwn_cpp, it's better to use them if you are not familiar with command line.\n\nFor macOS users, you need to run `sudo xattr -rd com.apple.quarantine \u003cpath-to-pppwn\u003e` after download.\nPlease refer to [#10](https://github.com/xfangfang/PPPwn_cpp/issues/10) for more information.\n\n# Usage\n\n### show help\n\n```shell\npppwn\n```\n\n### list interfaces\n\n```shell\npppwn list\n```\n\n### run the exploit\n\n```shell\npppwn --interface en0 --fw 1100 --stage1 \"stage1.bin\" --stage2 \"stage2.bin\" --timeout 10 --auto-retry\n```\n\n- `-i` `--interface`: the network interface which connected to ps4\n- `--fw`: the firmware version of the target ps4 (default: `1100`)\n- `-s1` `--stage1`: the path to the stage1 payload (default: `stage1/stage1.bin`)\n- `-s2` `--stage2`: the path to the stage2 payload (default: `stage2/stage2.bin`)\n- `-t` `--timeout`: the timeout in seconds for ps4 response, 0 means always wait (default: `0`)\n- `-wap` `--wait-after-pin`: the waiting time in seconds after first round CPU pinning (default: `1`)\n- `-gd` `--groom-delay`: wait for 1ms every `groom-delay` rounds during Heap grooming (default: `4`)\n- `-bs` `--buffer-size`: PCAP buffer size in bytes, less than 100 indicates default value (usually 2MB) (default: `0`)\n- `-a` `--auto-retry`: automatically retry when fails or timeout\n- `-nw` `--no-wait-padi`: don't wait one more [PADI](https://en.wikipedia.org/wiki/Point-to-Point_Protocol_over_Ethernet#Client_to_server:_Initiation_(PADI)) before starting the exploit\n- `-rs` `--real-sleep`: use CPU for more precise sleep time (Only used when execution speed is too slow)\n- `-old` `--old-ipv6`: use previous IPv6 address to exploit (Only used when the exploit fails)\n- `--web`: use the web interface\n- `--url`: the url of the web interface (default: `0.0.0.0:7796`)\n\nSupplement:\n\n1. For `--timeout`, waiting for `PADI` is not included, which allows you to start `pppwn_cpp` before the ps4 is launched.\n2. For `--no-wait-padi`, by default, `pppwn_cpp` will wait for two `PADI` request, according to [TheOfficialFloW/PPPwn/pull/48](https://github.com/TheOfficialFloW/PPPwn/pull/48) this helps to improve stability. You can turn off this feature with this parameter if you don't need it.\n3. For `--wait-after-pin`, according to [SiSTR0/PPPwn/pull/1](https://github.com/SiSTR0/PPPwn/pull/1) set this parameter to `20` helps to improve stability (not work for me), this option not used in web interface.\n4. For `--groom-delay`, This is an empirical value. The Python version of pppwn does not set any wait at Heap grooming, but if the C++ version does not add some wait, there is a probability of kernel panic on my ps4. You can set any value within 1-4097 (4097 is equivalent to not doing any wait).\n5. For `--buffer-size`, When running on low-end devices, this value can be set to reduce memory usage. I tested that setting it to 10240 can run normally, and the memory usage is about 3MB. (Note: A value that is too small may cause some packets to not be captured properly)\n\n# Development\n\nThis project depends on [pcap](https://github.com/the-tcpdump-group/libpcap), cmake will search for it in the system path by default.\nYou can also add cmake option `-DUSE_SYSTEM_PCAP=OFF` to compile pcap from source (can be used when cross-compiling).\n\nPlease refer to the workflow file [.github/workflows/ci.yaml](.github/workflows/ci.yaml) for more information.\n\n```shell\n# native build (macOS, Linux)\ncmake -B build\ncmake --build build -t pppwn\n\n# cross compile for mipsel linux (soft float)\ncmake -B build -DZIG_TARGET=mipsel-linux-musl -DUSE_SYSTEM_PCAP=OFF -DZIG_COMPILE_OPTION=\"-msoft-float\"\ncmake --build build -t pppwn\n\n# cross compile for arm linux (armv7 cortex-a7)\ncmake -B build -DZIG_TARGET=arm-linux-musleabi -DUSE_SYSTEM_PCAP=OFF -DZIG_COMPILE_OPTION=\"-mcpu=cortex_a7\"\ncmake --build build -t pppwn\n\n# cross compile for Windows\n# https://npcap.com/dist/npcap-sdk-1.13.zip\ncmake -B build -DZIG_TARGET=x86_64-windows-gnu -DUSE_SYSTEM_PCAP=OFF -DPacket_ROOT=\u003cpath to npcap sdk\u003e\ncmake --build build -t pppwn\n```\n\n# Credits\n\nBig thanks to FloW's magical work, you are my hero.\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxfangfang%2Fpppwn_cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxfangfang%2Fpppwn_cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxfangfang%2Fpppwn_cpp/lists"}