X-I-5-Ticket

From PS3 Developer wiki
Revision as of 02:56, 12 February 2014 by Euss (talk | contribs)
Jump to navigation Jump to search

PSN authentification cookies

X-I-5-Ticket

X-I-5-Ticket are some sort of cookies used for PSN authentification.

Instead of sending username & password to third-party game servers a ticket is requested to PSN servers and send to game servers. Then the server can use the ticket to authentificate the user.

X-I-5-Version

With time X-I-5-Tickets evolved. When requesting a Ticket to PSN servers the PS3 tell the highest version it supports (via X-I-5-Version HTTP header). PSN servers use this header to return a supported ticket (the version used by servers can also be found in X-I-5-Version HTTP header). PS3 firmware can use tickets with lower or equal version.

Composition

We would expect that size that not fit on 1 Byte would use 2 Bytes but it takes 3 Bytes instead (first is 0x00)!

Header

V1 0M 00 00 00 00 00 XX

V is major ticket version. M is minor ticket version. XX is total ticket size (including this header).

Sections

Sections are delimited with :

30 XX 00 YY

XX is section type. YY is total section size (excluding this delimiter).

Section type Contains
00 Body
02 Footer
10 00 00 00 00
11 07 c4 02 1d

A section can contain other sections or data.

Data

Some sections contain data delimited just like that :

00 XX 00 YY

XX is data type and YY is data length.

Data type Contains
00 No data
01 00 00 01 00
02 Console ID ?
04 String (username, server ...)
07 Timestamp (in milliseconds)
08 String (hash, lang, service ID ...)


Example

Those examples are auth tickets. Username are hidden.

2.0

Length: 212 Bytes.

00000000  21 00 00 00 00 00 00 cc 30 00 00 a4 00 08 00 14 79 3c   !.......0.......y<
00000012  f6 fb 7a ae 34 cc 2d 47 16 dc a7 98 fd cf 66 ee e0 10   ..z.4.-G......f...
00000024  00 01 00 04 00 00 01 00 00 07 00 08 00 00 01 3a 5b 98   ...............:[.
00000036  43 f0 00 07 00 08 00 00 01 3a 60 be 9e 20 00 02 00 08   C........:`.. ....
00000048  59 2e 71 c5 46 e8 68 59 00 04 00 20 XX XX XX XX XX XX   Y.q.F.hY... XXXXXX    HIDDEN USERNAME
0000005a  XX XX 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   XX................
0000006c  00 00 00 00 00 00 00 00 00 08 00 04 66 72 00 02 00 04   ............fr....
0000007e  00 04 63 39 00 00 00 08 00 18 49 56 30 30 30 31 2d 4e   ..c9......IV0001-N
00000090  50 58 53 30 31 30 30 31 5f 30 30 00 00 00 00 00 00 01   PXS01001_00.......
000000a2  00 04 18 00 02 00 00 00 00 00 00 00 00 00 30 02 00 20   ..............0...
000000b4  00 08 00 04 34 cd 3c a9 00 08 00 14 e9 e7 10 4b c5 d6   ....4.<........K..
000000c6  09 17 7c f2 9b 91 dd c7 8d 6c de b9 06 e1               ..|......l....

2.1

Length: 212 Bytes.

00000000  21 01 00 00 00 00 00 cc 30 00 00 a4 00 08 00 14 4c 47   !.......0.......LG
00000012  56 3b 81 39 4a 22 d8 6b c1 57 71 6e fd b8 ab 63 cc 51   V;.9J".k.Wqn...c.Q
00000024  00 01 00 04 00 00 01 00 00 07 00 08 00 00 01 3a 5b 93   ...............:[.
00000036  75 29 00 07 00 08 00 00 01 3a 60 b9 cf a8 00 02 00 08   u).......:`.......
00000048  59 2e 71 c5 46 e8 68 59 00 04 00 20 XX XX XX XX XX XX   Y.q.F.hY... XXXXXX    HIDDEN USERNAME
0000005a  XX XX 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   XX................
0000006c  00 00 00 00 00 00 00 00 00 08 00 04 66 72 00 02 00 04   ............fr....
0000007e  00 04 63 39 00 00 00 08 00 18 49 56 30 30 30 31 2d 4e   ..c9......IV0001-N
00000090  50 58 53 30 31 30 30 31 5f 30 30 00 00 00 00 00 00 01   PXS01001_00.......
000000a2  00 04 18 00 02 00 00 00 00 00 00 00 00 00 30 02 00 20   ..............0... 
000000b4  00 08 00 04 34 cd 3c a9 00 08 00 14 3a 4b 42 66 92 da   ....4.<.....:KBf..
000000c6  6b 7c b7 4c e8 d9 4f 2b 77 15 91 b8 a4 a9               k|.L..O+w.....

3.0

Length: 220 Bytes.

00000000  31 00 00 00 00 00 00 d4 30 00 00 ac 00 08 00 14 02 d6   1.......0.........
00000012  5a 9a d8 1d 09 34 27 42 4b 9b 67 29 3e f2 97 55 bc 78   Z....4'BK.g)>..U.x
00000024  00 01 00 04 00 00 01 00 00 07 00 08 00 00 01 3a 5a d2   ...............:Z.
00000036  75 38 00 07 00 08 00 00 01 3a 5f f8 cd 80 00 02 00 08   u8.......:_.......
00000048  59 2e 71 c5 46 e8 68 59 00 04 00 20 XX XX XX XX XX XX   Y.q.F.hY... XXXXXX    HIDDEN USERNAME
0000005a  XX XX 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   XX................
0000006c  00 00 00 00 00 00 00 00 00 08 00 04 66 72 00 02 00 04   ............fr....
0000007e  00 04 63 39 00 00 00 08 00 18 49 56 30 30 30 31 2d 4e   ..c9......IV0001-N
00000090  50 58 53 30 31 30 30 31 5f 30 30 00 00 00 00 00 30 11   PXS01001_00.....0.
000000a2  00 04 07 c4 02 1d 00 01 00 04 18 00 02 00 30 10 00 00   ..............0...
000000b4  00 00 00 00 30 02 00 20 00 08 00 04 34 cd 3c a9 00 08   ....0.. ....4.<...
000000c6  00 14 dc 3b 1a 15 ec c8 15 55 85 ea 9a 07 e2 1f dd be   ...;.....U........
000000d8  3f a8 56 9c                                             ?.V.

4.0

Length: 320 Bytes.

00000000  41 00 00 00 00 00 00 00 01 36 30 00 00 00 01 00 00 08   A........60.......
00000012  00 14 af 67 48 e7 27 2a 3b 13 62 9e df fc c5 ab 05 9b   ...gH.'*;.b.......
00000024  7b 92 fa 02 00 01 00 04 00 00 01 00 00 07 00 08 00 00   {.................
00000036  01 3a 5b 88 47 1d 00 07 00 08 00 00 01 3a 60 ae a0 60   .:[.G........:`..`
00000048  00 02 00 08 59 2e 71 c5 46 e8 68 59 00 04 00 20 XX XX   ....Y.q.F.hY... XX    HIDDEN USERNAME
0000005a  XX XX XX XX XX XX 00 00 00 00 00 00 00 00 00 00 00 00   XXXXXX............
0000006c  00 00 00 00 00 00 00 00 00 00 00 00 00 08 00 04 66 72   ................fr
0000007e  00 02 00 04 00 04 63 39 00 00 00 08 00 18 49 56 30 30   ......c9......IV00
00000090  30 31 2d 4e 50 58 53 30 31 30 30 31 5f 30 30 00 00 00   01-NPXS01001_00...
000000a2  00 00 30 11 00 04 07 c4 02 1d 00 01 00 04 18 00 02 00   ..0...............
000000b4  30 10 00 00 00 00 00 00 00 00 00 00 00 08 00 08 50 53   0...............PS
000000c6  33 5f 43 00 00 00 00 08 00 40 01 00 00 00 00 00 00 00   3_C......@........
000000d8  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ..................
000000ea  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ..................
000000fc  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ..................
0000010e  00 00 30 02 00 2c 00 08 00 04 34 cd 3c a9 00 08 00 20   ..0..,....4.<.....
00000120  c4 ee 75 80 ec c1 d7 63 54 00 39 98 84 cf 68 34 94 8f   ..u....cT.9...h4..
00000132  e9 2f b4 67 a3 2e 20 cc 88 cd 10 0e 8b 41               ./.g.. ......A


Firmware support

Firmwares 2.0 2.1 3.0 4.0
??? Yes - - -
??? Yes Yes - -
3.55 - 3.74 Yes Yes Yes -
4.00 Yes Yes Yes -
4.10 - 4.25 Yes Yes Yes Yes