Comments (35)
@alienatedsec Sorry for the delay but yesterday I finally got around to testing with windows. So i set my mac up to dual boot to windows 10. Used tar on the command like to unpack the tarball. Everything worked just fine.
This blows my mind that it works but it did. I set up 2 of my cameras with no issue. I have been a software engineer for over 20 years and never seen something like this. So I plan to investigate more in to what my mac is doing to cause it all to not work on the device.
Thanks for the help.
from yi-hack-v5.
I am glad it is working - closing this ticket for now.
So I plan to investigate more in to what my mac is doing to cause it all to not work on the device.
Please, let me know how this ends
from yi-hack-v5.
@alienatedsec I went back to the mac and re-downloaded the tarball using FF and chrome. While the OS showed differences in them. Both seemed to now work using my mac. So at this point i am going to assume there was something wrong with the first download or the unpacking the first time around.
While both worked here is the different tarballs. the one ending in -2 was downloaded by chrome and the other by FF.
Either way it all works. Even in my Mac. At this point I am going to blame high energy charged particles flipping bits on me. 🤣 👽
from yi-hack-v5.
It could be a duplicate #366 ; however, its slightly different as you see changes but those are not applying.
Can you post the content of your /tmp/sd/yi-hack-v5/etc/system.conf
file? You can remove passwords and other sensitive data before posting
from yi-hack-v5.
Where can I get it from without ssh, ftp and telnet..? I can access the Cameras only with webui... the only open port is 80.
I am not sure if it makes sense to start over again...
I tried to reset one of my cams over the WebUI to yi-hack-defaults, which did not work and result in no WebUI. After formatting the sd card in Yi App, I can access the cam per FTP again and found a "yi-hack-v5" folder in /home folder... is this "normal"?
from yi-hack-v5.
Just one additional information... after resetting the cam I put the "yi-hack-v5" folder back to sd card and restarted the camera. Config is rested and ssh enabled but port is closed and no connect possible.
from yi-hack-v5.
:~$ nmap 192.168.1.241
Starting Nmap 7.80 ( https://nmap.org ) at 2024-03-23 12:59 CET
Nmap scan report for xyz (192.168.1.241)
Host is up (0.028s latency).
Not shown: 999 closed ports
PORT STATE SERVICE
80/tcp open http
Nmap done: 1 IP address (1 host up) scanned in 2.50 seconds
:~$ nmap 192.168.1.242
Starting Nmap 7.80 ( https://nmap.org ) at 2024-03-23 12:59 CET
Nmap scan report for yi-garten.fritz.box (192.168.1.242)
Host is up (0.032s latency).
Not shown: 999 closed ports
PORT STATE SERVICE
80/tcp open http
Nmap done: 1 IP address (1 host up) scanned in 1.46 seconds
from yi-hack-v5.
Start the camera without SD and see if telnet is working - please send some screenshots of the file structure
from yi-hack-v5.
Hi, yes telnet and ftp are working without the sd card, but I am not sure which screenshots you need?
Here are some examples from ftp:
from yi-hack-v5.
Just tested a little bit around... and I can mount the sd card in my linux machine, so if you need some of the files I can get them from the card...
Here you can find the "system.conf" file, so all of my changes were stored there, but were not used to configure the system :-(
HTTPD=yes
TELNETD=no
SSHD=yes
FTPD=no
BUSYBOX_FTPD=no
DISABLE_CLOUD=no
REC_WITHOUT_CLOUD=no
MQTT=no
RTSP=yes
RTSP_STREAM=both
RTSP_AUDIO=no
ONVIF=no
ONVIF_WSDD=no
ONVIF_PROFILE=high
ONVIF_NETIF=wlan0
TIME_OSD=no
NTPD=yes
NTP_SERVER=fritz.box
PROXYCHAINSNG=no
SWAP_FILE=yes
RTSP_PORT=554
HTTPD_PORT=80
USERNAME=
PASSWORD=
TIMEZONE=CET-1CEST,M3.5.0,M10.5.0/3
FREE_SPACE=10
FTP_UPLOAD=no
FTP_HOST=
FTP_DIR=
FTP_DIR_TREE=no
FTP_USERNAME=
FTP_PASSWORD=
FTP_FILE_DELETE_AFTER_UPLOAD=no
CHECK_UPDATES=no
SSH_PASSWORD=
CRONTAB=
RTSP_ALT=no
SPEAKER_AUDIO=yes
SNAPSHOT=yes
SNAPSHOT_VIDEO=no
SNAPSHOT_LOW=yes
TIMELAPSE=no
TIMELAPSE_FTP=no
TIMELAPSE_DT=60
TIMELAPSE_VDT=
DEBUG_LOG=no
I also found a "wd_rtsp.log" file in the root of the sd card containing many lines of:
2024-03-23 12:57:36 - No running processes, restarting rRTSPServer ...
from yi-hack-v5.
What do you mean by saying you can mount the SD card? Dont you use Windows?
from yi-hack-v5.
Before you answer the above, can you execute vi
in the console using a telnet connection?
from yi-hack-v5.
Unfortunately no "vi" with telnet :-(
I have a linux server and there I tried to mount the sd card from my other yi cam... and it works :-) so I can access the full contents of the card... there I can see that my changes to the config are written to the files, but as stated above the system does not respect the config....
from yi-hack-v5.
Unfortunately no "vi" with telnet :-(
Thats a good sign - it means you have the baseline loaded correctly :)
Do you have any problems with earlier versions? e.g. 0.3.8
?
I am trying to reproduce your issue and will let you know; however, I don't have the camera model as yours.
from yi-hack-v5.
I am not sure which was the previous installed version, but I think it was the 0.4.0 with the busybox issue preventing from OTA updates... before I also used several releases of the yi-hack without issues.
Should I try to downgrade the cameras?
from yi-hack-v5.
And the story continues ;-) I managed to update one of my Yi Outdoor Cams, a 4CUS model... I thought both were the same, but they are not. The other cam is a 9CUS and still not working, but now I have a different issue with the cam, it doesn't show "Baseline Firmware Version" in Web UI and the fat32error.txt is present on sd card. But the cam is accessible over ssh.
I formatted both cards with Windows 10 and FAT32 with standard cluster size and copied the same files to both sd cards. Is it possible that this has something to do with the sd card? I will try a different one tomorrow... Thank you very much for your help so far.
from yi-hack-v5.
Today I got the second cam working again. I have used the "old" sd card, freshly formatted and with the 3.8 files on it. After that it came back online with ssh and Yi App saying sd card is okay. Then I used the new sd card again, freshly formatted and equipped with actual 4.1 files on it... and after this it is back online again including ssh. Storing conf and settings is also possible... I have no idea what I made different to the first update. Except perhaps I gave the cams more time to boot and before changeing any setting?!?! But this is only an idea...
If you need further information from me, do not hesitate to ask... but for me personally I will accept this as an anomaly of the universe ;-)
from yi-hack-v5.
I am currently having the same issue on my yi indoor 1080p U20 cameras. I do have to start with 0.3.8 but can only upgrade to 0.4.0. If i put 0.4.1 on, i can not alter the config at all and therefore not use it. For now I am staying with the 0.4.0. Let me know if there is any data/info you want to help troubleshoot. I can always put 0.4.1 back on a camera to collect any info you might need.
from yi-hack-v5.
Can you check the permissions for system.conf
on 0.4.1
?
from yi-hack-v5.
i found 2 files with that name. here are the permissions on both:
/home/yi-hack-v5 # ls -al /tmp/sd/yi-hack-v5/etc/system.conf
-rwxr-xr-x 1 root root 645 Feb 24 15:30 /tmp/sd/yi-hack-v5/etc/system.conf
/home/yi-hack-v5 # ls -al /home/yi-hack-v5/etc/system.conf
-rw-r--r-- 1 root root 645 Feb 24 18:49 /home/yi-hack-v5/etc/system.conf
/home/yi-hack-v5 #
Let me know if you need anything else.
from yi-hack-v5.
thanks @jkworth
I can't test the following but can you execute the below command and see if this fixes the problem?
chmod a+w /tmp/sd/yi-hack-v5/etc/system.conf
from yi-hack-v5.
@alienatedsec I am unable to make the change. There is no error but changes do not seem to take affect. I assume this might be caused by whatever umask the mount is using when mounting the sd card.
/tmp/sd/yi-hack-v5/etc # ls -al sys*
-rwxr-xr-x 1 root root 645 Mar 30 12:09 system.conf
/tmp/sd/yi-hack-v5/etc # chmod a+w system.conf
/tmp/sd/yi-hack-v5/etc # ls -al sys*
-rwxr-xr-x 1 root root 645 Mar 30 12:09 system.conf
from yi-hack-v5.
@jkworth I don't have any problems with two of my cameras. I will need to test the above and reproduce the problem myself. Otherwise, we are less-likely to fix the issue
from yi-hack-v5.
@jkworth last one to try chmod 777 /tmp/sd/yi-hack-v5/etc/system.conf
please.
from yi-hack-v5.
@alienatedsec that also does not seem to work either. I am going to see if these work if I use 0.4.0 also.
from yi-hack-v5.
@alienatedsec After some further pocking around here is what i found.
The permissions on the files when running 0.4.0 were the same as 0.4.1. I also could not change them but I could change the setting using the web page.
When running 0.4.1 I can edit the .conf files manually and restart and they take affect. However the web page does not read all the values nor can it change the settings. So I don't think file permissions are the issue.
I did notice that a rmm
process is hogging the cpu for some reason when running 0.4.1.
Hope something in all this helps.
from yi-hack-v5.
@jkworth how did you unpack the compressed 0.4.1
release?
- Using Windows and selecting
Extract all
which means only one step to get files. - Using other extract tools e.g., 7zip - two step - extracting each compressed file
- Linux - double-click on the package that extracts automatically
from yi-hack-v5.
I use a Mac. So I just double click to unpack it.
from yi-hack-v5.
I use a Mac. So I just double click to unpack it.
@jkworth can you try other, more common operating system 😉
from yi-hack-v5.
@jkworth
I have redone two cameras in every possible way and couldn't reproduce the issue. Unfortunately, I don't have a Mac system to follow, and I suggest checking the following folders as well.
ls -l /tmp/sd/yi-hack-v5/script/
ls -l /tmp/sd/yi-hack-v5/www/cgi-bin/
from yi-hack-v5.
@alienatedsec I used a different linux system to extract the files. I get the same result. I also went looking for logs but found none anywhere on the device. I even turned on the debug flag in system.conf in hopes for a log file somewhere.
Are there any logs to check?
from yi-hack-v5.
@jkworth Notice your files modified date is different than mine even I have redone the process yesterday. There is something not right in the way the files are being extracted.
from yi-hack-v5.
@jkworth Lets try a different approach
Do you have any output if you follow those two commands? The second one needs executing in that folder
cd /tmp/sd/yi-hack-v5/www/cgi-bin
QUERY_STRING='conf=system' ./get_configs.sh
from yi-hack-v5.
Here are the results of running the command. I have also tried a number of different ways to unpack the files on to the SD card. I can even see the dates similar to yours before i remove it from my computer. Once its in the camera they have different dates.
/home/yi-hack-v5 # cd /tmp/sd/yi-hack-v5/www/cgi-bin
onf=system' ./get_configs.sh/tmp/sd/yi-hack-v5/www/cgi-bin # QUERY_STRING='conf=system' ./get_configs.sh
Content-type: application/json
{
"HTTPD":"yes",
"TELNETD":"no",
"SSHD":"yes",
"FTPD":"no",
"BUSYBOX_FTPD":"no",
"DISABLE_CLOUD":"no",
"REC_WITHOUT_CLOUD":"no",
"MQTT":"no",
"RTSP":"no",
"RTSP_STREAM":"high",
"RTSP_AUDIO":"no",
"ONVIF":"no",
"ONVIF_WSDD":"no",
"ONVIF_PROFILE":"high",
"ONVIF_NETIF":"wlan0",
"TIME_OSD":"no",
"NTPD":"no",
"NTP_SERVER":"pool.ntp.org",
"PROXYCHAINSNG":"no",
"SWAP_FILE":"no",
"RTSP_PORT":"554",
"HTTPD_PORT":"80",
"USERNAME":"",
"PASSWORD":"",
"TIMEZONE":"",
"FREE_SPACE":"10",
"FTP_UPLOAD":"no",
"FTP_HOST":"",
"FTP_DIR":"",
"FTP_DIR_TREE":"no",
"FTP_USERNAME":"",
"FTP_PASSWORD":"",
"FTP_FILE_DELETE_AFTER_UPLOAD":"no",
"CHECK_UPDATES":"no",
"SSH_PASSWORD":"",
"CRONTAB":"",
"RTSP_ALT":"no",
"SPEAKER_AUDIO":"yes",
"SNAPSHOT":"yes",
"SNAPSHOT_VIDEO":"no",
"SNAPSHOT_LOW":"no",
"TIMELAPSE":"no",
"TIMELAPSE_FTP":"no",
"TIMELAPSE_DT":"60",
"TIMELAPSE_VDT":"",
"DEBUG_LOG":"no",
"HOSTNAME":"",
"NULL":"NULL"
}/tmp/sd/yi-hack-v5/www/cgi-bin #
I will try later today to dust off my windows machine and try using windows too,
from yi-hack-v5.
Just to confirm, which browser are you using? @jkworth
Have you tried other browsers?
from yi-hack-v5.
Related Issues (20)
- 27US stopped to ping, web server is not responding anymore HOT 27
- Stuck on "waiting to connect" HOT 10
- ONVIF serice is not working properly HOT 6
- Missing a link to the binary on the sdcard ? HOT 1
- Xiaomi Indoor Wi-Fi Smart Camera - Supported?
- [REQ] WiFi Recovery Guide HOT 25
- BirdCam Settings HOT 1
- Stock firmware needed for Yi Outdoor Camera
- Camera support
- [Feature request]: Add motion detection switch HOT 1
- [feature request] add motion tracking switch HOT 2
- [feature request] add "enable/disable microphone" switch HOT 2
- Issues surrounding saving changes in Config pages (version 0.4.1) HOT 11
- Yi IoT VS Yi branded camera support? HOT 1
- Cannot run 0.4.1 on 65US model HOT 11
- Issues to save information also Empty data - 6CUS HOT 13
- Region Locked Camera not recording and not connecting to the app with proxychains-ng HOT 1
- When i remove the SD card the web gui not open.. HOT 1
- recording to NVR disconnects HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yi-hack-v5.