RFC forståelse/MD5 Encr./MSN msg.
Jeg sidder og leger lidt med protokollen til MSN Messenger, men har lidt problemer med authentication, nærmere bestemt den måde de benytter MD5 Encryption.Prøv at kigge lidt på følgende:
7.3 Authentication
The client needs to authenticate itself after protocol version
handshake and identifying the security packages supported on the
server. The following are the client server interactions involved.
C: USR TrID SP I{ AuthInitiateInfo}
S: USR TrID SP S{ AuthChallengeInfo}
C: USR TrID SP S{ AuthResponseInfo }
S: USR TrID OK UserHandle FriendlyName
The SP parameter is the name of the security package(\"MD5\"). The
next parameter is a sequence value, which must be I to (I)nitiate
the authentication process and S for all (S)ubsequent messages. If
authentication fails on the server, the client can start the
authentication process again.
For the MD5 security package:
- The AuthInitiateInfo parameter provided by the client must be the
User handle.
- The AuthChallengeInfo parameter returned by the server contains a
challenge string.
- The AuthResponseInfo contains the binary response as a hexadecimal
string, which the MD5 hash of the challenge and the User password
strings concatenated together.
(kan læses i sin fulde længde på http://www.cs.berkeley.edu/~mikechen/im/protocols/msn/draft-movva-msn-messenger-protocol-00.txt)
Det jeg har lidt problemer med er den sidste del: \"...which the MD5 hash of the challenge and the User password strings concatenated together...\"
\"concatenate\" betyder vistnok sammenlagt eller sammenkædet.
Jeg har forsøgt alle, mulige kombinationer af challenge strengen og user passwordet uden held.
Et eksempel på challenge strengen er: 984065749.58305985
Der er point til den der kan skubbe mig i den rette retning så jeg ka\' få løst problemet ;-)
/SørenS.
