Skip to content

πŸ“š How to run pppwn_cpp from OPNsense - GuideΒ #94

@kappafon

Description

@kappafon

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 [email protected]:~/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions