[MPlayer-dev-eng] Some info on RTSP

Felix Buenemann atmosfear at users.sourceforge.net
Mon Jun 10 04:32:48 CEST 2002


Hi,

I took some time to setup realserver 8 basic and real player 8 basic on my 
laptop (of course neither of the setup routines worked, but I fixed it 
manually). I did this in order to acquire some info about the Real RTSP 
challenge, so attached is the EtherReal packet-print I created, which shows 
the whole communication (only RTSP, UDP Data skipped, SDP Data not displayed) 
between server and client from open location and play clip until manually 
stopping the clip.
Note that I setup RTSP on the server to 5554 instead of 554 because I run it 
as user, so shown service name is misleading.

I could type a description of the challenge, but it's already described here:
http://realforum.real.com/realforum/msg07554.html (silly idea to ask for info 
on this at real.com - surely wasn't me ;)

Now here are my conclusions on how to try to get the challenge reverse 
engineered:

- Compare with different Real clients, probably won't help much as starting 
challenge should be random number, but who knows

- Write a emulation client (eg. perl script) that can feed the server with 
bogus data, might give a clue what encryptions are used (eg. feed with all 
zeroes)

- Write a emulation server (eg. perl script) to see how real clients react to 
different reply data, for same purpose

- If still stuck it needs a memory-debugger like SoftICE to trace the actual 
code, this could help to find what's going on, but it's only for advanced 
hackers. (Or dissamble code and try to analyze "offline".)

Do you have more ideas/corrections what could help to get this problem 
resolved?

-- 
Best Regards,
        Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________
-------------- next part --------------
Frame 4 (467 on wire, 467 captured)
Ethernet II
Internet Protocol, Src Addr: localhost (127.0.0.1), Dst Addr: localhost (127.0.0.1)
Transmission Control Protocol, Src Port: 33394 (33394), Dst Port: sgi-esphttp (5554), Seq: 1899437875, Ack: 1894368777
Real Time Streaming Protocol
    OPTIONS rtsp://localhost:5554 RTSP/1.0\r\n
    CSeq: 1\r\n
    User-Agent: RealMedia Player Version 6.0.9.1244 (linux-2.0-libc6-i386-gcc2.95)\r\n
    ClientChallenge: 3862819c8554190015b3dc5775d12765\r\n
    PlayerStarttime: [10/06/2002:03:31:36 00:00]\r\n
    CompanyID: e2uJMQVsRsXG9OdJVZpwrQ==\r\n
    GUID: 00000000-0000-0000-0000-000000000000\r\n
    RegionData: 0\r\n
    ClientID: Linux_2.4_6.0.9.1244_play32_RN01_EN_586\r\n
    Pragma: initiate-session\r\n
    \r\n

Frame 6 (363 on wire, 363 captured)
Ethernet II
Internet Protocol, Src Addr: localhost (127.0.0.1), Dst Addr: localhost (127.0.0.1)
Transmission Control Protocol, Src Port: sgi-esphttp (5554), Dst Port: 33394 (33394), Seq: 1894368777, Ack: 1899438276
Real Time Streaming Protocol
    RTSP/1.0 200 OK\r\n
    CSeq: 1\r\n
    Date: Mon, 10 Jun 2002 02:31:36 GMT\r\n
    Session: 1529784139-1\r\n
    Server: RealServer Version 8.0.2.471 (linux-2.0-libc6-i386)\r\n
    Public: OPTIONS, DESCRIBE, ANNOUNCE, SETUP, GET_PARAMETER, SET_PARAMETER, TEARDOWN\r\n
    RealChallenge1: 8fe828355389ee6cb2752fa7cefeb234\r\n
    StatsMask: 3\r\n
    \r\n

Frame 8 (397 on wire, 397 captured)
Ethernet II
Internet Protocol, Src Addr: localhost (127.0.0.1), Dst Addr: localhost (127.0.0.1)
Transmission Control Protocol, Src Port: 33394 (33394), Dst Port: sgi-esphttp (5554), Seq: 1899438276, Ack: 1894369074
Real Time Streaming Protocol
    DESCRIBE rtsp://localhost:5554/mytest.rm RTSP/1.0\r\n
    CSeq: 2\r\n
    Accept: application/sdp\r\n
    Session: 1529784139-1\r\n
    Bandwidth: 524300\r\n
    GUID: 00000000-0000-0000-0000-000000000000\r\n
    RegionData: 0\r\n
    ClientID: Linux_2.4_6.0.9.1244_play32_RN01_EN_586\r\n
    SupportsMaximumASMBandwidth: 1\r\n
    Language: en-US\r\n
    Require: com.real.retain-entity-for-setup\r\n
    \r\n

Frame 9 (2393 on wire, 2393 captured)
Ethernet II
Internet Protocol, Src Addr: localhost (127.0.0.1), Dst Addr: localhost (127.0.0.1)
Transmission Control Protocol, Src Port: sgi-esphttp (5554), Dst Port: 33394 (33394), Seq: 1894369074, Ack: 1899438607
Real Time Streaming Protocol
    RTSP/1.0 200 OK\r\n
    CSeq: 2\r\n
    Date: Mon, 10 Jun 2002 02:31:36 GMT\r\n
    Set-Cookie: cbid=gkejdmhiejcfhidmeoloqupqmrjrktlufkcgkidlhjekllplosmroulqfrrsmtqugfejohii;path=/;expires=Thu,31-Dec-2037 23:59:59 GMT\r\n
    vsrc: http://localhost:8080/viewsource/template.html?nuyhtgmf6oz6deAdsevacfngqyqDreA1v1yeC3d4ngEt5o5g000000\r\n
    X-TSPort: 7802\r\n
    Last-Modified: Mon, 10 Jun 2002 01:58:20 GMT\r\n
    Content-base: rtsp://localhost:5554/mytest.rm/\r\n
    ETag: 1529784139-1\r\n
    Session: 1529784139-1\r\n
    Content-type: application/sdp\r\n
    Content-length: 1812\r\n
    \r\n
Session Description Protocol

Frame 11 (437 on wire, 437 captured)
Ethernet II
Internet Protocol, Src Addr: localhost (127.0.0.1), Dst Addr: localhost (127.0.0.1)
Transmission Control Protocol, Src Port: 33394 (33394), Dst Port: sgi-esphttp (5554), Seq: 1899438607, Ack: 1894371401
Real Time Streaming Protocol
    SETUP rtsp://localhost:5554/mytest.rm/streamid=0 RTSP/1.0\r\n
    CSeq: 3\r\n
    RealChallenge2: 97679f68c4214ec5091eb23f86a9e37a01d0a8e3, sd=99c40b8e\r\n
    RDTFeatureLevel: 2\r\n
    Transport: x-real-rdt/mcast;client_port=6970;mode=play,x-real-rdt/udp;client_port=6970;mode=play,x-pn-tng/udp;client_port=6970;mode=play,rtp/avp;unicast;client_port=6970-6971;mode=play\r\n
    If-Match: 1529784139-1\r\n
    \r\n

Frame 12 (307 on wire, 307 captured)
Ethernet II
Internet Protocol, Src Addr: localhost (127.0.0.1), Dst Addr: localhost (127.0.0.1)
Transmission Control Protocol, Src Port: sgi-esphttp (5554), Dst Port: 33394 (33394), Seq: 1894371401, Ack: 1899438978
Real Time Streaming Protocol
    RTSP/1.0 200 OK\r\n
    CSeq: 3\r\n
    Date: Mon, 10 Jun 2002 02:31:36 GMT\r\n
    Session: 1529784139-1\r\n
    RealChallenge3: 27442dfd24c3d0756a6fc594c76c846d4f213d09,sdr=222d6cc8\r\n
    RDTFeatureLevel: 2\r\n
    Transport: x-real-rdt/udp;client_port=6970;server_port=30486\r\n
    \r\n

Frame 14 (233 on wire, 233 captured)
Ethernet II
Internet Protocol, Src Addr: localhost (127.0.0.1), Dst Addr: localhost (127.0.0.1)
Transmission Control Protocol, Src Port: 33394 (33394), Dst Port: sgi-esphttp (5554), Seq: 1899438978, Ack: 1894371642
Real Time Streaming Protocol
    SETUP rtsp://localhost:5554/mytest.rm/streamid=1 RTSP/1.0\r\n
    CSeq: 4\r\n
    RDTFeatureLevel: 2\r\n
    Transport: x-real-rdt/udp;client_port=6970;mode=play\r\n
    Session: 1529784139-1\r\n
    \r\n

Frame 15 (236 on wire, 236 captured)
Ethernet II
Internet Protocol, Src Addr: localhost (127.0.0.1), Dst Addr: localhost (127.0.0.1)
Transmission Control Protocol, Src Port: sgi-esphttp (5554), Dst Port: 33394 (33394), Seq: 1894371642, Ack: 1899439145
Real Time Streaming Protocol
    RTSP/1.0 200 OK\r\n
    CSeq: 4\r\n
    Date: Mon, 10 Jun 2002 02:31:36 GMT\r\n
    Session: 1529784139-1\r\n
    RDTFeatureLevel: 2\r\n
    Transport: x-real-rdt/udp;client_port=6970;server_port=30486\r\n
    \r\n

Frame 17 (232 on wire, 232 captured)
Ethernet II
Internet Protocol, Src Addr: localhost (127.0.0.1), Dst Addr: localhost (127.0.0.1)
Transmission Control Protocol, Src Port: 33394 (33394), Dst Port: sgi-esphttp (5554), Seq: 1899439145, Ack: 1894371812
Real Time Streaming Protocol
    SET_PARAMETER rtsp://localhost:5554/mytest.rm RTSP/1.0\r\n
    CSeq: 5\r\n
    Subscribe: stream=0;rule=0,stream=0;rule=1,stream=1;rule=0,stream=1;rule=1\r\n
    Session: 1529784139-1\r\n
    \r\n

Frame 18 (154 on wire, 154 captured)
Ethernet II
Internet Protocol, Src Addr: localhost (127.0.0.1), Dst Addr: localhost (127.0.0.1)
Transmission Control Protocol, Src Port: sgi-esphttp (5554), Dst Port: 33394 (33394), Seq: 1894371812, Ack: 1899439311
Real Time Streaming Protocol
    RTSP/1.0 200 OK\r\n
    CSeq: 5\r\n
    Date: Mon, 10 Jun 2002 02:31:36 GMT\r\n
    Session: 1529784139-1\r\n
    \r\n

Frame 20 (172 on wire, 172 captured)
Ethernet II
Internet Protocol, Src Addr: localhost (127.0.0.1), Dst Addr: localhost (127.0.0.1)
Transmission Control Protocol, Src Port: 33394 (33394), Dst Port: sgi-esphttp (5554), Seq: 1899439311, Ack: 1894371900
Real Time Streaming Protocol
    PLAY rtsp://localhost:5554/mytest.rm RTSP/1.0\r\n
    CSeq: 6\r\n
    Session: 1529784139-1\r\n
    Range: npt=0-152.548000\r\n
    \r\n

Frame 21 (269 on wire, 269 captured)
Ethernet II
Internet Protocol, Src Addr: localhost (127.0.0.1), Dst Addr: localhost (127.0.0.1)
Transmission Control Protocol, Src Port: sgi-esphttp (5554), Dst Port: 33394 (33394), Seq: 1894371900, Ack: 1899439417
Real Time Streaming Protocol
    RTSP/1.0 200 OK\r\n
    CSeq: 6\r\n
    Date: Mon, 10 Jun 2002 02:31:36 GMT\r\n
    RTP-Info: url=rtsp://localhost:5554/mytest.rm/streamid=0;seq=0;rtptime=0, url=rtsp://localhost:5554/mytest.rm/streamid=1;seq=0;rtptime=0\r\n
    \r\n

Frame 24 (115 on wire, 115 captured)
Ethernet II
Internet Protocol, Src Addr: localhost (127.0.0.1), Dst Addr: localhost (127.0.0.1)
Transmission Control Protocol, Src Port: 33394 (33394), Dst Port: sgi-esphttp (5554), Seq: 1899439417, Ack: 1894372103
Real Time Streaming Protocol
    SET_PARAMETER * RTSP/1.0\r\n
    CSeq: 7\r\n
    Ping: Pong\r\n
    \r\n

Frame 25 (153 on wire, 153 captured)
Ethernet II
Internet Protocol, Src Addr: localhost (127.0.0.1), Dst Addr: localhost (127.0.0.1)
Transmission Control Protocol, Src Port: sgi-esphttp (5554), Dst Port: 33394 (33394), Seq: 1894372103, Ack: 1899439466
Real Time Streaming Protocol
    RTSP/1.0 451 Parameter Not Understood\r\n
    CSeq: 7\r\n
    Date: Mon, 10 Jun 2002 02:31:36 GMT\r\n
    \r\n

Frame 67 (206 on wire, 206 captured)
Ethernet II
Internet Protocol, Src Addr: localhost (127.0.0.1), Dst Addr: localhost (127.0.0.1)
Transmission Control Protocol, Src Port: 33394 (33394), Dst Port: sgi-esphttp (5554), Seq: 1899439466, Ack: 1894372190
Real Time Streaming Protocol
    SET_PARAMETER rtsp://localhost:5554/mytest.rm RTSP/1.0\r\n
    CSeq: 8\r\n
    SetDeliveryBandwidth: Bandwidth=477113;BackOff=0\r\n
    Session: 1529784139-1\r\n
    \r\n

Frame 69 (154 on wire, 154 captured)
Ethernet II
Internet Protocol, Src Addr: localhost (127.0.0.1), Dst Addr: localhost (127.0.0.1)
Transmission Control Protocol, Src Port: sgi-esphttp (5554), Dst Port: 33394 (33394), Seq: 1894372190, Ack: 1899439606
Real Time Streaming Protocol
    RTSP/1.0 200 OK\r\n
    CSeq: 8\r\n
    Date: Mon, 10 Jun 2002 02:31:37 GMT\r\n
    Session: 1529784139-1\r\n
    \r\n

Frame 524 (500 on wire, 500 captured)
Ethernet II
Internet Protocol, Src Addr: localhost (127.0.0.1), Dst Addr: localhost (127.0.0.1)
Transmission Control Protocol, Src Port: 33394 (33394), Dst Port: sgi-esphttp (5554), Seq: 1899439606, Ack: 1894372278
Real Time Streaming Protocol
    SET_PARAMETER rtsp://localhost:5554/mytest.rm RTSP/1.0\r\n
    CSeq: 9\r\n
    Session: 1529784139-1\r\n
    PlayerStats: Stat1:       128          0          0          0          0 32_Kbps_Stereo_Music_-_RA8][Stat2:     32041      62243          0          0          0          0          0          0          0          0         40 32_Kbps_St
    \r\n
    TEARDOWN rtsp://localhost:5554/mytest.rm RTSP/1.0\r\n
    CSeq: 10\r\n
    Session: 1529784139-1\r\n
    \r\n

Frame 526 (154 on wire, 154 captured)
Ethernet II
Internet Protocol, Src Addr: localhost (127.0.0.1), Dst Addr: localhost (127.0.0.1)
Transmission Control Protocol, Src Port: sgi-esphttp (5554), Dst Port: 33394 (33394), Seq: 1894372278, Ack: 1899440041
Real Time Streaming Protocol
    RTSP/1.0 200 OK\r\n
    CSeq: 9\r\n
    Date: Mon, 10 Jun 2002 02:31:44 GMT\r\n
    Session: 1529784139-1\r\n
    \r\n


More information about the MPlayer-dev-eng mailing list