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-19-2014, 01:26 PM
traveler9559 traveler9559 is offline
Junior Member
 
Join Date: Aug 2014
Posts: 6
traveler9559 is on a distinguished road
Default

3dbuzz videos


So I am new here (obviously) and I have been trying to get some videos off 3dbuzz so I can watch them while I am offline. I have tried many variations of the rtmpdump commands and always end up with an error.

Here is a link to a video like that I want to download. I can't show the exact videos as they are for subscribers. However, this video has the same setup as the subscriber videos.

Code:
http://www.3dbuzz.com/training/view/comprehensive-aspnet-mvc/introduction/series-introduction
Here are some commands that I have used to try to get this video:

Code:
rtmpdump -r "rtmp://vs.3dbuzz.com/buzz/" -a "buzz/" -f "WIN 14,0,0,177" -W "http://www.3dbuzz.com/content/flash/Player3.swf" -p "http://www.3dbuzz.com/training/view/comprehensive-aspnet-mvc/introduction/series-ntroduction" -y "a3AOjCPW0Dvl2dcyaUnBr6CnLxR" -o "out.flv"
Code:
rtmpdump -r "rtmp://vs.3dbuzz.com/buzz/" -a "buzz/" -f "WIN 14,0,0,177" -W "http://www.3dbuzz.com/content/flash/Player3.swf" -p "http://www.3dbuzz.com/training/view/comprehensive-aspnet-mvc/introduction/series-ntroduction" -y "a3AOjCPW0Dvl2dcyaUnBr6CnLxR" -o "out.flv" -V -R --buffer 2000
I have also tried to use wireshark and see if there is a token that I am missing, but I can not find anything. There error I usually get is:

Code:
DEBUG: RTMPSockBuf_Fill, recv returned -1. GetSockError(): 10060 (Unknown error)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
Any help would be greatly appreciated.
Reply With Quote
  #2  
Old 08-19-2014, 02:30 PM
hasomaso hasomaso is offline
Senior Member
 
Join Date: Apr 2011
Posts: 943
hasomaso is on a distinguished road
Default

Re: 3dbuzz videos


found token but by me same problem
don't works sorry Bro

Code:
-T "92J3ax!077M6%.EZckS776^J$i8=}I"
Code:
RTMPDump v2.4 GIT-2014-03-02 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
0.000 kB / 0.00 sec
Download complete
Reply With Quote
  #3  
Old 08-19-2014, 02:49 PM
traveler9559 traveler9559 is offline
Junior Member
 
Join Date: Aug 2014
Posts: 6
traveler9559 is on a distinguished road
Default

Re: 3dbuzz videos


That actually helped man. I'm assuming you got that from the swf? It looks like 3dbuzz added a separate call into the rtmp connect call. going to try a few things to see if I can get it to work
Reply With Quote
  #4  
Old 08-19-2014, 02:52 PM
hasomaso hasomaso is offline
Senior Member
 
Join Date: Apr 2011
Posts: 943
hasomaso is on a distinguished road
Default

Re: 3dbuzz videos


please also inform me
Reply With Quote
  #5  
Old 08-19-2014, 07:50 PM
denobis denobis is offline
Senior Member
 
Join Date: Sep 2013
Posts: 568
denobis is on a distinguished road
Default

Re: 3dbuzz videos


Well,

to catch the stream you need to, after the "NetConnection.Connect.Success", send the command

this._connection.call("rr", null, $decrypt);

where decrypt is the tea_decryption of the r2-property received and transformed. See https://github.com/denobis/4od/blob/...ea_decrypt.php where i've implemented the decryption process in php.

For example, when connecting we received

r2=5n251623p7q688po5s9o89p8249so8oqs399r7os8982srs 70852662qpq14r2409r6q58r8

which is decrypted to

55a7b6f3-ba33-4596-8965-b46d2247ea51

But you need to implement this in the c-sources of rtmpdump and compile it. Funny.
Reply With Quote
  #6  
Old 08-19-2014, 09:09 PM
denobis denobis is offline
Senior Member
 
Join Date: Sep 2013
Posts: 568
denobis is on a distinguished road
Default

Re: 3dbuzz videos


I think it's only needed to append a special case in rtmp.c

Instead of

if (RTMP_FindFirstMatchingProperty(&obj, &av_secureToken, &p))
{
DecodeTEA(&r->Link.token, &p.p_vu.p_aval);
SendSecureTokenResponse(r, &p.p_vu.p_aval);
}

we have to consider &av_r2 and apply to it the transformation before the DecodeTEA.
Reply With Quote
  #7  
Old 08-19-2014, 09:27 PM
hasomaso hasomaso is offline
Senior Member
 
Join Date: Apr 2011
Posts: 943
hasomaso is on a distinguished road
Default

Re: 3dbuzz videos


i think with next release of rtmpdump can @KSV this implement
can you move this here
Reply With Quote
  #8  
Old 08-19-2014, 10:47 PM
traveler9559 traveler9559 is offline
Junior Member
 
Join Date: Aug 2014
Posts: 6
traveler9559 is on a distinguished road
Default

Re: 3dbuzz videos


denobis, that is exactly what I was thinking and what I have been testing. I've been trying to implement it a java rtmp client (because I know java the best), but am having trouble with the decryption stuff. I'll keep messing with it and get about to you guys.

For some reason whenever I try to decrypt the r2 value, i get weird characters.... even on known working implementations of the tea decryption....
Reply With Quote
  #9  
Old 08-20-2014, 12:45 PM
traveler9559 traveler9559 is offline
Junior Member
 
Join Date: Aug 2014
Posts: 6
traveler9559 is on a distinguished road
Default

Re: 3dbuzz videos


For some reason I cannot get the TEA decryption to work. Even the implementation denobis provided does not work. They all come back with strings like this oA¤4?2?{¸iá»3??")Zd?,@Âî·ë?[?`q??

I don't know what I am doing wrong....
Reply With Quote
  #10  
Old 08-20-2014, 02:28 PM
denobis denobis is offline
Senior Member
 
Join Date: Sep 2013
Posts: 568
denobis is on a distinguished road
Cool

Re: 3dbuzz videos


Sorry, i dont know what you're doing but the code i provided works, not beeing anything else that a pure php implementation of the tea-decrypt algorithm, exactly like the DecodeTEA(AVal *key, AVal *text) from rtmp.c.

Remember that before make de tea-decription you need to transform the r2-string to make it hex-number:

Code:
function transform_r2($r2)
	{
	$_local2 = "";
	$_local3 = 0;
	$chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMabcdefghijklmnopqrstuvwxyzabcdefghijklm";
	
	while ($_local3 < strlen($r2)) 
	    {
	    $_local5 = $r2[$_local3];
	    if (strpos($chars,$_local5) or $_local5=="A")
		    {
		     $_local5 = $chars[strpos($chars,$_local5) + 13];
		    }
	    $_local2.= $_local5;
	    $_local3++;
	   }
	return $_local2;	
	}
I've just implemented the code in rtmp.c and now it's compiled and throwing the right response, but there is some pings i must resolve.

C code for transposition

Code:
		  int local8,local3,r2size;		  
	 	  char *chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMabcdefghijklmnopqrstuvwxyzabcdefghijklm";	 	  
		  char *local6 = text;
		  r2size = strlen(local6);		  
		  char local2[r2size];	
		  
		  local3 = 0; 
		 
	 	 while (local3 < r2size) 
	 	    {		     
	 	    local8 = local6[local3];
		    							     				     
		    char *b = strchr (chars, local8);
		    int pos = pos ? b - chars : -1; 
		    		    		   		    		    
	 	    if (pos>-1) 
		      {local8=chars[pos + 13];}
		      
		    char local52[2];
		    memcpy( local52, &local8, 1 );
		    local2[local3]=local52[0];
						    
	 	    local3++;
	 	   } 
		    
		memcpy(text, local2, r2size);:cool:
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:46 AM.


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