Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📚 How to run pppwn_cpp from OPNsense - Guide #94

Open
kappafon opened this issue Mar 1, 2025 · 0 comments
Open

📚 How to run pppwn_cpp from OPNsense - Guide #94

kappafon opened this issue Mar 1, 2025 · 0 comments

Comments

@kappafon
Copy link

kappafon commented Mar 1, 2025

Not an issue, just wanted to share general steps on how to setup pppwn_cpp on OPNsense.


SSH into opnSense, e.g.

ssh root@192.168.1.1

Enter option 8) for shell.

echo "FreeBSD: { enabled: yes }" > /usr/local/etc/pkg/repos/FreeBSD.conf
pkg update
pkg install cmake gcc libpcap git

Clone the repo:

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)

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):

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):

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant