Skip to content

Commit

Permalink
Fix f6005 ont password bug (#287)
Browse files Browse the repository at this point in the history
* fix f6005 ont password bug
  • Loading branch information
simonebortolin authored Nov 15, 2023
1 parent 4f65630 commit 234baab
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 25 deletions.
8 changes: 2 additions & 6 deletions _ont/ont-cig-g-97cp.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,9 @@ parent: CIG
{% include image.html file="cig/cig-1.jpg" alt="CIG G-97CP Unidata" caption="CIG G-97CP Unidata <a href='https://forum.fibra.click/u/papin'>@papin</a>" %}
{% include image.html file="cig/cig-2.jpg" alt="CIG G-97CP Unidata" caption="CIG G-97CP Unidata <a href='https://forum.fibra.click/u/papin'>@papin</a>" %}

## Enable password
{% include_relative ont-nokia-use.md username="ont" alertEnablePassword="The following enable password is used to enter GponCLI via serial connection in in firmware where it is not disabled." %}

{% include alert.html content="The following enable password is used to enter GponCLI via Serial and SSH in Unidata's models." alert="Note" icon="svg-info" color="blue" %}

You can use this tool to generate the enable password:

{% include cig_password.html username="ont" %}
{% include_relative ont-nokia-useful-command.md %}

# Note

Expand Down
2 changes: 1 addition & 1 deletion _ont/ont-nokia-g-010g-q.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ A shell-like prompt will be visible:
ONT>
```

{% include_relative ont-nokia-use.md %}
{% include_relative ont-nokia-use.md username="ONTUSER" %}

{% include_relative ont-nokia-useful-command.md %}

Expand Down
2 changes: 1 addition & 1 deletion _ont/ont-nokia-g-010g-r.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ parent: Nokia
The ONT has a TTL 3.3v UART console (configured as 115200 8-N-1) that can be accessed from the top surface. To accept TX line commands, the GND of the TTL adapter should be attached to the ONT’s shield like the below photo:
{% include image.html file="g-010g-r_serial_pinouts.jpg" alt="Nokia G-010G-R Ports" caption="Nokia G-010G-R Ports" %}

{% include_relative ont-nokia-use.md %}
{% include_relative ont-nokia-use.md username="ONTUSER" %}

{% include_relative ont-nokia-useful-command.md %}

Expand Down
2 changes: 1 addition & 1 deletion _ont/ont-nokia-g-010g-t.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The ONT has a TTL 3.3v UART console (configured as 115200 8-N-1) that can be acc

{% include alert.html content="Some USB TTL adapters label TX and RX pins the other way around: try to swap them if the connection doesn't work." alert="Note" icon="svg-warning" color="yellow" %}

{% include_relative ont-nokia-use.md %}
{% include_relative ont-nokia-use.md username="ONTUSER" %}

{% include_relative ont-nokia-useful-command.md %}

Expand Down
14 changes: 12 additions & 2 deletions _ont/ont-nokia-use.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
# Usage

{% include alert.html content=include.alertUsage alert="Note" icon="svg-info" color="blue" %}


{% unless include.disableEnablePassword==true %}
## Login and enable

{% if include.alertEnablePassword %}
{% include alert.html content=include.alertEnablePassword alert="Note" icon="svg-info" color="blue" %}
{% endif %}

Once you're logged in, a custom menu will be shown and you'll be able to access the linux shell by first typing `system` followed by `shell`:

```sh
ONT>enable
#ONT>login
User name:ONTUSER
User name:{{include.username}}
Password: ****
```

The enable password can be generated using the following form:

{% include cig_password.html username="ONTUSER" %}
{% include cig_password.html username=include.username %}

{% endunless %}

# Accessing Full Shell

Expand Down
18 changes: 4 additions & 14 deletions _ont/ont-zte-f6005.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,14 @@ The ONT has a TTL 3.3v UART console (configured as 115200 8-N-1) that can be acc
- V6.0.10P2N18 (OpenFiber)
- V6.0.10P2N19 (OpenFiber)

# Usage

{% include_relative ont-nokia-use.md %}
{% include_relative ont-nokia-use.md disableEnablePassword=true alertUsage="The following commands need to be executed on GponCLI via a terminal (serial, telnet or SSH). The models currently distributed in Italy by TIM and OpenFiber have no way to enter GponCLI via serial, only via telnet after flashing a custom firmware." %}

{% include_relative ont-nokia-useful-command.md %}

## Enable password

{% include alert.html content="The following enable password is used to enter GponCLI over a serial connection. The models currently distributed in Italy by TIM and OpenFiber have no way to enter GponCLI via serial, only via telnet after flashing a custom firmware. The enable password is not useful for accessing the Web Gui." alert="Note" icon="svg-info" color="blue" %}

You can use this tool to generate the enable password:

{% include cig_password.html username="ont" %}

# Advanced settings
## Unlock serial and TELNET
## Unlock serial to flash another firmware

This ONT is the twin brother of [CIG G97-CP](/ont-cig-g-97cp), if you can find its bootloader (named `CIG_bu.en_V3.09.15`), you can easly repack the firmware and enable its serial port.
This ONT is the twin brother of [CIG G97-CP](/ont-cig-g-97cp), if you can find its bootloader (named `CIG_bu.en_V3.09.15`), you can easly repack the firmware and enable its serial port limited to bootloader.
You need a 3.3V SPI programmer (like a modded CH341a) to read and write back the flash.

{% include alert.html content="This was tested only on a TIM V6.0.10N20 firmware!" alert="Note" icon="svg-info" color="blue" %}
Expand Down Expand Up @@ -166,7 +156,7 @@ And flash image with the `upgdimage`.

This way both slots will have the same firmware version and will avoid any swap by the OLT.

After these steps, power-cycle ONT and login via TELNET with `root\admin` credentials. From this moment you can simply spoof your ONT with the usual commands.
After these steps, power-cycle ONT and login via Telnet with `root\admin` credentials. From this moment you can simply spoof your ONT with the usual commands.


# Known Bugs
Expand Down

0 comments on commit 234baab

Please sign in to comment.