GithubHelp home page GithubHelp logo

Comments (21)

kszere avatar kszere commented on June 24, 2024 1

Please try:
/system/sdcard/bin/busybox nohup /system/sdcard/bin/v4l2rtspserver-master -fMJPG -U admin:pass &>/dev/null &

from xiaomi-dafang-hacks.

wojtulab avatar wojtulab commented on June 24, 2024 1

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.

lloydwatkin avatar lloydwatkin commented on June 24, 2024 1

For anyone else who tries to find this out, this is now configurable via 'video' option in the UI.

from xiaomi-dafang-hacks.

EliasKotlyar avatar EliasKotlyar commented on June 24, 2024

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.

swieprecht avatar swieprecht commented on June 24, 2024

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.

EliasKotlyar avatar EliasKotlyar commented on June 24, 2024

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.

swieprecht avatar swieprecht commented on June 24, 2024

If I run that on Putty I get: -sh: v4l2rtspserver: not found

from xiaomi-dafang-hacks.

link47 avatar link47 commented on June 24, 2024

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.

helio58 avatar helio58 commented on June 24, 2024

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.

helio58 avatar helio58 commented on June 24, 2024

Sorry it was my misstake . It works well 👍

from xiaomi-dafang-hacks.

Merwenus avatar Merwenus commented on June 24, 2024

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.

mixpc avatar mixpc commented on June 24, 2024

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.

jmtatsch avatar jmtatsch commented on June 24, 2024

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.

nik0 avatar nik0 commented on June 24, 2024

@jmtatsch my last commit add the login/password/port configuration

from xiaomi-dafang-hacks.

jmtatsch avatar jmtatsch commented on June 24, 2024

Awesome, thank you @nik0

from xiaomi-dafang-hacks.

S-P-J avatar S-P-J commented on June 24, 2024

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.

 avatar commented on June 24, 2024

Is the stream connection secure? ( Https) ??

from xiaomi-dafang-hacks.

jmtatsch avatar jmtatsch commented on June 24, 2024

You can set a password to access it but I don't think it is encrypted.

from xiaomi-dafang-hacks.

 avatar commented on June 24, 2024

can it be brute-forced?

from xiaomi-dafang-hacks.

jmtatsch avatar jmtatsch commented on June 24, 2024

Sure

from xiaomi-dafang-hacks.

S-P-J avatar S-P-J commented on June 24, 2024

from xiaomi-dafang-hacks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.