Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 08-27-2013, 11:34 AM
fedex1 fedex1 is offline
Junior Member
 
Join Date: Aug 2013
Posts: 6
fedex1 is on a distinguished road
Default

Key for Secure Token Response in RTMPE


Thanks to everyone in this forum. It is truly appreciated.

Chap helped us with a particular public government website and gave us the key for the secure token response. Many thanks to chap! But we want to be able to find the key ourselves.

Can someone point us to a page where it describes how to derive the key for the secure token response?

For example, this works:

Code:
rtmpdump -r "rtmpe://nyc.pegcentral.com/councilnyc/" -a "councilnyc/?doConnect=12345&doPublish=54321" -f "WIN 11,8,800,94" -W "http://councilnyc.pegcentral.com/flash/media_player_798c.swf" -p "http://councilnyc.pegcentral.com/flash/media_player_798c.swf?server=nyc-rtmp.pegcentral.com&account=councilnyc&videoFilename=NYCC-PV-CH-Cha130822-153731.mp4&from=legistar&inTime=&startState=play" -y "mp4:NYCC-PV-CH-Cha130822-153731.mp4" -o "2013-08-26_11-53-22_mp4_NYCC-PV-CH-Cha130822-153731.flv" -T "2JNxehiz"
but how was the -T parameter found?

I suspect it may be different for different cases but what is the general strategy? And it probably is an evolving issue
Reply With Quote
  #2  
Old 08-28-2013, 02:35 AM
nullacht nullacht is offline
Senior Member
 
Join Date: Jan 2010
Posts: 230
nullacht will become famous soon enoughnullacht will become famous soon enough
Default

Re: Key for Secure Token Response in RTMPE


The key is stored inside the SWF file.

Code:
http://councilnyc.pegcentral.com/flash/media_player_798c.swf
Code:
nc.call("secureTokenResponse", null, TEA.decrypt(_loc_4.secureToken, secureTokenCode))
Code:
secureTokenCode = "2JNxehiz"
Reply With Quote
  #3  
Old 08-29-2013, 10:08 PM
fedex1 fedex1 is offline
Junior Member
 
Join Date: Aug 2013
Posts: 6
fedex1 is on a distinguished road
Default

Re: Key for Secure Token Response in RTMPE


Thank you nullacht!

For those using ubuntu, you can use swfmill to decompile the SWF file

For example,

Install:
sudo apt-get install swfmill

Run:
swfmill swf2xml media_player_798c.swf media_player_798c.xml

Then look for the token manually.
Reply With Quote
  #4  
Old 01-29-2014, 09:36 PM
makkie_65 makkie_65 is offline
Junior Member
 
Join Date: Jan 2014
Posts: 7
makkie_65 is on a distinguished road
Default

Re: Key for Secure Token Response in RTMPE


Quote:
Originally Posted by nullacht View Post
The key is stored inside the SWF file.

Code:
http://councilnyc.pegcentral.com/flash/media_player_798c.swf
Code:
nc.call("secureTokenResponse", null, TEA.decrypt(_loc_4.secureToken, secureTokenCode))
Code:
secureTokenCode = "2JNxehiz"
Hello,

Can you walk me through how you got from

Code:
nc.call("secureTokenResponse", null, TEA.decrypt(_loc_4.secureToken, secureTokenCode))
To

Code:
secureTokenCode = "2JNxehiz"
I got to the first part with an swf decompiler (showmycode.com), but for the life of me I have NO clue how you got to the second part. Please help????
Reply With Quote
  #5  
Old 01-31-2014, 11:22 AM
makkie_65 makkie_65 is offline
Junior Member
 
Join Date: Jan 2014
Posts: 7
makkie_65 is on a distinguished road
Default

Re: Key for Secure Token Response in RTMPE


Quote:
Originally Posted by makkie_65 View Post
Hello,

Can you walk me through how you got from

Code:
nc.call("secureTokenResponse", null, TEA.decrypt(_loc_4.secureToken, secureTokenCode))
To

Code:
secureTokenCode = "2JNxehiz"
I got to the first part with an swf decompiler (showmycode.com), but for the life of me I have NO clue how you got to the second part. Please help????
Respectfully, bump
Reply With Quote
  #6  
Old 01-31-2014, 11:41 AM
peterpan peterpan is offline
Senior Member
 
Join Date: Jun 2013
Posts: 553
peterpan is on a distinguished road
Default

Re: Key for Secure Token Response in RTMPE


Try this... http://bit.ly/1d5ndHy
Reply With Quote
  #7  
Old 01-31-2014, 04:49 PM
makkie_65 makkie_65 is offline
Junior Member
 
Join Date: Jan 2014
Posts: 7
makkie_65 is on a distinguished road
Default

Re: Key for Secure Token Response in RTMPE


Quote:
Originally Posted by peterpan View Post
Thank you for the response!
So now..... How do I get from

Code:
nc.call("secureTokenResponse", null, TEA.decrypt(_loc_4.secureToken, secureTokenCode))
To

Code:
secureTokenCode = "2JNxehiz"
Using JPEXS?

Thanks again!!!
Reply With Quote
  #8  
Old 01-31-2014, 08:43 PM
peterpan peterpan is offline
Senior Member
 
Join Date: Jun 2013
Posts: 553
peterpan is on a distinguished road
Default

Re: Key for Secure Token Response in RTMPE


C'mon Bro...Use Your Brain a Little Bit...

Install it
Open the file (swf)
Go to Tools
Select "Search All ActionScripts"
Check "ignore case"
Type token in the search box and click OK
Go up and down til you find it

Note: this works for some swf's, but not all

good luck
Reply With Quote
  #9  
Old 02-01-2014, 01:26 PM
makkie_65 makkie_65 is offline
Junior Member
 
Join Date: Jan 2014
Posts: 7
makkie_65 is on a distinguished road
Default

Re: Key for Secure Token Response in RTMPE


Quote:
Originally Posted by peterpan View Post
C'mon Bro...Use Your Brain a Little Bit...

Install it
Open the file (swf)
Go to Tools
Select "Search All ActionScripts"
Check "ignore case"
Type token in the search box and click OK
Go up and down til you find it

Note: this works for some swf's, but not all

good luck
Thank you for your response. I already had tried that and I got a BIG ZERO... NADA

Here are three files I am using to learn how to do this (I have a whole list of channels I need to get the tokens for)

http://player.longtailvideo.com/player5.3.swf
http://www.zenex.tv/data/scripts/eplayer.swf
http://www.iguide.to/player/secure_p...mbed_token.swf

Which means: what do you do when you cannot get the token using this method?

Thanks
Reply With Quote
  #10  
Old 02-01-2014, 02:44 PM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

Re: Key for Secure Token Response in RTMPE


makkie_65
Quote:
I have a whole list of channels I need to get the tokens for
list of channels
Reply With Quote
Reply Post New Thread
Tags: , , , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 10:41 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons