Comments (21)
Please try:
/system/sdcard/bin/busybox nohup /system/sdcard/bin/v4l2rtspserver-master -fMJPG -U admin:pass &>/dev/null &
from xiaomi-dafang-hacks.
You can also use a md5 password :)
Password schema is: 'md5(<username>:<realm>:<password>')
in this case the realm is a hostname for example dafanghacks
it will be sth like that:
/system/sdcard/bin/v4l2rtspserver-master -A -R rbpi -U wb:f58a07f32ff7648ds8731f16a1acsdx1
from xiaomi-dafang-hacks.
For anyone else who tries to find this out, this is now configurable via 'video' option in the UI.
from xiaomi-dafang-hacks.
Hello @rcheung81 ,
You need to edit the action.cgi and add some parameters to the v4l2rtspserver strings:
-U foo:bar -U admin:admin
Refer to:
https://github.com/mpromonet/v4l2rtspserver
from xiaomi-dafang-hacks.
Hi Elias,
Can you treat me like a complete idiot, as it seems thats what I am...
Trying to setup a password but having no luck at all.
I've got it setup to the point I can see the rtsp on VLC and on Chrome, but not password is needed.
I can SSH in, but it isnt like standard linux so can't Sudo or Nano any changes. How do I do the above?
I tried to also do the password to get in to the web interface by changing the two files in config, but once done it just gave me connection refused messages when accessing the IP.
Scott
from xiaomi-dafang-hacks.
Hello @swieprecht ,
You need to change the "action.cgi" and add some parameters to the "v4l2rtspserver"-calls. Like:
v4l2rtspserver -U admin:admin
Also, its not a normal linux, cause the camera is lacking resources. However you can install some programs using the crosscompile-environment.
from xiaomi-dafang-hacks.
If I run that on Putty I get: -sh: v4l2rtspserver: not found
from xiaomi-dafang-hacks.
Like @swieprecht I'm also looking to password protect the RTSP stream from outside access.
Just reporting @kszere's solution worked for me, thanks!
from xiaomi-dafang-hacks.
Hi, I see this is closed.
I have try @kszere's solution, but is not working anymore.
Is there another way ?
Thanks
from xiaomi-dafang-hacks.
Sorry it was my misstake . It works well 👍
from xiaomi-dafang-hacks.
What was the mistake exactly? Because using this does exactly nothing, I still can see the stream without username and password.
/system/sdcard/bin/busybox nohup /system/sdcard/bin/v4l2rtspserver-master -fMJPG -U myusername:randompassword>/dev/null &
from xiaomi-dafang-hacks.
Simple question. Is @kszere solution permament? If not, how could it be made permanent? Because I tried editing rtspserver.conf but after updating resolution via webinterface, my RTSPH264OPTS="-U user:password" vanished. Thank you!
from xiaomi-dafang-hacks.
RTSPH264OPTS is overwritten once you change the resolution. Of course you could split the OPTS and set them individually. I would gladly accept a pull request.
from xiaomi-dafang-hacks.
@jmtatsch my last commit add the login/password/port configuration
from xiaomi-dafang-hacks.
Awesome, thank you @nik0
from xiaomi-dafang-hacks.
Is there any way or anywhere I can find simple instructions for a moron with one brain cell on how to hack my da fang camera as every site and instruction that I have looked at and read leaves me completely in the dark with vague instructions and words/instructions that I don't understand from the very begining?
from xiaomi-dafang-hacks.
Is the stream connection secure? ( Https) ??
from xiaomi-dafang-hacks.
You can set a password to access it but I don't think it is encrypted.
from xiaomi-dafang-hacks.
can it be brute-forced?
from xiaomi-dafang-hacks.
Sure
from xiaomi-dafang-hacks.
from xiaomi-dafang-hacks.
Related Issues (20)
- Configure RTSP HOT 1
- Downgrade Wyze v2? HOT 1
- Discovered MQTT entities with a name that is equal to the device name HOT 12
- General question any camera (mine T10 Sannce)
- Ability to disable IR lighting for "night mode" - feature required for night viewing through windows HOT 4
- What other cameras can we hack?? HOT 1
- smbclient outdated cannot connect with SMB2 protocol HOT 1
- How can I set the gateway? HOT 2
- Dafang camera keeps rebooting after getting an IP address HOT 1
- MQTT Control issues with newer Home Assistant HOT 1
- no audio in .h264 files. Dafang T20 and Xiaofang 1s T20
- reset
- Add tor/onion service capability
- onvif_srvd started' when rendering template `{{ ((value|int)/(700/100))|round }}` but no default was specified
- Ignored file by accident when upgrading HOT 1
- ONVIF not starting HOT 1
- OSD always shows system info, snapshots include red recording icon HOT 1
- Calibrate on start
- I cannot find any reference to $groupname, appears to be null
- Any way to mount SDCard from serial? (working with partially borked device) HOT 1
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 xiaomi-dafang-hacks.