Skip to content

Instantly share code, notes, and snippets.

@fakhriaunur
Forked from fcicq/pppoe-capture-password
Created February 18, 2022 08:15
Show Gist options
  • Save fakhriaunur/55b61da4e12e1ea2aad60eb4a686ee66 to your computer and use it in GitHub Desktop.
Save fakhriaunur/55b61da4e12e1ea2aad60eb4a686ee66 to your computer and use it in GitHub Desktop.
cat > pppoe-server-options <<EOF
require-pap
login
lcp-echo-interval 10
lcp-echo-failure 20
ms-dns 8.8.8.8
EOF
sudo pppoe-server -F -I eth0 -L 192.168.251.1 -R 192.168.251.100 -N 20 -O pppoe-server-options
# capture with wireshark / tcpdump here
@fakhriaunur
Copy link
Author

Source:

  1. Install Linux on a VM or physical machine. If VM bridge the virtual NIC to the physical NIC.
  2. Get the source for rp-pppoe (google rp-pppoe) and run make install in the src folder.
  3. Edit the configuration file and set it to PAP (as it is clear text).
  4. Start pppoe-server on the Linux machine.
  5. Connect the ISP device to the Linux box (physical NIC).
  6. Run Wireshark and filter for pppoed and pppoes.
  7. You should see the user ID and password show up around the 9th packet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment