stooged / PPPwn_cpp

C++ rewrite of PPPwn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PPPwn c++

This is the C++ rewrite of PPPwn

Features

  • Smaller binary size
  • A wide range of CPU architectures and systems are supported
  • Run faster under Windows (more accurate sleep time)
  • Restart automatically when failing at stage1
  • Can be compiled as a library integrated into your application

Nightly build

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

Development

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

Credits

Big thanks to FloW's magical work, you are my hero.

About

C++ rewrite of PPPwn

License:GNU General Public License v3.0


Languages

Language:C++ 77.0%Language:Python 18.4%Language:CMake 2.4%Language:C 2.1%Language:Shell 0.0%