GerryDazoo / Slinger

Reuse SlingBox hardware without SlingBox Servers
174 stars 35 forks source link

keys.dat #5

Closed Humbug787 closed 2 years ago

Humbug787 commented 2 years ago

Hi Gerry

I am new to the party here, very excited that my collection of Slingboxes may survive longer than just Nov. Thanks lots for your work Gerry. I have the server up and running on windows and have extracted the slingbox admin passwords and amended the config file with my Slingbox IP, Port & password. I hoped that the first use would generate a keys.dat file but unfortunately that didn't happen? I have tried to use VLC and MXPlayer to connect to the slingbox but that doesn't work, I am guessing because of the missing file.

Any suggestions on how to get the correct file?

Many thanks

image

image

GerryDazoo commented 2 years ago

You are definitely not using the proper IP address/port number when trying to connect to the server OR the firewall on your box is blocking port 8080 assuming you haven’t changed the defaults. The key file is only generated on the first connection to the sling box because it depends on a magic 16 byte data buffer embedded in the slingbox.

From: Humbug787 @.> Sent: Sunday, July 17, 2022 3:04 PM To: GerryDazoo/Slinger @.> Cc: Subscribed @.***> Subject: [GerryDazoo/Slinger] keys.dat (Issue #5)

Hi Gerry

I am new to the party here, very excited that my collection of Slingboxes may survive longer than just Nov. Thanks lots for your work Gerry. I have the server up and running on windows and have extracted the slingbox admin passwords and amended the config file with my Slingbox IP, Port & password. I hoped that the first use would generate a keys.dat file but unfortunately that didn't happen? I have tried to use VLC and MXPlayer to connect to the slingbox but that doesn't work, I am guessing because of the missing file.

Any suggestions on how to get the correct file?

Many thanks

https://user-images.githubusercontent.com/109479081/179418850-1504d5cc-3090-45ea-a142-6db0ba838b8b.png

https://user-images.githubusercontent.com/109479081/179418880-7cac2232-630b-411b-bba3-4ad12b444a9b.png

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/5 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQMUUO3UTNQL6GUOOLDVURDKNANCNFSM532DPUIQ . You are receiving this because you are subscribed to this thread. https://github.com/notifications/beacon/AYOYVQMR5GBS3RKNCOY3W7DVURDKNA5CNFSM532DPUI2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4TPJ2YBQ.gif Message ID: @. @.> >

GerryDazoo commented 2 years ago

When you connect the first time you should see some logs that look like this

07/17/2022, 18:03:59 connection from ('127.0.0.1', 36092)

Slinginfo "350/500" password 12 30 192.168.117.122 5001 3000 Starting Stream for 127.0.0.1:36092 Connecting... ('192.168.117.122', 5001) Control CHALLANGE bff95daed609364c8204f2bc5fbdc363 Fetching new encryption keys from web VideoParameters: Resolution= 12 FrameRate= 30 VideoBandwidth= 4000 VideoSmoothness= 63 IframeRate= 5 AudioBitRate= 64 Connecting... ('192.168.117.107', 5202) Stream Stream started at 07/17/2022, 18:04:01 577 2423

Humbug787 commented 2 years ago

Sorry if I am being dumb but from your reply. You are definitely not using the proper IP address/port number when trying to connect to the server OR the firewall on your box is blocking port 8080 assuming you haven’t changed the defaults. The key file is only generated on the first connection to the sling box because it depends on a magic 16 byte data buffer embedded in the slingbox.

  1. Are you saying the key file is only generated the first time you start the server or start the first connection to the server from say VLC?
  2. When you say the box is blocking port 8080- which box do you mean? I am using a windows laptop?
  3. Which logs are you looking at in your second post to see the Challange bit?

cheers

Paul

GerryDazoo commented 2 years ago

From: Humbug787 @.> Sent: Sunday, July 17, 2022 6:30 PM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] keys.dat (Issue #5)

Sorry if I am being dumb but from your reply. You are definitely not using the proper IP address/port number when trying to connect to the server OR the firewall on your box is blocking port 8080 assuming you haven’t changed the defaults. The key file is only generated on the first connection to the sling box because it depends on a magic 16 byte data buffer embedded in the slingbox.

  1. Are you saying the key file is only generated the first time you start the server or start the first connection to the server from say VLC?

The key file is generated the first time the server connects to the sling box ( the first connection to the server from VLC ). It uses that Challenge string to calculate the new encryption keys for your particular sling box.

  1. When you say the box is blocking port 8080- which box do you mean? I am using a windows laptop?

Yes, the windows firewall on your laptop.

  1. Which logs are you looking at in your second post to see the Challange bit?

You should see those logs when you get you’re VLC to connect to the server http://yourwindowslaptopipaddress:80808/slingbox

cheers

Paul

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/5#issuecomment-1186610500 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQOYUJXE4MIAFKQ3AM3VUR3MZANCNFSM532DPUIQ . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQJ5GN2XCHLDOGTD6HTVUR3MZA5CNFSM532DPUI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI25D2RA.gif Message ID: @. @.> >

Humbug787 commented 2 years ago

Hi Gerry

After a few days away with work I am back trying to get this up and running again. I was previously using VLC on a separate ipad from the server but I think that was wrong and didn't work. When I tried to use VLC from the same windows laptop as the server it connected but came up with a different error. 'Badness starting slingbox session unpack requires a buffer of 16 bytes' (See screenshot below). Additionally however, the CHALLANGE line appeared OK and a keys.dat file was generated, yet when I opened that it showed it was also in error. Any ideas?

Thanks

Paul

IMG_3074a IMG_3075

GerryDazoo commented 2 years ago

You may have caught me while doing some maintenance on the web server to give access to people in Australia. Can you try it again please. BTW, where are you located? Currently the web access in only allowed from US, Canada and now Australia.

From: Humbug787 @.> Sent: Thursday, July 21, 2022 11:08 AM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] keys.dat (Issue #5)

Hi Gerry

After a few days away with work I am back trying to get this up and running again. I was previously using VLC on a separate ipad from the server but I think that was wrong and didn't work. When I tried to use VLC from the same windows laptop as the server it connected but came up with a different error. 'Badness starting slingbox session unpack requires a buffer of 16 bytes' (See screenshot below). Additionally however, the CHALLANGE line appeared OK and a keys.dat file was generated, yet when I opened that it showed it was also in error. Any ideas?

Thanks

Paul

https://user-images.githubusercontent.com/109479081/180233619-ad47a40d-f8bf-4d27-9b4a-ea1d6d2d2f27.PNG https://user-images.githubusercontent.com/109479081/180233704-0593ede6-97d9-4e52-a3e7-8b55a1044e9a.jpg

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/5#issuecomment-1191531882 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQM7XTMTGSMAA4XEKITVVFKVJANCNFSM532DPUIQ . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQLSQE4ZBSVK4YV3PBTVVFKVJA5CNFSM532DPUI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI4CVK2Q.gif Message ID: @. @.> >

Humbug787 commented 2 years ago

Hi

I am in the UK. I did manage to get it working by using a VPN to the USA after reading your reply to mover480 though. it would be great if you could allow access to us Brits without a VPN though.

Time to try the remote now, does that need USA access?

Humbug787 commented 2 years ago

Hi Gerry

I have it all up and running now, many thanks for this, really great.

Any instructions on how to edit your remote at all?

Thanks

Paul

GerryDazoo commented 2 years ago

You need to have some basic understanding of HTML. What where you thinking about changing?

From: Humbug787 @.> Sent: Friday, July 22, 2022 9:16 AM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] keys.dat (Issue #5)

Hi Gerry

I have it all up and running now, many thanks for this, really great.

Any instructions on how to edit your remote at all?

Thanks

Paul

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/5#issuecomment-1192511393 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQJHOAY2WFKVG6YCE7TVVKGGFANCNFSM532DPUIQ . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQN3ZAY2E2QUHWOHHDDVVKGGFA5CNFSM532DPUI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI4KEPII.gif Message ID: @. @.> >

Humbug787 commented 2 years ago

Hi Gerry

No hope with the HTML for me, not without a lot of googling…

I have a Humax box and some of the buttons don’t work as advertised, these would be on my change list, but I can make it work as is..

Pg- changes the Channel Up Pg+ changes the Channel Down Lots of the buttons do nothing but that isn’t a snag. I would like the numbers bigger for my fat fingers as I use those lots.

Humbug787 commented 2 years ago

Further to my last message. I have messed about with the config file and deleted the things that don't work for my box and swapped the Pg+/- around so all good thanks.

GerryDazoo commented 2 years ago

The default key mappings I reverse engineered for my Motorola cable box. I was HOPING that sling would map the same key ids to the same functions for all the remotes they support. That’s what I would do!

Can I assume that remote control function works fine using the slingplayer software?

If that’s not the case then I may have to write a utility for you to discover the key mappings for your specific remote. ☹Because if that’s the case then a lot of people are going to need it.

From: Humbug787 @.> Sent: Friday, July 22, 2022 10:36 AM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] keys.dat (Issue #5)

Hi Gerry

No hope with the HTML for me, not without a lot of googling…

I have a Humax box and some of the buttons don’t work as advertised, these would be on my change list, but I can make it work as is..

Pg- changes the Channel Up Pg+ changes the Channel Down Lots of the buttons do nothing but that isn’t a snag. I would like the numbers bigger for my fat fingers as I use those lots.

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/5#issuecomment-1192582559 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQKC6ECK6Z5WXIVMY2DVVKPUNANCNFSM532DPUIQ . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQK2KLI22MRYOQ55THTVVKPUNA5CNFSM532DPUI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI4KV3HY.gif Message ID: @. @.> >

GerryDazoo commented 2 years ago

To change the button size see below. The defaults I chose made it fit nicely on my cell phone screen in landscape mode.

style=.button {

  border: none;

  color: white;

  background-color: blue;

  padding: 0px 20px;

  text-align: center;

  text-decoration: none;

  display: inline-block;

  font-size: 100px;

  margin: 4px 2px;

 cursor: pointer;

}

From: Humbug787 @.> Sent: Friday, July 22, 2022 10:36 AM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] keys.dat (Issue #5)

Hi Gerry

No hope with the HTML for me, not without a lot of googling…

I have a Humax box and some of the buttons don’t work as advertised, these would be on my change list, but I can make it work as is..

Pg- changes the Channel Up Pg+ changes the Channel Down Lots of the buttons do nothing but that isn’t a snag. I would like the numbers bigger for my fat fingers as I use those lots.

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/5#issuecomment-1192582559 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQKC6ECK6Z5WXIVMY2DVVKPUNANCNFSM532DPUIQ . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQK2KLI22MRYOQ55THTVVKPUNA5CNFSM532DPUI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI4KV3HY.gif Message ID: @. @.> >

Humbug787 commented 2 years ago

Thanks Gerry,

I will keep tweaking and see how I get on.

Cheers

Paul

GerryDazoo commented 2 years ago

I’m digging into this as I’ve had reports of other remotes not working.

I need the remote key codes for your box. I found them somewhere on one of the sling apps when connected to my box. DO you have the slngplayer windows program. Connect to your box and then

Sling player, help, about (your slingbox), info, ir keycodes

They may be available some place else but I don't recall for sure where I got the list for my remote.

Gerry

From: Humbug787 @.> Sent: Friday, July 22, 2022 12:03 PM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] keys.dat (Issue #5)

Further to my last message. I have messed about with the config file and deleted the things that don't work for my box and swapped the Pg+/- around so all good thanks.

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/5#issuecomment-1192664952 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQKSAGM646H7MK2BNKTVVKZ2NANCNFSM532DPUIQ . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQI3HCYG6DAG3VY2R6TVVKZ2NA5CNFSM532DPUI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI4LJ66A.gif Message ID: @. @.> >

GerryDazoo commented 1 year ago

Good news, I’ll add the UK to my bucket of things to do. No the remote doesn’t require web access.

From: Humbug787 @.> Sent: Thursday, July 21, 2022 11:51 AM To: GerryDazoo/Slinger @.> Cc: GerryDazoo @.>; Comment @.> Subject: Re: [GerryDazoo/Slinger] keys.dat (Issue #5)

Hi

I am in the UK. I did manage to get it working by using a VPN to the USA after reading your reply to mover480 though. it would be great if you could allow access to us Brits without a VPN though.

Time to try the remote now, does that need USA access?

— Reply to this email directly, view it on GitHub https://github.com/GerryDazoo/Slinger/issues/5#issuecomment-1191581861 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AYOYVQNNCTJY66D567AVP4TVVFPVTANCNFSM532DPUIQ . You are receiving this because you commented. https://github.com/notifications/beacon/AYOYVQKTZCLLGLZ5LYXW3BLVVFPVTA5CNFSM532DPUI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOI4DBRJI.gif Message ID: @. @.> >