View Single Post
  #10  
Old 12-17-2014, 03:05 AM
benstewart benstewart is offline
Junior Member
 
Join Date: Dec 2014
Posts: 8
benstewart is on a distinguished road
Default

Re: Challenge: decode stream url & token from wireshark logs


Hi biezom,

I'm also on Debian. When I do:
  1. sudo iptables -t nat -A OUTPUT -p tcp --dport 1735 -j REDIRECT --to-port 1935
  2. rtmpsrv
  3. watch in the browser http://polysportstv.net/live?ch=3

I successfully get the rtmpdump command, then I flush the iptables rules. When I launch the rtmpdump command, the server rejects me.

What am I missing? Does it work on your side?

Get the RTMP command:

Code:
./rtmpsrv
RTMP Server v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935
WARNING: Trying different position for client digest!

rtmpdump -r "rtmp://185.39.10.134:1735/redirect/" -a "redirect/?token=play@141883511703666" -f "LNX 11,2,202,425" -W "http://www.spasswitz.com/jwplayer5/addplayer/jwplayer.flash.swf" -p "http://www.playerhd2.pw/embed.php?c=28128&width=640&height=360&autostart=true&tk1=EoIDYJhisqAyhTuDnQVDx2wbMKlk7b594sPSFQ1txB0%3D&tk2=RJf1qQRTaTQoGtU783KcO7HQmPzNxiQ0KEUGquhbom4%3D&tk3=00%2BWU6PNzKb%2FXN9kR3E%2BJaiGndT7%2FFUp%2BG9YlZhzEVU%3D" -y "jerkoooo_7w4bxhm" -o "2014-12-17_10-55-48_jerkoooo_7w4bxhm.flv"

Closing connection... done!

Play it just after:

Code:
./rtmpdump -r "rtmp://185.39.10.134:1735/redirect/" -a "redirect/?token=play@141883511703666" -f "LNX 11,2,202,425" -W "http://www.spasswitz.com/jwplayer5/addplayer/jwplayer.flash.swf" -p "http://www.playerhd2.pw/embed.php?c=28128&width=640&height=360&autostart=true&tk1=EoIDYJhisqAyhTuDnQVDx2wbMKlk7b594sPSFQ1txB0%3D&tk2=RJf1qQRTaTQoGtU783KcO7HQmPzNxiQ0KEUGquhbom4%3D&tk3=00%2BWU6PNzKb%2FXN9kR3E%2BJaiGndT7%2FFUp%2BG9YlZhzEVU%3D" -y "jerkoooo_7w4bxhm" -o "2014-12-17_10-55-49_jerkoooo_7w4bxhm.flv"
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
INFO: rtmp server sent redirect
INFO: trying to connect with redirected url
ERROR: rtmp server sent error
ERROR: rtmp server requested close
Reply With Quote