Editing PSN Handshake Signup

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{Wikify}}
''this page needs cleanup and proper formatting''




==Signup Response==
Signup Response


Basic structure of the response
Basic structure of the response
<pre>
 
   0x00:  4 Byte - main header -> 30 00 00 4f  
   0x00:  4 Byte - main header -> 30 00 00 4f  
   0x04:  4 Byte - size   -> 00 5e 00 47
   0x04:  4 Byte - size   -> 00 5e 00 47
Line 13: Line 13:
   0x26:  6 Byte - np:  00 01 00 00 00 sp-int: 00 01 00 00 00 23  
   0x26:  6 Byte - np:  00 01 00 00 00 sp-int: 00 01 00 00 00 23  
   0x2a:  4 Byte - {10 5d 00 0b} 0x000b - size of email
   0x2a:  4 Byte - {10 5d 00 0b} 0x000b - size of email
   0x2e:  x Byte - email, here 0b in size</pre>
   0x2e:  x Byte - email, here 0b in size
Legend
Legend


Main Header xx xx xx ss ss = size
Main Header xx xx xx ss ss = size


==Positive Auth==
Positive Auth


Auth Reply Structure
Auth Reply Structure
<pre>
 
   0x00:  4 Byte - main header -> 31 00 00 00  
   0x00:  4 Byte - main header -> 31 00 00 00  
   0x04:  4 Byte - size        -> 00 00 00 d4  
   0x04:  4 Byte - size        -> 00 00 00 d4  
Line 53: Line 53:
   0xc4:  4 Byte - {00 08 00 14}
   0xc4:  4 Byte - {00 08 00 14}
   0xc8: 20 Byte - SIGNATURE -> maybe HMAC/SHA1
   0xc8: 20 Byte - SIGNATURE -> maybe HMAC/SHA1
</pre>
 
* Often found before Name/Handle, assigned at signup and store at first 8 byte of cache
* often found before Name/Handle, assigned at signup and store at first 8 byte of cache
* * Seems to be the same for the same for every console, differs for others
* * seems to be the same for the same for every console, differs for others


Size
Size
Line 72: Line 72:
ss = data size in hex
ss = data size in hex


==Timestamps==
Timestamps
These are Timestamp:
These are Timestamp:


<pre> X = 00 00 01 2f 31 ff a0 58h -> 1302213927000d</pre>
X = 00 00 01 2f 31 ff a0 58h -> 1302213927000d
The X / 1000 = seconds since 1970, so this date is 08.04.2011
The X / 1000 = seconds since 1970, so this date is 08.04.2011


PHP to easy recheck:
PHP to easy recheck:


<pre> $timestamp = 1302010662000 / 1000;
$timestamp = 1302010662000 / 1000;
  date("d.m.Y",$timestamp);</pre>
  date("d.m.Y",$timestamp);
It's just Miliseconds.
It's just Miliseconds.




----
----
==Profile Settings==
===Request===


On finalize auth ps3 request profile settings is xml based process  
On finalize auth ps3 request profile settings is xml based process  
Line 95: Line 92:


Headers:
Headers:
<pre> POST /basic_view/sec/get_self_profile HTTP/1.1
POST /basic_view/sec/get_self_profile HTTP/1.1
  Connection Keep-Alive
  Connection Keep-Alive
  Content-Length 430
  Content-Length 430
  Accept-Encoding identity
  Accept-Encoding identity
  User-Agent PS3Community-agent/1.0.0 libhttp/1.0.0
  User-Agent PS3Community-agent/1.0.0 libhttp/1.0.0
  Host Url:443</pre>
  Host Url:443




Contents:
Contents:
<pre> <profile platform="ps3" sv="[VERSION]">
<profile platform="ps3" sv="[VERSION">
  <ticket>[encrypted with base64 auth handshake]</ticket>
  <ticket>[encrypted with base64 auth handshake]</ticket>
  <env>[enviroment]</env>
  <env>[enviroment]</env>
  <avatar size="l" />
  <avatar size="l" />
  </profile>
  </profile>
</pre>
nb: ''[environment] is one of the [[Environments]] lowercased''


===Response===
and get profile responses here :
and get profile responses here :


Headers:
Headers:
<pre> HTTP/1.1 200 OK
HTTP/1.1 200 OK
  Date Wed, 18 May 2011 08:12:42 GMT
  Date Wed, 18 May 2011 08:12:42 GMT
  Server Apache-Coyote/1.1
  Server Apache-Coyote/1.1
  Content-Type text/xml;charset=UTF-8
  Content-Type text/xml;charset=UTF-8
  Content-Length 364
  Content-Length 364
</pre>


Content:
Content:
<pre>
  <profile result="00">
  <profile result="00">
  <jid>[USERNAME]@[SERVER].[COUNTRY].[ENVIROMENT].URL</jid>
  <jid>[USERNAME]@[SERVER].[COUNTRY].[ENVIROMENT].URL</jid>
Line 136: Line 128:
  <ptlp>0</ptlp>
  <ptlp>0</ptlp>
  </profile>
  </profile>
</pre>
 
*Get profile need's other certicate to auth ssl connection in this case Dnas root 05
*Get profile need's other certicate to auth ssl connection in this case Dnas root 05
{{Reverse engineering}}<noinclude>[[Category:Main]]</noinclude>
Please note that all contributions to PS3 Developer wiki are considered to be released under the GNU Free Documentation License 1.2 (see PS3 Developer wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:

Cancel Editing help (opens in new window)