FiveLeavesLeft / WyzeCameraLiveStream

Hack to allow live streaming from wyze cameras to vlc or mpv on your desktop.
MIT License
100 stars 7 forks source link

New Installation? #26

Open Vendo232 opened 2 years ago

Vendo232 commented 2 years ago

As of December 28 2021 the WyzeCameraLiveStream still works

just downgraded from RTSP firmare to 4.36.0.228

installed DNS server using Dnsmasq following this guide: dnsmasq spoofing

my dns server: 192.168.1.245 ( raspberry pi 4 using raspbian lite ) running script: 192.168.1.143 ( Ubuntu in VM ) here I installed wyze_hacks_0_5_08.zip

run dnsmasq or some other DNS server and spoof s3-us-west-2.amazonaws.com to the computer you will run the script from. In my case, I used a rasbperry pi for dns serving. This involved (1) adding a line to hosts of s3-us-west-2.amazonaws.com 192.168.11.4 (2) changing the DNS server choice on the DHCP server to the ip of your spoofing DNS server (in my case 192.168.11.11)

image

Manually set the url inside the to http://s3-us-west-2.amazonaws.com/wuv2/upgrade/WLPP1/firmware/1.2.0.80a.bin

image

The port used must be port 80 (since it's checking urls I doubt it will work with another port). Note that the default port if you use remote_install.sh is not 80 On OSX, I had to use sudo to avoid getting "PermissionError: [Errno 13] Permission Denied"

Flashing command: sudo python3 ./wyze_updater.py --token ~/.wyze_token --debug update -m WYZEC1-JZ -m WYZECP1_JEF -m WYZE_CAKP2JFUS -m WYZEDB3 -f ./firmware.bin -p 80

image

cstout1 commented 2 years ago

have you used this same dnsmasq method to keep the stream alive when the camera's internet connection is disabled? I'm hoping to find something to stop the camera's phone home failure soft reboot that occurs when you block internet access.

virmaior commented 2 years ago

the camera's phone home failure soft reboot that occurs when you block internet access.

What exactly do you mean? I have 5 Wyze V3s disconnected from the internet and they don't reboot. What is lost:

  1. can't use app at all for them (can't see the live stream).
  2. have to manually set the current time if they reboot

I'm pretty sure the app is the vector that tells them to reboot and update. Also the firmware url being sent to them is not spoofed by spoofing amazonaws (last time they were connected to the internet, amazonaws was being spoofed and they autoupgraded), so dnsmasq either needs to block another domain to prevent force-updates.