1
0

Translate to English

This commit is contained in:
2026-04-20 11:24:29 +02:00
parent a4f0a1a9de
commit dfd84a813f
+113 -110
View File
@@ -1,171 +1,174 @@
#################################################################################### Contenuto archivio ```markdown
# Archive Contents
Nell'archivio troverete i seguenti file The archive contains the following files:
Leggimi.txt - Questo file - `Leggimi.txt` - This file
- `zyxel-qemu.bat` - QEMU execution batch file
- `qemu` - QEMU configuration file
- `rootfs.ext2` - Contains the router's filesystem
- `zImage` - Linux kernel
- `vexpress-v2p-ca9.dtb` - Required for ARM architecture and Linux
- `genpass` - Linux script for parameter management
zyxel-qemu.bat - batch esecuzione QEMU > **Note:** The `genpass` file is not meant to be used as a file but was included only for studying the Linux script.
qemu - file configurazione QEMU
rootfs.ext2 - contiene il filesystem del router
zImage - kernel di Linux
vexpress-v2p-ca9.dtb - serve nell'architettura ARM e Linux.
genpass - script Linux per la gestione dei parametri Using the emulator requires QEMU to be installed.
Nota: il file 'genpass' non serve come file ma è stato inserito solo come studio dello script Linux ---
L'uso dell'emulatore richiede obbligatoriamente l'installazione di QEMU. # Installing QEMU
## On Windows
#################################################################################### Installazione QEMU in Windows Download the latest version from:
Scaricate la versione più recente dal sito - [32-bit version](https://qemu.weilnetz.de/w32/) Works on 64-bit Windows as well
- [64-bit version](https://qemu.weilnetz.de/w64/)
https://qemu.weilnetz.de/w32/ - Applicazione per Windows a 32bit (funziona anche su Windows a 64bit) Then install the application.
https://qemu.weilnetz.de/w64/ - Applicazione per Windows a 64bit
Installate l'applicazione. ## On Linux (Ubuntu/Debian)
Run the following command:
- Installazione QEMU in Linux (Ubuntu/Debian) ```bash
sudo apt-get install qemu-system-arm sudo apt-get install qemu-system-arm
```
---
#################################################################################### Uso emulatore Zyxel # Using the Zyxel Emulator
Scaricate l'archivio dell'emulatore. 1. Download the emulator archive.
2. Extract the archive into a folder.
3. On Windows, run the batch file `zyxel-qemu.bat`.
Decomprimete l'archivio in una cartella. ---
In Windows lanciate il batch 'zyxel-qemu.bat' # Emulator Package Information
- **`/opt/zyxel`** Contains libraries extracted from the firmware distributed by Zyxel.
- **`/opt/genpass/`** Contains the `libhook.so` library, which compensates for the lack of router flash memory. It allows the serial number to be read from an environment variable instead of from flash.
#################################################################################### Info pacchetto emulatore - **`getpassword`** A binary that calls functions inside Zyxel's libraries to calculate the password and prints it to the screen.
- **`genpass`** A script that ties everything together.
Nelle cartelle ---
/opt/zyxel # Modifying the `rootfs.ext2` File
ci sono le librerie estratte dal firmware distribuito dalla Zyxel To mount and modify the `rootfs.ext2` image file, you need a Linux system with ext2/ext3 utilities.
/opt/genpass/ ## Steps
c'è la libreria libhook.so che serve per sopperire alla mancanza della flash del router in modo che il seriale invece che leggerlo sulla flash lo legge da una variabile d'ambiente
Il file
getpassword
è il binario che chiama le funzioni dentro le librerie della Zyxel per fargli calcolare la password ed una volta prese le stampa a schermo.
Mentre lo script
genpass
è quello che mette insieme il tutto.
#################################################################################### Modifiche al file rootfs.ext
Per montare il file immagine rootfs.exet2 in modifica serve un Linux e le utility relative alla gestione ext2/ext3.
I comandi da dare sono
- Creazione cartella espansione file contenuti in rootfs.ext
1. **Create a mount point:**
```bash
sudo mkdir /mnt/rootfs sudo mkdir /mnt/rootfs
```
- Montaggio file system rootfs.ext 2. **Mount the filesystem:**
```bash
sudo mount -t ext2 rootfs.ext2 /mnt/rootfs
```
The `genpass` file is located at `/mnt/rootfs/opt/genpass/`.
sudo mount -t ext2 root.ext2 /mnt/rootfs 3. **Make your changes** (e.g., copy a new `genpass` file).
il file 'genpass' è nel percorso '/mnt/rootfs/opt/genpass/'
Si fanno le modifiche del caso es. copia nuovo file genpass)
Finite le modifiche si salva il nuovo file rootfs.ext dando il comando
4. **Unmount the filesystem:**
```bash
sudo umount /mnt/rootfs sudo umount /mnt/rootfs
```
e si possono rimuovere i file in /mnt/rootfs 5. **Remove the mount point (optional):**
```bash
sudo rm -rf /mnt/rootfs sudo rm -rf /mnt/rootfs
```
---
#################################################################################### Info sul numero seriale # Serial Number Format
Il seriale del modem è composto The modem's serial number consists of:
da una prima lettera S | Part | Description | Example |
|------|------------------------------------|---------|
| 1 | Letter `S` | `S` |
| 2 | Three digits | `182` |
| 3 | One uppercase letter | `V` |
| 4 | Eight digits | `12345678` |
da un seconda parte costituita da tre cifre **Full example:** `S182V12345678`
da una terza parte rappresentata da una lettera maiuscola ---
da una quarta parte numerica di 8 cifre # Using the Zyxel Emulator
Once the system has booted, you will see the classic Unix/Linux console:
#################################################################################### Uso emulatore Zyxel ```
Una volta che il sistema è avviato vi troverete davanti la classica console Unix/Linux.
root@VMG8825-B50B-emul login: root@VMG8825-B50B-emul login:
```
Potete entrare inserendo ## Login credentials
user = root - **Username:** `root`
password = root - **Password:** `root`
Volendo potete usare anche l'accesso via SSH sulla porta 2222. > You can also use SSH access on port `2222`. QEMU (launched via the batch file) listens on port 2222 and forwards connections to port 22 of the emulated router.
In pratica qemu-system-arm (lanciato tramite il batch) si mette in ascolto sulla porta 2222 e ridirige la connessione sulla porta 22 del router emulato.
Una volta avuto accesso senza dover cambiare cartella basta dare il comando ## Generating passwords
genpass SerialeModem After logging in, run the following command from any directory:
dove ```bash
genpass <SerialNumber>
```
SerialeModem è il seriale del modem (es. S182V12345678) Replace `<SerialNumber>` with the modem's serial number (e.g., `S182V12345678`).
### Example output
La risposta al comando genpass sarà del tipo ```
Old algorithm supervisor password: cdef644b
New algorithm supervisor password: 7QrscaaYya
Old algorithm supervisor password: cdef644b Old algorithm admin password param 1: WJNCRMTT
New algorithm supervisor password: 7QrscaaYya Old algorithm admin password param 2: K9KydTzT
Old algorithm admin password param 3: S9KcdTeT
Old algorithm admin password param 1: WJNCRMTT New algorithm admin password param 1: WJNCRMTT
Old algorithm admin password param 2: K9KydTzT New algorithm admin password param 2: K9KydTzT
Old algorithm admin password param 3: S9KcdTeT
New algorithm admin password param 1: WJNCRMTT New algorithm admin wind password param 2: K9KydTzT73
New algorithm admin password param 2: K9KydTzT New algorithm admin wind password param 1: WJNCRMTTQ3
New algorithm admin wind password param 2: K9KydTzT73 Old algorithm admin wind password param 2: K9KydTzT73
New algorithm admin wind password param 1: WJNCRMTTQ3 Old algorithm admin wind password param 1: WJNCRMTTQ3
Old algorithm admin wind password param 3:
Old algorithm admin wind password param 2: K9KydTzT73 Wifi password param 2 e 1: MPPGPCJ444MXGU34
Old algorithm admin wind password param 1: WJNCRMTTQ3 Wifi password param 0: C9D4CB2BADE5618AD92BEC2AC7
Old algorithm admin wind password param 3: Wifi password param 1: CFC9887CA2
Wifi password param 2 e 0: SPP6WCJ444SX6U34
Wifi password param 2 e 2: 8PPXWCJ4448XXU34
Wifi password param 2 e 3: apprwcjpppaxrunp
Wifi password param 2 e 4: SPP6WCJ444SX6U34
Wifi password param 2 e 5: hPPNWCJ444hXNU34
```
Wifi password param 2 e 1: MPPGPCJ444MXGU34 ---
Wifi password param 0: C9D4CB2BADE5618AD92BEC2AC7
Wifi password param 1: CFC9887CA2
Wifi password param 2 e 0: SPP6WCJ444SX6U34
Wifi password param 2 e 2: 8PPXWCJ4448XXU34
Wifi password param 2 e 3: apprwcjpppaxrunp
Wifi password param 2 e 4: SPP6WCJ444SX6U34
Wifi password param 2 e 5: hPPNWCJ444hXNU34
# Exiting the Emulator
#################################################################################### Uscita dall'emulazione 1. After logging in, type:
```bash
Una volta effettuato il login per uscire digitare exit
```
root@VMG8825-B50B-emul:~# exit
quando appare
VMG8825-B50B-emul login:
chiudere la finestra DOS aperta
2. When the login prompt appears again:
```
VMG8825-B50B-emul login:
```
close the DOS window.
```