ITADN

📚 How to run pppwn_cpp from OPNsense - Guide

#94Openkappafon 创建于 2025-03-01
K
kappafoncommented
Not an issue, just wanted to share general steps on how to setup pppwn_cpp on OPNsense. --- SSH into opnSense, e.g. ```powershell ssh root@192.168.1.1 ``` Enter option 8) for shell. ```bash echo "FreeBSD: { enabled: yes }" > /usr/local/etc/pkg/repos/FreeBSD.conf ``` ```bash pkg update pkg install cmake gcc libpcap git ``` Clone the repo: ```bash git clone https://github.com/xfangfang/PPPwn_cpp.git cd ~/PPPwn_cpp ``` Note, compile options should match your CPU (I'm using ZimaBoard to run OPNsense) ```bash mkdir build cmake -B build -DUSE_SYSTEM_PCAP=OFF -DZIG_COMPILE_OPTION='-march=apollolake;-mcpu=apollolake' cmake --build build -t pppwn ``` From Windows cmd (not OPNsense shell) run the following to transfer stage files (adjust the paths): ```bash scp C:\Users\user\Desktop\PS4\9.60\stage1.bin C:\Users\user\Desktop\PS4\9.60\stage2.bin root@192.168.1.1:~/PPPwn_cpp/build/ ``` Back in OPNsense shell (adjust the interface): ```bash cd ~/PPPwn_cpp/build ./pppwn --interface igb0 --fw 960 --stage1 "stage1.bin" --stage2 "stage2.bin" --auto-retry --timeout 10 ``` Note: I have a 1gb network setup at home, and configuring _Speed and duplex_ to **10baseT/UTP** for the interface I'm using to run pppwn_cpp. That gave me the best result.
1 条评论