Nokia Modems Utility

From WLPS Wiki
Revision as of 14:22, 24 February 2025 by Wodie (talk | contribs)
Jump to navigation Jump to search

About

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

Models tested:

  • Nokia - Bold textG-240W-B

Bold textInstructions

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 the following lines and copy the 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="

You can find some information here.