Recovering a saved pppoe session password from a router

There is a situation when you have been using the Internet through your router for a couple of years and, naturally, have forgotten or lost your password. Then the idea comes to my mind to purchase a new device, you head over heels to the store, buy, bring home and ... you understand that there is no password anywhere. But like any thinking person, you understand that the router remembers everything, it remains only to convince him to tell him. You could check it in the settings of the router, but, unfortunately, this method is not suitable for all models. I'll tell you about a universal way to find out a password.

You will need:
1) Your router
2) Patch cord (regular, not cross)
3) A Linux computer on board.


First you need to install 2 packages on Linux machine: ppp and rp-pppoe. As you probably understood, this is a pppoe server. After a successful installation, we proceed to the configuration.

Edit the file /etc/ppp/pppoe-server-optionsas follows: Next, proceed : where dsl_user is replaced with your username from pppoe (you can find it in the admin panel of the router) Now we will proceed to the main stage - starting the server. If errors are displayed, you first need to disconnect an existing connection to your eth interface and then try again.
require-pap
login
lcp-echo-interval 10
lcp-echo-failure 2
show-password
kdebug 2
debug


/etc/ppp/pap-secrets
# Secrets for authentication using PAP
# client server secret IP addresses
dsl_user * "" *




$ pppoe-server -F -k -I eth0


And now we will do the magic. Turn off the router and connect the WAN port of the router and the LAN port of your network card from a Linux computer with a patch cord. After that, you can turn the router back on and the magic will begin to act. You will not see her, but you will feel, or maybe not. This is no longer important, because your password will be indicated in plain text in /var/log/messages.log or /var/log/everything.log.

Then just push everything back and configure your new router.

PS In the same way, you can find out the password of your friend, just by visiting his house, you never know why it is useful to you.

Also popular now: