g992 / flashforge-ad5m-5mpro-research

Hardware and software researches and upgrades for Flashforge adventurer M5/M5 PRO
53 stars 5 forks source link

Lost telnet access after root attempt #21

Open b-fitzpatrick opened 2 months ago

b-fitzpatrick commented 2 months ago

Got an Adventurer 5M Pro today. I upgraded the firmware OTA to 2.6.5 and did some printing. During this time, I connected via telnet and got a user/password prompt, so I know telnet access was working.

Decided I wanted root access and found this guide. I thought I needed to do a full firmware flash to do this, and I couldn't find 2.6.5 to download, so I downloaded 2.4.5 and completed the first part of the root process. After flashing the downgraded firmware, everything seems OK, but I can't connect via telnet. I can ping the printer, but telnet just gives "Connection refused". I re-upgraded to 2.6.5, and still no telnet access. Any ideas?

consp commented 2 months ago

See https://github.com/xblax/flashforge_ad5m_klipper_mod/discussions/157#discussioncomment-9193995

2.6.5 is nasty and does system("mv /usr/sbin/telnetd /usr/sbin/myBin"); when /usr/sbin/telnetd is found just before the startup music. That's how I'd do it if it had to be included 5 seconds before release ... If it's already running (e.g. the first time) it works, but afterwards it's gone.

I'd recommend staying away from it if you like telnet.

edit: same person posting 🤦 but more info is always better so cross referencing for documentation sake.

@g992 maybe add this to your frontpage warning people. I've not tested the idea I've had in the post above so ymmv with that.