roleoroleo / yi-hack-MStar

Custom firmware for Yi 1080p camera based on MStar platform
GNU General Public License v3.0
844 stars 112 forks source link

Password reset? #86

Closed Pantho closed 4 years ago

Pantho commented 4 years ago

Hi,

So I have a 6FUS and I flashed this firmware then set a pswd. Should this be FTP as well as HTTP etc?

Either way none of the services accept my password now. I've tried formatting the SD card and flashing the firmware again but still wants a password. Is there a way to reset/default this?

Pantho commented 4 years ago

I used the reset pin but it just won't pair anymore.

I get to QR scan and it scans etc, but stalls after it. Goes to wi-fi connected then endless loop.

Pantho commented 4 years ago

After many reset/repairs etc I can't get anything to work - are there some default passwords for ip:8080 I can try?

roleoroleo commented 4 years ago

Default password for ftp is blank. If you don't remember the password you set for http, reflash the firmare.

Pantho commented 4 years ago

Ah.

I changed the Web panel password, it won't accept it and now I can't get in :(

Anyway to reset it, tried reflashing.

On Sat, 8 Feb 2020, 17:16 roleo, notifications@github.com wrote:

Default password for ftp is blank.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/roleoroleo/yi-hack-MStar/issues/86?email_source=notifications&email_token=AA4TGRCOL3RHPDVUP6J3W3LRB3SHRA5CNFSM4KRTT4E2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELFW2BA#issuecomment-583757060, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4TGRBQI7ASWFVTBQSW26TRB3SHRANCNFSM4KRTT4EQ .

roleoroleo commented 4 years ago

If reflash doesn't work, reflash with an older version and then again with the last version.

Pantho commented 4 years ago

I've a 6RFUS and tried all the way back too yi-hack-6FUS-9FUS-BFUS 0.2.0

I can still connect to WIFI but if i flash and to go http://ip:8080 i get a password prompt screen.

No way to reset w/e memory segment this password is stored in?

On Sat, Feb 8, 2020 at 7:53 PM roleo notifications@github.com wrote:

If reflash doesn't work, reflash with an older version and then again with the last version.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/roleoroleo/yi-hack-MStar/issues/86?email_source=notifications&email_token=AA4TGRCEVIW4LL4SETGVAPTRB4ESXA5CNFSM4KRTT4E2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELF2FGI#issuecomment-583770777, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA4TGRHDPBNETM4YDKOTDN3RB4ESXANCNFSM4KRTT4EQ .

roleoroleo commented 4 years ago

The password is stored in /home/yi-hack/etc/system.conf Edit it with putty or using ftp.

Pantho commented 4 years ago

Edit with FTP when failing to get FTP access ;)

I'm in now, just can't get the camera aspects to work. But I think I'll be happy to set up a DVR server now using this. So thanks.

I do now have full access using 6FUS 0.2.0 at least via http/ftp/telnet so I can think of something.

If you have a recommendation on onvif/open source dvr then feel free.

roleoroleo commented 4 years ago

What do you mean "camera aspect"? Now that it works you could try the latest version. I'm using motioneye software, I dont'use a dedicated hardware. motioneye doesn't support onvif but reads rtsp streams.

nrrdzilla commented 4 years ago

Hi all.

I had the same problem as Pantho but I was using a password manager, and just doing a copy&paste into the username and password fields. So it's not like I was typing it wrong...

I guess my question is what limitations are there for the password? I'm wondering if the ASCII-salad produced by my password manager caused my problem.

TIA, M

roleoroleo commented 4 years ago

The password affects only httpd and video services. You can enter via ssh and change the password, editing the file /home/yi-hack/etc/system.conf

nrrdzilla commented 4 years ago

Hi,

First -- I'd like to say thanks for the work you put into this. I really do appreciate what you've provided for users of the Yi devices :)

OK -- this gets me in to change the password, but I still need to come back to the original question: are there any limitations to the password?

I'm at a loss as to why I was able to set the password using copy and paste from my password manager (without warnings or error message) but then when I rebooted the camera to effect the changes, the same password did not work. I'm pretty sure my manager is generating 16 character length, with upper and lower case letters, numbers and symbols, with no constraints on the symbols. I'm thinking this last lack of constraints might be the issue. (?)

On Fri, Apr 10, 2020 at 1:09 AM roleo notifications@github.com wrote:

The password affects only httpd and video services. You can enter via ssh and change the password, editing the file /home/yi-hack/etc/system.conf

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/roleoroleo/yi-hack-MStar/issues/86#issuecomment-611929376, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRHXMGPREXVWVVLZRQAV53RL3HZ7ANCNFSM4KRTT4EQ .

-- -Mike

"Under capitalism, man exploits man. Under communism it is just the opposite." -old Soviet-era joke

roleoroleo commented 4 years ago

The urlencode/decode function is very huge. And all processes start within a script where there are many variable elaborations. So it's possible that something is wrong and maybe some chars are not correctly evaluated. Avoid to use classic linux shell chars.

roleoroleo commented 4 years ago

And check if the file /home/yi-hack/etc/system.conf contains the string you inserted.

nrrdzilla commented 4 years ago

I ended up doing the successive downgrade-upgrade firmware thing to wipe and reinstall. I used a password that has no classic linux shell characters and everything seems happy. That seems to be have been the source of grief.

Thanks a bunch! -n