chill1Penguin / er605v2_openwrt_install

A method to install OpenWrt on the TP-Link ER605 v2.
GNU General Public License v2.0
53 stars 7 forks source link

CLI Debug password not working #9

Closed rubindj closed 8 months ago

rubindj commented 8 months ago

As per title the debug password isn't working for me. I have noticed that it doesn't change if the username changes (not sure if that is desired behavior). Any suggestions or updates are welcome.

chill1Penguin commented 8 months ago

Which firmware version are you using?

rubindj commented 8 months ago

2.2.3 -- latest build

pduchnovsky commented 8 months ago

same here, 2.2.3 Build 20231201 Rel.32918 Neither root nor cli debug passwords work

chill1Penguin commented 8 months ago

OK. Thank you for the build numbers. TP-Link must have changed the way the password is generated or something. For now, the best way to get OpenWrt installed is to downgrade the stock firmware to v2.1.2 and then install. I will update the README to reflect this.

snowkat commented 8 months ago

On 2.2.3, you can just use your web admin portal username/password. The debug password can be gathered by the following command:

MACADDR="00:00:00:00:00:00" # MAC address must be in this format
echo -n "${MACADDR}admin${MACADDR}admin" | md5sum | cut -c1-16

... or in other words, the initial string used in <=2.1.2 is duplicated.

The root password is still set and you should be able to login over whatever internal serial it has if you so choose, but dropbear pretends root doesn't exist. cli_server is still spawned as root.

pduchnovsky commented 8 months ago

@snowkat this works, just a note, it HAS to be in format '${MACADDR}admin${MACADDR}admin', so with admin user, not the user you're logging with to the router via ssh.

chill1Penguin commented 8 months ago

Thank you for the work @snowkat. I have added the different password to the password generator and have verified that the password also works with v2.2.2 and v2.2.4.

rosshgit commented 7 months ago

Sorry, not working here. v2.0 hardware, tried 2.2.2 and 2.2.4 fw. ssh as root. F0:A7:31:A5:46:FD / admin2 = 716647b664267f5d fail. Tried the WAN mac too xxx:FE

pduchnovsky commented 7 months ago

@rosshgit

it HAS to be in format '${MACADDR}admin${MACADDR}admin', so with admin user, not the user you're logging with to the router via ssh.

MACADDR="xx:xx:xx:xx:xx:xx" # MAC address must be in this format
echo -n "${MACADDR}admin${MACADDR}admin" | md5sum | cut -c1-16
snowkat commented 7 months ago

What do you mean by "no privileges"? dropbear spawns the CLI as root even when you login as your username/password, so once you run

> enable
# debug

and enter the debug password, the Busybox shell you get dropped into should be running as root.

On Feb 15, 2024, at 11:27 AM, rosshgit @.***> wrote:

Still no joy. No combination of usernames "root", "admin" and any of the md5 keys or "admin" or "password" has worked. The only logon that works is the GUI ones, but that has no privileges.

— Reply to this email directly, view it on GitHub https://github.com/chill1Penguin/er605v2_openwrt_install/issues/9#issuecomment-1947071318, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALKJSCJY5GIPHANWSFMAO4LYTZOTRAVCNFSM6AAAAABBZZ3EWWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBXGA3TCMZRHA. You are receiving this because you were mentioned.