Protocols/OSCAR/SNAC/BUCP CHALLENGE RESPONSE: Difference between revisions
From Toxi's Wiki
Jump to navigationJump to search
No edit summary |
|||
Line 1: | Line 1: | ||
{{Template:Protocols/OSCAR}} | {{Template:Protocols/OSCAR}} | ||
This is the SNAC sent by the server in | This is the first SNAC sent by the server in response to [[Protocols/OSCAR/SNAC/BUCP__CHALLENGE_REQUEST|BUCP__CHALLENGE_REQUEST]]. After this is sent, the client should store the challenge given here, and use it for hashing the password in [[Protocols/OSCAR/SNAC/BUCP__LOGIN_REQUEST|BUCP__LOGIN_REQUEST]]. | ||
=== | <table width="640" bgcolor="darkblue" cellspacing="0" cellpadding="0" border="0"> | ||
<tr><td> | |||
<table width="100%" cellspacing="2" cellpadding="0" border="0"> | |||
<tr><td bgcolor="#E9E9E9"> | |||
<table width="640" cellspacing="0" cellpadding="0" align="center" border="0"> | |||
<tr> | |||
<td width="23%"> 00 17</td> | |||
<td width="5"> </td> | |||
<td>word</td> | |||
<td width="5"> </td> | |||
<td width="58%">SNAC foodgroup</td> | |||
</tr> | |||
<tr> | |||
<td> 00 04</td> | |||
<td> </td> | |||
<td>word</td> | |||
<td> </td> | |||
<td>SNAC subgroup</td> | |||
</tr> | |||
<tr> | |||
<td> 00 00</td> | |||
<td> </td> | |||
<td>word</td> | |||
<td> </td> | |||
<td>SNAC flags</td> | |||
</tr> | |||
<tr> | |||
<td> xx xx xx xx</td> | |||
<td> </td> | |||
<td>dword</td> | |||
<td> </td> | |||
<td>SNAC request ID</td> | |||
</tr> | |||
</table> | |||
</td></tr> | |||
<tr><td bgcolor="#E9E9E9"> | |||
<table width="640" cellspacing="0" cellpadding="0" align="center" border="0"> | |||
<tr> | |||
<td height="8" colspan="3"></td> | |||
</tr> | |||
<tr> | |||
<td width="20"></td> | |||
<td> | |||
<table width="610" bgcolor="darkgreen" cellspacing="0" cellpadding="0" border="0"> | |||
<tr><td> | |||
<table width="100%" cellspacing="2" cellpadding="0" align="center" border="0"> | |||
<tr><td bgcolor="#f9f9f9"> | |||
<table width="610" cellspacing="0" cellpadding="0" align="center" border="0"> | |||
<tr> | |||
<td width="20%"> xx xx</td> | |||
<td width="5"> </td> | |||
<td>word</td> | |||
<td width="5"> </td> | |||
<td width="60%">Challenge length</td> | |||
</tr> | |||
<tr> | |||
<td> xx ..</td> | |||
<td width="5"> </td> | |||
<td>string</td> | |||
<td width="5"> </td> | |||
<td width="60%">Challenge</td> | |||
</tr> | |||
</table> | |||
</td></tr> | |||
</table> | |||
</td></tr> | |||
</table> | |||
</td> | |||
<td width="5"></td> | |||
</tr> | |||
== | <tr> | ||
<td height="5" colspan="3"></td> | |||
</tr> | |||
</table> | |||
</td></tr> | |||
</table> | |||
</td></tr> | |||
</table> | |||
Example dump (from NINA's servers - dump contains a FLAP header): | Example dump (from NINA's servers - dump contains a FLAP header): | ||
<pre> | <pre> |
Revision as of 18:04, 21 July 2024
OSCAR Protocol |
Introduction • Terms • Clients |
Basic |
TODO |
Tutorials |
Sign On |
Foodgroups |
OSERVICE (0x0001) |
BUCP (0x0017) |
This is the first SNAC sent by the server in response to BUCP__CHALLENGE_REQUEST. After this is sent, the client should store the challenge given here, and use it for hashing the password in BUCP__LOGIN_REQUEST.
|
Example dump (from NINA's servers - dump contains a FLAP header):
0000 2a 02 00 01 00 16 00 17 00 07 00 00 00 00 00 00 *............... 0010 00 0a 36 30 30 35 38 35 35 39 34 36 ..6005855946
Note for server developers: I'm not quite sure if there is anything fancy going on in the challenge generation in NINA, but judging by the packet dumps above, I simply just made a string with 10 random numbers, as seen in my server