xfangfang / PPPwn_cpp
- понедельник, 13 мая 2024 г. в 00:00:06
C++ rewrite of PPPwn (PlayStation 4 PPPoE RCE)
This is the C++ rewrite of PPPwn
You can download the latest build from nightly.link.
For Windows users, you need to install npcap before run this program.
For macOS users, you need run sudo xattr -rd com.apple.quarantine <path-to-pppwn>
after download.
# show help
pppwn
# list interfaces
pppwn list
# run the exploit
pppwn --interface en0 --fw 1100 --stage1 "stage1.bin" --stage2 "stage2.bin" --auto-retry
This project depends on pcap, cmake will search for it in the system path by default.
You can also add cmake option -DUSE_SYSTEM_PCAP=OFF
to compile pcap together (can be used when cross-compiling).
# native build (macOS, Linux, mingw)
cmake -B build
cmake --build build pppwn
# cross compile for mipsel linux (soft float)
cmake -B build -DZIG_TARGET=mipsel-linux-musl -DUSE_SYSTEM_PCAP=OFF -DZIG_COMPILE_OPTION="-msoft-float"
cmake --build build pppwn
# cross compile for arm linux (armv7 cortex-a9)
cmake -B build -DZIG_TARGET=arm-linux-musleabi -DUSE_SYSTEM_PCAP=OFF -DZIG_COMPILE_OPTION="-mcpu=cortex_a9"
cmake --build build pppwn
# cross compile for Windows
# https://npcap.com/dist/npcap-sdk-1.13.zip
cmake -B build -DZIG_TARGET=x86_64-windows-gnu -DUSE_SYSTEM_PCAP=OFF -DPacket_ROOT=<path to npcap sdk>
cmake --build build pppwn
Big thanks to FloW's magical work, you are my hero.