Nokia Modems Utility: Difference between revisions

From WLPS Wiki
Jump to navigation Jump to search
mNo edit summary
Line 5: Line 5:
Models tested:
Models tested:


* Nokia - '''Bold text'''G-240W-B
* Nokia - G-240W-B


= Instructions =
= Instructions =

Revision as of 14:26, 24 February 2025

About

Python script for decoding modems config.cfg files and decrypting file passwords. Mainly used to get ISP PPPoE passwords.

Models tested:

  • Nokia - G-240W-B

Instructions

Download a backup file from your modem, usually: config.cfg

Install Python and pycryptodome if you have not done it before. Python is usually already installed on Raspbian but not pycryptodome. We will also need a virtual environment for PIP, so here we go:

apt install pipx
apt install python3-requests
apt install python3-venv
python3 -m venv .venv
source .venv/bin/activate
pip install pycryptodome

Download and install the: nokia-router-cfg-tool.py and run it.

python nokia-router-cfg-tool.py ./nokia-router-cfg-tool.py -u config.cfg

An XML file will be generated. Search for “Password dv=“ line next to “Username dv=“ and copy the whole password:

<Username dv="" v="E03005ALLCLF33EABC6@prodigyweb.com.mx"></Username>
<Password dv="" v="zrh2XpF3Ql/yFolZ5Lqm41TPNlAHTU6VgFOuKFN676I="></Password>

Copy the password as the following example:

python ./nokia-router-cfg-tool.py -d "zrh2XpF3Ql/yFolZ5Lqm41TPNlAHTU6VgFOuKFN676I="

Additional information

You can find some Spanish information here.