Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Secure the RTSP stream with a password #27

Closed
rcheung81 opened this issue Dec 28, 2017 · 21 comments
Closed

Secure the RTSP stream with a password #27

rcheung81 opened this issue Dec 28, 2017 · 21 comments

Comments

@rcheung81
Copy link

Hello, I am able to log into RTSP without a user name and password. I am also able to SSH into the camera but do not know how to set a password for RTSP. Can you give me instructions on how to do that?

@EliasKotlyar
Copy link
Owner

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

@swieprecht
Copy link

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

@EliasKotlyar
Copy link
Owner

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.

@swieprecht
Copy link

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

@kszere
Copy link
Contributor

kszere commented Jan 23, 2018

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

@link47
Copy link

link47 commented Jan 31, 2018

Like @swieprecht I'm also looking to password protect the RTSP stream from outside access.

Just reporting @kszere's solution worked for me, thanks!

@helio58
Copy link

helio58 commented Mar 13, 2018

Hi, I see this is closed.
I have try @kszere's solution, but is not working anymore.
Is there another way ?
Thanks

@shinebar1001 shinebar1001 reopened this Mar 13, 2018
@wojtulab
Copy link

wojtulab commented Mar 13, 2018

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

@helio58
Copy link

helio58 commented Mar 16, 2018

Sorry it was my misstake . It works well 👍

@Merwenus
Copy link

Merwenus commented Apr 4, 2018

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 &

@jmtatsch jmtatsch changed the title Help with creating a password for RTSP Secure the RTSP stream with a password May 10, 2018
@mixpc
Copy link
Contributor

mixpc commented Jun 7, 2018

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!

@jmtatsch
Copy link
Collaborator

jmtatsch commented Jun 7, 2018

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.

@nik0
Copy link
Collaborator

nik0 commented Jun 9, 2018

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

@jmtatsch
Copy link
Collaborator

jmtatsch commented Jun 9, 2018

Awesome, thank you @nik0

@lloydwatkin
Copy link

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

@S-P-J
Copy link

S-P-J commented Apr 29, 2019

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?

@ghost
Copy link

ghost commented Sep 15, 2019

Is the stream connection secure? ( Https) ??

@jmtatsch
Copy link
Collaborator

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

@ghost
Copy link

ghost commented Sep 17, 2019

can it be brute-forced?

@jmtatsch
Copy link
Collaborator

Sure

@S-P-J
Copy link

S-P-J commented Sep 17, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests