Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

chaturbate.com: SecureToken problems

(http://stream-recorder.com/forum/showthread.php?t=10869)

AmazingMatze 01-27-2013 10:10 PM

Re: chaturbate.com: SecureToken problems


 
Code:

rtmpdump
-v
-r "rtmpe://XXXX/live-edge"
-a "live-edge"
-f "WIN 11,5,502,146"
-W "http://XXXX/static/flash/CBV_2p632.swf"
-p "http://XXXX/XXXX"
-C S:XXXX                [USERNAME]
-C S:XXXX                [MODEL_NAME]
-C S:2.632                [SWF_VERSION]
-C S:XXXX                [PW_HASH]
-C S:XXXX                [OPTIONAL_HASH]
-y "playpath"
-T "m9z#$dO0qe34Rxe@sMYxx%"
-o "XXXX.flv"

I got bored and wrote (just like user savanna suggested) a little javascript that will retrieve the above parameters (XXXX) from the website itself. Just put it as a bookmark in Firefox.

Code:

javascript:var prm=document.getElementById('movie').childNodes[6].value;prm=prm.replace(/=/g,"&").split("&");alert('rtmpdump -v -r "rtmpe://'+prm[3]+'/live-edge" -a "live-edge" -f "WIN 11,5,502,146" -W "http://'+prm[23]+'/static/flash/CBV_2p632.swf" -p "http://'+prm[23]+'/'+prm[1]+'" -C S:'+prm[13]+' -C S:'+prm[1]+' -C S:2.632 -C S:'+prm[25]+' -C S:'+prm[27]+' -y "playpath" -T "m9z#$dO0qe34Rxe@sMYxx%" -o "'+prm[1]+'.flv"');
// I changed it a little bit. This one also retrieves the SwfUrl and the SwfVersion:

Code:

javascript:var prm=document.getElementById('movie').childNodes[6].value;prm=prm.replace(/=/g,"&").split("&");swfUrl=document.getElementsByTagName('object')[0].getAttribute('data');swfVers=swfUrl.replace("_",".").split(".");swfVers=swfVers[1];swfVers=swfVers.split("p");prompt('RTMPDumpCL','rtmpdump -v -r "rtmpe://'+prm[3]+'/live-edge" -a "live-edge" -f "WIN 11,5,502,146" -W "http://'+prm[23]+swfUrl+'" -p "http://'+prm[23]+'/'+prm[1]+'" -C S:'+prm[13]+' -C S:'+prm[1]+' -C S:'+swfVers[0]+'.'+swfVers[1]+' -C S:'+prm[25]+' -C S:'+prm[27]+' -y "playpath" -T "m9z#$dO0qe34Rxe@sMYxx%" -o "'+prm[1]+'.flv"');reload();

CristianoA 01-28-2013 06:36 AM

Re: chaturbate.com: SecureToken problems


 
Quote:

Originally Posted by AmazingMatze (Post 59142)
Code:

rtmpdump
-v
-r "rtmpe://XXXX/live-edge"
-a "live-edge"
-f "WIN 11,5,502,146"
-W "http://XXXX/static/flash/CBV_2p632.swf"
-p "http://XXXX/XXXX"
-C S:XXXX                [USERNAME]
-C S:XXXX                [MODEL_NAME]
-C S:2.632                [SWF_VERSION]
-C S:XXXX                [PW_HASH]
-C S:XXXX                [OPTIONAL_HASH]
-y "playpath"
-T "m9z#$dO0qe34Rxe@sMYxx%"
-o "XXXX.flv"

I got bored and wrote (just like user savanna suggested) a little javascript that will retrieve the above parameters (XXXX) from the website itself. Just put it as a bookmark in Firefox.

Code:

javascript:var prm=document.getElementById('movie').childNodes[6].value;prm=prm.replace(/=/g,"&").split("&");alert('rtmpdump -v -r "rtmpe://'+prm[3]+'/live-edge" -a "live-edge" -f "WIN 11,5,502,146" -W "http://'+prm[23]+'/static/flash/CBV_2p632.swf" -p "http://'+prm[23]+'/'+prm[1]+'" -C S:'+prm[13]+' -C S:'+prm[1]+' -C S:2.632 -C S:'+prm[25]+' -C S:'+prm[27]+' -y "playpath" -T "m9z#$dO0qe34Rxe@sMYxx%" -o "'+prm[1]+'.flv"');

great work thanks :D

Cbater 01-29-2013 05:32 AM

Re: chaturbate.com: SecureToken problems


 
Quote:

Originally Posted by Humbug (Post 59072)
I'm sure this works fine but with those parameters you are only able to grab public shows. However the guys are right they did change things up again for password/ private rooms. There were a couple of scripts out there that used your 2.4 version of rtmpdump and the original 2.3. It uses findstr via a txt file in the -v parameter to figure out the variables like the token (sorry for the weird explanation, hope you know what I mean).

yes! it only works with public shows. password/private rooms dont work anymore :(

AmazingMatze 01-29-2013 06:13 PM

Re: chaturbate.com: SecureToken problems


 
I just wanted to add the latest addition to my Bookmarklet. The necessary replacements for the password hash. Although this is probably not working for private rooms anymore.

Code:

javascript:var prm=document.getElementById('movie').childNodes[6].value;prm=prm.replace(/=/g,"&").split("&");swfUrl=document.getElementsByTagName('object')[0].getAttribute('data');swfVers=swfUrl.replace("_",".").split(".");swfVers=swfVers[1];swfVers=swfVers.split("p");prompt('RTMPDumpCL','rtmpdump -v -r "rtmpe://'+prm[3]+'/live-edge" -a "live-edge" -f "WIN 11,5,502,146" -W "http://'+prm[23]+swfUrl+'" -p "http://'+prm[23]+'/'+prm[1]+'" -C S:'+prm[13]+' -C S:'+prm[1]+' -C S:'+swfVers[0]+'.'+swfVers[1]+' -C S:'+prm[25].replace(/\$/g,"^$")+' -C S:'+prm[27]+' -y "playpath" -T "m9z#$dO0qe34Rxe@sMYxx%" -o "'+prm[1]+'.flv"');reload();

jimbob9 01-31-2013 04:07 PM

Re: chaturbate.com: SecureToken problems


 
Quote:

Originally Posted by AmazingMatze (Post 59243)
I just wanted to add the latest addition to my Bookmarklet. The necessary replacements for the password hash. Although this is probably not working for private rooms anymore.

Code:

javascript:var prm=document.getElementById('movie').childNodes[6].value;prm=prm.replace(/=/g,"&").split("&");swfUrl=document.getElementsByTagName('object')[0].getAttribute('data');swfVers=swfUrl.replace("_",".").split(".");swfVers=swfVers[1];swfVers=swfVers.split("p");prompt('RTMPDumpCL','rtmpdump -v -r "rtmpe://'+prm[3]+'/live-edge" -a "live-edge" -f "WIN 11,5,502,146" -W "http://'+prm[23]+swfUrl+'" -p "http://'+prm[23]+'/'+prm[1]+'" -C S:'+prm[13]+' -C S:'+prm[1]+' -C S:'+swfVers[0]+'.'+swfVers[1]+' -C S:'+prm[25].replace(/\$/g,"^$")+' -C S:'+prm[27]+' -y "playpath" -T "m9z#$dO0qe34Rxe@sMYxx%" -o "'+prm[1]+'.flv"');reload();

I'm having some trouble. Is all I have to do is login to chaturbate, run the bookmarklet, copy the command and paste it to a command prompt with rtmpdump.exe?

I've got windows, and this is the error I get:

RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: Trying different position for server digest!
INFO: Connected...
ERROR: Closing connection: NetStream.Play.Failed

I tried with linux too. Am I missing something here? Do I need to do something other than login to chaturbate, and run the bookmarklet on the cam screen? I'm not trying to do a password protected stream or anything.. just a public stream.

AmazingMatze 01-31-2013 05:50 PM

Re: chaturbate.com: SecureToken problems


 
Quote:

Originally Posted by jimbob9 (Post 59309)
I'm having some trouble. Is all I have to do is login to chaturbate, run the bookmarklet, copy the command and paste it to a command prompt with rtmpdump.exe?

I've got windows, and this is the error I get:

RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: Trying different position for server digest!
INFO: Connected...
ERROR: Closing connection: NetStream.Play.Failed

I tried with linux too. Am I missing something here? Do I need to do something other than login to chaturbate, and run the bookmarklet on the cam screen? I'm not trying to do a password protected stream or anything.. just a public stream.

Yes, all you have to do is go to the site and click on a chatroom (you don't need to login for that).

Execute the Bookmarklet, then close your browser. My bookmarklet extracts the path to the excact same server that you were viewing (e.g. edge1-a, edge1-b, edge2-a, edge2-b etc.).

The site won't allow you to stream more than one stream from the same server. That's why you have to close your video in the browser. The other batch commands didn't care for that and used a static (like 9-b), but I wanted to make sure of it to catch the stream.

Then paste the command into your command prompt or a ".bat" file (in the same directory where RTMPDump is located) and execute it.

Cbater 02-01-2013 12:53 AM

Re: chaturbate.com: SecureToken problems


 
how are you fixing the flv files?

jimbob9 02-01-2013 05:50 PM

Re: chaturbate.com: SecureToken problems


 
Quote:

Originally Posted by AmazingMatze (Post 59310)
Yes, all you have to do is go to the site and click on a chatroom (you don't need to login for that).

Execute the Bookmarklet, then close your browser. My bookmarklet extracts the path to the excact same server that you were viewing (e.g. edge1-a, edge1-b, edge2-a, edge2-b etc.).

The site won't allow you to stream more than one stream from the same server. That's why you have to close your video in the browser. The other batch commands didn't care for that and used a static (like 9-b), but I wanted to make sure of it to catch the stream.

Then paste the command into your command prompt or a ".bat" file (in the same directory where RTMPDump is located) and execute it.

Thanks for the info. is it possible to watch the video at all while it's recording? Maybe opening another browser window afterwards?

AmazingMatze 02-01-2013 06:26 PM

Re: chaturbate.com: SecureToken problems


 
Quote:

Originally Posted by jimbob9 (Post 59351)
Thanks for the info. is it possible to watch the video at all while it's recording? Maybe opening another browser window afterwards?

Just drag it in VLC player while it is playing. - You could also try to reopen the browser or the tab you closed and see if you catch a different server. If it doesn't work try refreshing until you catch a different server.

InterdimensionalCow 02-02-2013 04:17 AM

Re: chaturbate.com: SecureToken problems


 
Hmm, odd. I'm using AmazingMatze's second Javascript code from the post at the top of this page, rtmpdump 2.4, closing my browser after getting the line, and putting it in a .bat with rtmpdump. However, I still get the NetStream.Play.Failed error. I'm probably just doing something stupidly wrong, but then I don't know how to identify it.

tgl 02-06-2013 05:38 AM

Re: chaturbate.com: SecureToken problems


 
Quote:

Originally Posted by InterdimensionalCow (Post 59365)
Hmm, odd. I'm using AmazingMatze's second Javascript code from the post at the top of this page, rtmpdump 2.4, closing my browser after getting the line, and putting it in a .bat with rtmpdump. However, I still get the NetStream.Play.Failed error. I'm probably just doing something stupidly wrong, but then I don't know how to identify it.

I have the same problem, could you (Amazingmatze or someone else) check if it still working for public shows also?? please

jimbob9 02-06-2013 07:58 PM

Re: chaturbate.com: SecureToken problems


 
I'm glad to see I'm not the only one having this problem.

AmazingMatze 02-07-2013 08:54 AM

Re: chaturbate.com: SecureToken problems


 
Quote:

Originally Posted by tgl (Post 59453)
I have the same problem, could you (Amazingmatze or someone else) check if it still working for public shows also?? please

It is still working as expected. Tested on latest Firefox 18.0.2 with latest KSV compiled version of RTMPDump.
Quote:

RTMPDump v2.4 GIT-2012-11-09 (Compiled by KSV)
https://github.com/K-S-V/Scripts/downloads

InterdimensionalCow 02-10-2013 12:08 PM

Re: chaturbate.com: SecureToken problems


 
Hmm, trying that version of RTMPDump... Well, I'll do a full test later, but the error is more definite now. I could guess why it's not working, but I can't mess with it right now. Still, thanks for linking us that version. :)

flock 02-10-2013 05:57 PM

Re: chaturbate.com: SecureToken problems


 
Does anyone know who to get this working on mac? I don't want to use windows/vmware anymore and I would love to write us an mac application that automates the whole capturing process.

But unfortunately I only get the
Quote:

Model status is error
message with a compiled mac version of ksv.

I'm using:
Quote:

rtmpdump -r "rtmpe://edge4-b.stream.highwebmedia.com/live-edge" -a "live-edge" -f "WIN 11,4,402,265" -W "http://chaturbate.com/static/flash/CBV_2p627.swf" -p "http://chaturbate.com/PerfName/" -y "mp4" -o "test.flv" -C S:myName -C S:PerfName -C S:2.627 -C S:pbkdf2… -T "m9z#$dO0qe34Rxe@sMYxx%" --live
To compile the version, I downloaded the offical rtmpdump 2.4 release and used the patch.diff file via Terminal:
patch < patch.diff.
Then I compiled it with:
make SYS=darwin
sudo make SYS=darwin install

Are the changes that ksv made not working with a mac compiled version?

---------
The svnpenn version is also not working. I get the RTMP_ReadPacket, failed to read RTMP packet header error message.

AmazingMatze 02-10-2013 07:14 PM

Re: chaturbate.com: SecureToken problems


 
Quote:

Originally Posted by flock (Post 59581)
I'm using:
Quote:

rtmpdump -r "rtmpe://edge4-b.stream.highwebmedia.com/live-edge" -a "live-edge" -f "WIN 11,4,402,265" -W "http://chaturbate.com/static/flash/CBV_2p627.swf" -p "http://chaturbate.com/PerfName/" -y "mp4" -o "test.flv" -C S:myName -C S:PerfName -C S:2.627 -C Sbkdf2… -T "m9z#$dO0qe34Rxe@sMYxx%" --live

You do notice, that you are using an outdated SWF version, don't you? Current version is 2.632.

flock 02-10-2013 09:01 PM

Re: chaturbate.com: SecureToken problems


 
Quote:

Originally Posted by AmazingMatze (Post 59583)
You do notice, that you are using an outdated SWF version, don't you? Current version is 2.632.

thanks, but it is still not working. Changed it to CBV_2p632.swf and S:2.632.

AmazingMatze 02-10-2013 10:32 PM

Re: chaturbate.com: SecureToken problems


 
Your sample line tells me that you are trying to catch private shows. According to some previous posters private shows don't work anymore.

A working (Windows) commandline Batch for public shows should look like this:
Code:

rtmpdump -v -r "rtmpe://edge4-a.stream.highwebmedia.com/live-edge" -a "live-edge" -f "WIN 11,5,502,146" -W "http://chaturbate.com/static/flash/CBV_2p632.swf" -p "http://chaturbate.com/modelname" -C S:AnonymousUser -C S:modelname -C S:2.632 -C S:anonymous -C S:00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff -y "playpath" -T "m9z#$dO0qe34Rxe@sMYxx%" -o "modelname.flv"
Note that the fourth "-C" parameter (optional hash) is not really necessary atm.

Han5 02-21-2013 01:06 PM

Re: chaturbate.com: SecureToken problems


 
This is really an amazing thread, been figuring out how to capture chaturbate cams and its all laid out here. Thanks to KSV and the members who posted above for contributing and keeping this topic alive :) Best thread eva.

Btw does anyone know if KSV's patch would work on wine emulation?

greenythebeast 02-21-2013 10:49 PM

Re: chaturbate.com: SecureToken problems


 
So does anyone know how to record passworded shows? I'll pay a little money potentially if someone can help me get it working.

InterdimensionalCow 02-23-2013 09:48 AM

Re: chaturbate.com: SecureToken problems


 
It can be assumed if a stream is passworded, the method of retrieving the stream likely requires some special encoding based on the password itself. Of course, if you have the password, it'd just be a matter of figuring out how the password would have to be applied/used. Then again, if they actually do encrypt based on the password, you'd need to know the algorithm...

Also, is there anything special I should be considering while I let RTMPDump download?

oelk 02-23-2013 10:37 AM

Re: chaturbate.com: SecureToken problems


 
Nope. The password is needed to get access to the stream. The stream itself is likely not to be encoded (except rtmpe, which hasn't to do anything with the password).
I'm not sure about chaturbate, but I didn't know about passworded shows there either.

Until some days ago it was possible to record private and group shows using a little security gap. It seems, that it was closed recently. So if you asked me a week ago to record such shows, I would have said: Let's do it.
(Does anyone know about the direct access to live-origin? Would be nice to find out, that it's still possible.)

Cbater 02-23-2013 11:33 AM

Re: chaturbate.com: SecureToken problems


 
Quote:

Originally Posted by oelk (Post 59963)

Until some days ago it was possible to record private and group shows using a little security gap.

Til yesterday evening. now we need a new skript :)

phgonline 02-23-2013 12:48 PM

Re: chaturbate.com: SecureToken problems


 
Quote:

Originally Posted by Cbater (Post 59965)
Til yesterday evening. now we need a new skript :)

Yup, back to the old batch for pubs...

KSV 02-25-2013 08:47 AM

Re: chaturbate.com: SecureToken problems


 
Do you really expected to go this on forever (capping the private/password/group shows from origin server bypassing all security restrictions)? this was a security hole on their end and their fault. when people started posting batch files all around the forums to exploit this they noticed it and recently closed it. now communication between edge and origin servers also requires some security parameters to be passed along with connect requests just as in case of edge serves. we have no access to this communication. so there isn't much anyone can do except guessing the correct sequence and value of those parameters.

obvious excerpts from log:
Code:

DEBUG: RTMP_ClientPacket, received: invoke 34 bytes
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING:        nfo>
DEBUG: Property: <Name:            no-name, NUMBER:        0.00>
DEBUG: Property: NULL
DEBUG: Property: <Name:            no-name, STRING:        version_too_old>
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <nfo>

Code:

DEBUG: (object begin)
DEBUG: Property: <Name:              level, STRING:        error>
DEBUG: Property: <Name:              code, STRING:        NetStream.Play.Failed>
DEBUG: Property: <Name:        description, STRING:        security>
DEBUG: Property: <Name:          clientid, NUMBER:        1661556140.00>
DEBUG: (object end)


eroyamam 03-15-2013 02:40 AM

Re: chaturbate.com: SecureToken problems


 
Hey KSV, or anyone else, before I tackle it, can the last script be modified to do only pw shows? Just wondering if its woth my time.
TIA.

InterdimensionalCow 03-21-2013 01:25 AM

Re: chaturbate.com: SecureToken problems


 
I was just trying the RTMP bookmark on Chaturbate, but when I test it, I get Model Status Error. I ran it on a random different person, same error. I'm not sure why it stopped working today - might just be a fluke since their site has been wonky lately (while trying to find someone to test on, got a 500 internal error, even), but since the cams are technically running, I was curious of your insight (those of you with better knowledge than me).

I get the feeling they changed something about the site, though. You can still access the cameras currently, but the old javascript to compile this no longer works. It might be as simple as adjusting it, or as difficult as a required stream of data which isn't given or easily guessable. I don't know, since I'm not savvy enough.

oelk 03-21-2013 01:50 AM

Re: chaturbate.com: SecureToken problems


 
I don't know which javascript script you're using, but for me everything works well as it did everyday.

If it still doesn't work I could take a look at it. PM me.

InterdimensionalCow 03-21-2013 02:59 PM

Re: chaturbate.com: SecureToken problems


 
I'm using AmazingMatze's javascript:

Quote:

Originally Posted by AmazingMatze (Post 59142)
// I changed it a little bit. This one also retrieves the SwfUrl and the SwfVersion:

Code:

javascript:var prm=document.getElementById('movie').childNodes[6].value;prm=prm.replace(/=/g,"&").split("&");swfUrl=document.getElementsByTagName('object')[0].getAttribute('data');swfVers=swfUrl.replace("_",".").split(".");swfVers=swfVers[1];swfVers=swfVers.split("p");prompt('RTMPDumpCL','rtmpdump -v -r "rtmpe://'+prm[3]+'/live-edge" -a "live-edge" -f "WIN 11,5,502,146" -W "http://'+prm[23]+swfUrl+'" -p "http://'+prm[23]+'/'+prm[1]+'" -C S:'+prm[13]+' -C S:'+prm[1]+' -C S:'+swfVers[0]+'.'+swfVers[1]+' -C S:'+prm[25]+' -C S:'+prm[27]+' -y "playpath" -T "m9z#$dO0qe34Rxe@sMYxx%" -o "'+prm[1]+'.flv"');reload();

When I try it, I get Model status is error.

oelk 03-22-2013 01:57 AM

Re: chaturbate.com: SecureToken problems


 
I don't get the model status error.
Are you using the most recent version of rtmpdump?

InterdimensionalCow 03-23-2013 02:45 PM

Re: chaturbate.com: SecureToken problems


 
From here? http://rtmpdump.mplayerhq.hu/

I remember that back when I first tried, I used that version. Just as back then, I'm getting NetStream.Play.Failed errors when I try. KSV's version, which I think I got from here seemd to work, although not I get that Model Status error. Is there yet another version I don't know about?

Edit: I put RTMPDumpHelper (http://stream-recorder.com/forum/rtm...er-t12719.html) in the folder, ran it, opened Chaturbate. A bunch of stuff popped up, and then I noticed it was making a file. When I closed the tab, it stopped recording. Clearly this isn't how our method works, but it's a compromise for now. For now, I can record it this way. But what is causing the problem with this method now? Any other builds I should know about? I forgot what causes a Model status error. I'm using the build from the link at the top of my post with RTMPDumpHelper.

oelk 03-24-2013 02:16 AM

Re: chaturbate.com: SecureToken problems


 
Now I see your problem. Of course you have to use KSV's version. He has done some necessary modifications for this site (and many others).

I get NetStream.Play.Failed for now, too. The only way i found to get around this is using a login. You'll find they details here in the thread:
here

RTMPDumpHelper does something a bit more tricky. It hooks between your flashplayer and the server to record everything it receives (simply said). So you won't be able to close the tabs without losing connection.

InterdimensionalCow 03-25-2013 06:10 AM

Re: chaturbate.com: SecureToken problems


 
Well, I am logged in. As far as the javascript retrieves, it seems to call all data in. In that case, it'd be calling the wrong data. But what could interrupt the code?

Edit: I wish the Javascript or RTMPDumpHelper had some kind of check so it wouldn't overwrite old files. It'd just have to check file existing, and incrementing a number. I suppose adding that for at least the Javascript would get confusing, though.

oelk 03-25-2013 09:53 AM

Re: chaturbate.com: SecureToken problems


 
There seems to be a little decoding problem in the javascript line. I rewrote it to work properly:
Code:

javascript:var raw=$('param[name="FlashVars"]').val().split('&');var fv={}; for(var i in raw) {var d=raw[i].split('='); fv[d[0]] = unescape(d[1]);} var swfu=$('#movie').attr('data'); swfv = swfu.substring(swfu.indexOf('_')+1,swfu.indexOf('.')).replace('p','.'); prompt('RTMPDumpCL','rtmpdump -v -r "rtmpe://'+fv['address']+'/live-edge" -W "http://'+fv['dom']+swfu+'" -p "http://'+fv['dom']+'/'+fv['pid']+'" -C S:'+fv['uid']+' -C S:'+fv['pid']+' -C S:'+swfv+' -C S:'+fv['pw']+' -C S:'+fv['rp']+' -y "playpath" -T "m9z#$dO0qe34Rxe@sMYxx%" -o "'+fv['pid']+'_'+Number(new Date()/1000).toFixed(0)+'.flv"');
The new one appends a timestamp to the filename, so it won't overwrite your old files anymore. It should also be a bit more stable to minor changes of the website.

To get rtmpdumphelper not to overwrite your files, there are some patches for rtmpsuck you'll find somewhere here in the forum (don't remember where).

InterdimensionalCow 03-25-2013 05:17 PM

Re: chaturbate.com: SecureToken problems


 
Your Javascript has RTMPDump begin downloading, although it stops after a few seconds. Not sure what's different that changed it from Model status is error to recording a few seconds, or why it only records that much. I'm going to be busy for the next few days, so I guess it doesn't matter.


Larry 04-01-2013 10:31 AM

Re: chaturbate.com: SecureToken problems


 
Quote:

Originally Posted by oelk (Post 60991)
There seems to be a little decoding problem in the javascript line. I rewrote it to work properly:
Code:

javascript:var raw=$('param[name="FlashVars"]').val().split('&');var fv={}; for(var i in raw) {var d=raw[i].split('='); fv[d[0]] = unescape(d[1]);} var swfu=$('#movie').attr('data'); swfv = swfu.substring(swfu.indexOf('_')+1,swfu.indexOf('.')).replace('p','.'); prompt('RTMPDumpCL','rtmpdump -v -r "rtmpe://'+fv['address']+'/live-edge" -W "http://'+fv['dom']+swfu+'" -p "http://'+fv['dom']+'/'+fv['pid']+'" -C S:'+fv['uid']+' -C S:'+fv['pid']+' -C S:'+swfv+' -C S:'+fv['pw']+' -C S:'+fv['rp']+' -y "playpath" -T "m9z#$dO0qe34Rxe@sMYxx%" -o "'+fv['pid']+'_'+Number(new Date()/1000).toFixed(0)+'.flv"');
The new one appends a timestamp to the filename, so it won't overwrite your old files anymore. It should also be a bit more stable to minor changes of the website.

To get rtmpdumphelper not to overwrite your files, there are some patches for rtmpsuck you'll find somewhere here in the forum (don't remember where).

In what source is the javascript problem? rtmpdumphelper?

InterdimensionalCow 04-12-2013 03:59 PM

Re: chaturbate.com: SecureToken problems


 
Well, I just tried the Javascript now, and it seems to work. I don't know why there was a prolonged period where it simply refused to, but I will say that right before trying the Javascript, I ran RTMPDumpHelper for a minute or so...

InterdimensionalCow 04-22-2013 02:21 PM

Re: chaturbate.com: SecureToken problems


 
I made batch code to work as a master run file for the code the javascript generates:

Code:

@echo OFF

for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
for /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set mytime=%%a%%b)
echo %mydate%_%mytime%

for /f "tokens=* delims=." %%a in ('dir /b /od') do (
        set newest=%%a
)

call "%newest%"

for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
for /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set mytime=%%a%%b)
echo %mydate%_%mytime%

pause

Make sure the .bat you make for rtmpdump is the most recently edited - this runs the most recent bat file. It displays the time it started, runs that bat file, then displays the time it stopped and awaits for you to look. You could probably improve on this code - I think there is a beep function somewhere which might work, even... - but this is what I'll be using so I don't have to amend pauses and such to each file. All i do is make a new file with the code and run this master code.

felnixx 05-04-2013 02:20 AM

Re: chaturbate.com: SecureToken problems


 
CB changes something in version 634, it doesn't work at all. :(

Quote:

[...]
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Client type: 06
DEBUG: HandShake: DH pubkey position: 472
DEBUG: HandShake: Client digest offset: 1204
DEBUG: HandShake: Initial client digest:
DEBUG: e1 5c 6a 7c 5e c5 17 67 de 34 9f 09 b7 69 af a9
DEBUG: 0b f5 a1 5d f4 12 05 47 e9 ff 95 0b 91 e6 99 9c
DEBUG: Socket closed by server, nBytes: 0
ERROR: RTMP_Connect1, handshake failed.
DEBUG: Closing connection.

non90 05-04-2013 04:15 AM

Re: chaturbate.com: SecureToken problems


 
Quote:

Originally Posted by felnixx (Post 61960)
CB changes something in version 634, it doesn't work at all. :(

Can confirm that problem. Works fine in browser, but not with rtmpdump. Tested with newest KSV release.

Error even produce a very short debug log... tested with first model on page that time.

Code:

RTMPDump v2.4 GIT-2012-12-30 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Protocol : RTMPE
DEBUG: Hostname : edge4-b.stream.highwebmedia.com
DEBUG: Port    : 1935
DEBUG: Playpath : anything_here
DEBUG: tcUrl    : rtmpe://edge4-b.stream.highwebmedia.com:1935/live-edge
DEBUG: swfUrl  : http://chaturbate.com/static/flash/CBV_2p634.swf
DEBUG: pageUrl  : http://chaturbate.com/jessica_shine/
DEBUG: app      : live-edge
DEBUG: flashVer : WIN 11,1,102,63
DEBUG: live    : yes
DEBUG: timeout  : 30 sec
DEBUG: SWFSHA256:
DEBUG: 56 62 34 c0 c4 c9 64 cc d7 ce ab 9b a6 06 69 d1
DEBUG: ff c1 1e c5 e0 a0 f5 6d c6 3f 6c 44 a8 1b e3 26
DEBUG: SWFSize  : 438080
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Client type: 06
DEBUG: HandShake: DH pubkey position: 358
DEBUG: HandShake: Client digest offset: 1219
DEBUG: HandShake: Initial client digest:
DEBUG: 2c 85 4b 8a 99 17 d3 bd 12 26 97 c1 d0 0b 0f 9b
DEBUG: 68 c2 ad a6 9a 25 b1 90 51 96 32 73 48 55 89 40
DEBUG: Socket closed by server, nBytes: 0
ERROR: RTMP_Connect1, handshake failed.
DEBUG: Closing connection.



All times are GMT -6. The time now is 10:45 PM.