how to fight against rtmpdump (without fle or wirecast ) ?

355 views
Skip to first unread message

markham extra

unread,
Feb 26, 2013, 1:01:29 PM2/26/13
to c-rtmp...@googlegroups.com
Hi,

my streaming server works like charm, thanks to Rani,

but now i want to protect my video angainst rtmpdump

i follow the protect-media tutorial (scenario 1 )  and its works with simple interception

but not with that following tool :


because it capture all parameter (pageUrl,tcUrl, swfUrl,Pageurl)

i just want stream pre-record videoclip and i have not money to paid an Fle or wirecast.

how to neutralize this tools ?

thanks


Rani

unread,
Feb 26, 2013, 1:48:02 PM2/26/13
to c-rtmp...@googlegroups.com
Hi,

have you checked crtmpserver log file ? i have tested with rtmpdump helper but everything works as expected:

crtmpserver:
1361907463:3:/thelib/src/netio/kqueue/tcpacceptor.cpp:180:Accept:Client connected: XXXX:50688 -> YYYY:1935
1361907463:2:/thelib/src/protocols/rtmp/inboundrtmpprotocol.cpp:126:ValidateClient:This version of player doesn't support validation
1361907463:0:/thelib/src/protocols/rtmp/inboundrtmpprotocol.cpp:171:PerformHandshake:Unable to validate client
1361907463:0:/thelib/src/protocols/rtmp/basertmpprotocol.cpp:309:SignalInputData:Unable to perform handshake
1361907463:4:/thelib/src/netio/kqueue/iohandlermanager.cpp:168:UnRegisterIOHandler:Handlers count changed: 37->36 IOHT_TCP_CARRIER
1361907463:6:/thelib/src/protocols/protocolmanager.cpp:45:EnqueueForDelete:Enqueue for delete for protocol [IR(6228)]
1361907463:6:/thelib/src/application/baseclientapplication.cpp:246:UnRegisterProtocol:Protocol [IR(6228)] unregistered from application: appselector

rtmpdump helper
...
ERROR: RTMP_Connect1, handshake failed
Cought signal: 2, cleaning up, just a second...


do you publish your stream to flvplayback (if so read scenario V. Combining protected streams...) or just play the file ? did you enable handshake ?
Please give me more details (crtmpserver.lua, rtmpapphandlerprotocol.h/.cpp).

best regards

markham extra

unread,
Feb 26, 2013, 2:31:32 PM2/26/13
to c-rtmp...@googlegroups.com

Here my files :




i just use rtmp protocol so far.

my test page is on wamp webserver (i call with http://193.49.50.97/video.html)  and a i use an  external streaming server on centos 5.9 (with crtmpserver of course : 193.49.50.33)


voila

Rani

unread,
Feb 26, 2013, 4:04:49 PM2/26/13
to c-rtmp...@googlegroups.com
Hi,

I think you have left out ValidateRequest(request) function! :)

try to recomplile with this modified files:

rtmpapphandlerprotocol.h
http://pastebin.com/raw.php?i=FJkKxLrt

rtmpapphandlerprotocol.cpp
http://pastebin.com/raw.php?i=uwshYZxd

It has some small modifications towards same file from tutorial meaning i have added more info as usual as for a valid connection:
1361915341:3:/applications/flvplayback/src/rtmpappprotocolhandler.cpp:164:ValidateRequest:Connecting schema is: 'rtmp://xxx/yyy'
1361915341:3:/applications/flvplayback/src/rtmpappprotocolhandler.cpp:177:ValidateRequest:Webplayer address is : 'http://somewebpage/webplayer'
1361915341:3:/applications/flvplayback/src/rtmpappprotocolhandler.cpp:192:ValidateRequest:Calling webpage IP is: '1.2.3.4'
1361915341:3:/applications/flvplayback/src/rtmpappprotocolhandler.cpp:204:ValidateRequest:Calling webpage is: 'http://somewebsite/somepage'
1361915341:3:/applications/flvplayback/src/rtmpappprotocolhandler.cpp:223:ValidateRequest:Total connections: 'XXXXX'
1361915341:3:/applications/flvplayback/src/rtmpappprotocolhandler.cpp:113:ProcessInvokeConnect:User ip is:  '5.6.7.8'

As an advice svn a fresh version into a separate folder, modify crtmpserver.lua to change port to 1936 and test it with this port (just add rtmp://193.49.50.33:1936/vod/ to existing values of rtmpapphandlerprotocol.cpp for testing) until you are sure that everything is ok; then stop running version and start the new one.

BEFORE YOU RECOMPILE DO NOT FORGET TO:
sh cleanup.sh (into <rtmpd_source>/builders/cmake) then cmake . && make


I hope have not left over anything (i am a little tired but if anything goes wrong with compile do not worry will manage it tomorrow)

best regards

markham extra

unread,
Feb 27, 2013, 1:27:37 PM2/27/13
to c-rtmp...@googlegroups.com
i replace cpp and h copile and


Not change,

rtmpdump print a  warning handshake error

but it dump my video sucessfully :-(


(no error mesages in crtmpserver log, but new info like client ip et flash version)

any ideas ?

ps: video it's a simple flv example stream by rtmp.

my last crtmpserver.lua file

Rani

unread,
Feb 27, 2013, 4:08:02 PM2/27/13
to c-rtmp...@googlegroups.com
Hi,

I have tested with jwplayer like in your config and indeed it has passed; in my tests (latest 2 months ago i have heard about rtmpdump helper and test it with my current platform) i have used another webplayer (it is more like a web video platform): web-anatomy.com. There is a free edition as well which it is imune to rtmpdump helper because it has a preloader swf then core webplayer starts only after receiving data from preloader (as i remember their explanation). So, yesterday when i have told you first time, above, that it should be working fine i was using darkonyx player for testing and never came up into my mind to try with a different flash player. That why i was very sure from the begginning that would not be any problem

But do not worry you can still bypass that using flowplayer and ability of flowplayer to pass ARGUMENTS to crtmpserver ( i am preaty sure of it). I will assable this into next tutorial this weekend.

stay tuned :)

best regards

markham extra

unread,
Mar 5, 2013, 2:08:29 PM3/5/13
to c-rtmp...@googlegroups.com
cool Rani ,

Wait & see ;-)


Le mardi 26 février 2013 19:01:29 UTC+1, markham extra a écrit :

markham extra

unread,
Mar 18, 2013, 4:52:14 AM3/18/13
to c-rtmp...@googlegroups.com

http://wiki.rtmpd.com/tutorial_ffunctional_secure

Nice begin rani !!!!

but

The rest  please !
;-)
Reply all
Reply to author
Forward
0 new messages