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
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 09:51 PM.


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