Hello
Does anyone know where I can find documentation how to use the cardserver? I see that when I start /var/bin/cardserver, a socket is created: /tmp/cardserver-powersocket1. I have a CanalDigitaal card and CCcam and mgcamd both seem to be able to use the card server since the video stream freezes when I kill the cardserver process :-)
Anyway, I would like to know how to use the cardserver in my own programs.
Hope you can help !!
How to use the cardserver?
Started by Dirktator, 24 Jun 2008 21:25
12 replies to this topic
Re: How to use the cardserver? #2
Posted 31 July 2008 - 16:09
Hi
I have issues with connecting to the cardserver with my own written CAM.
1. I created a socket,
2 read the 14 bytes from the server,
3 XORed them with the 14 bytes defined in the cardserver.cfg file
4. created a packet starting with E0 and then the length in the 2 next bytes
5. added the default username ("local")
6. added the cryptes password ("local",using glibc's crypt function and salted with $1$abcdefgh$)
7. Encrypted the whole packet with DES, with the key defined in step 3
The cardserver will not accept the login request. Any ideas/!?!?!?
Any suggestions would be very welcome.
Thanks!
I have issues with connecting to the cardserver with my own written CAM.
1. I created a socket,
2 read the 14 bytes from the server,
3 XORed them with the 14 bytes defined in the cardserver.cfg file
4. created a packet starting with E0 and then the length in the 2 next bytes
5. added the default username ("local")
6. added the cryptes password ("local",using glibc's crypt function and salted with $1$abcdefgh$)
7. Encrypted the whole packet with DES, with the key defined in step 3
The cardserver will not accept the login request. Any ideas/!?!?!?
Any suggestions would be very welcome.
Thanks!
DM500+, DM8000HD, rotor, 88cm dish
Mac and MacBook
Re: How to use the cardserver? #3
Re: How to use the cardserver? #4
Posted 1 August 2008 - 19:52
Hi
can you remember where you got it from? Google only leads me to sites how to install it. It really amazes me how bad the documentation about the newcamd protocol is. The explanation file and sample source code that come with newcamd to not match and are very ambiguous. I have tried even the emunation code which is C++ but requires all kinds of non-standard encryption libraries :-(
Anyway, thanks for the hint so far. I will keep looking for it, but if you could provide me with a download site this would be great. In the mean time I will start trying the Radegast cardserver which at least has a MUCH simpler interface.
regds
can you remember where you got it from? Google only leads me to sites how to install it. It really amazes me how bad the documentation about the newcamd protocol is. The explanation file and sample source code that come with newcamd to not match and are very ambiguous. I have tried even the emunation code which is C++ but requires all kinds of non-standard encryption libraries :-(
Anyway, thanks for the hint so far. I will keep looking for it, but if you could provide me with a download site this would be great. In the mean time I will start trying the Radegast cardserver which at least has a MUCH simpler interface.
regds
DM500+, DM8000HD, rotor, 88cm dish
Mac and MacBook
Re: How to use the cardserver? #5
Posted 1 August 2008 - 23:41
I did this a number of years back, both newcamd and radegast. My target was pure java so I had to actually figure out what the "non-standard" calls did, rather than just use them in the same way. At the time, the protocol.txt distributed with newcamd was the only source I could find (besides sniffing + reversing).
Don't recall the exact details now, but the resulting source is part of the cardservproxy: http://bowman.rtfm.s....8.6-src.tar.gz
The procedure for connecting as a client can be found in: cws/NewcamdCwsConnector.java run()
I do remember that the password hashing was the same as some existing md5-based hashing scheme (possibly from apache), but perhaps thats what glibc crypt does?
At the time I was planning to add _all_ protocols but never got around to it. Now I guess cccamd would be the obvious choice but afaik thats as closed as it gets (not even any easily reversed windows plugins available).
Don't recall the exact details now, but the resulting source is part of the cardservproxy: http://bowman.rtfm.s....8.6-src.tar.gz
The procedure for connecting as a client can be found in: cws/NewcamdCwsConnector.java run()
I do remember that the password hashing was the same as some existing md5-based hashing scheme (possibly from apache), but perhaps thats what glibc crypt does?
At the time I was planning to add _all_ protocols but never got around to it. Now I guess cccamd would be the obvious choice but afaik thats as closed as it gets (not even any easily reversed windows plugins available).
Re: How to use the cardserver? #6
Re: How to use the cardserver? #7
Re: How to use the cardserver? #8
Re: How to use the cardserver? #9
Re: How to use the cardserver? #10
Re: How to use the cardserver? #11
Re: How to use the cardserver? #12
Re: How to use the cardserver? #13
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users