/pidgin/main: 5e65b489a31d: oscar: Add a comment explaining the ...
Youness Alaoui
kakaroto at kakaroto.homelinux.net
Fri Jun 17 19:11:41 EDT 2016
Changeset: 5e65b489a31d63b5117f727985e4b5f904ea84ed
Author: Youness Alaoui <kakaroto at kakaroto.homelinux.net>
Date: 2016-06-13 13:22 -0400
Branch: oscar_auth
URL: https://hg.pidgin.im/pidgin/main/rev/5e65b489a31d
Description:
oscar: Add a comment explaining the data and meaning of the KDC binary blob
diffstat:
libpurple/protocols/oscar/kerberos.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diffs (24 lines):
diff --git a/libpurple/protocols/oscar/kerberos.c b/libpurple/protocols/oscar/kerberos.c
--- a/libpurple/protocols/oscar/kerberos.c
+++ b/libpurple/protocols/oscar/kerberos.c
@@ -328,6 +328,20 @@ kerberos_login_cb(PurpleHttpConnection *
* https://kdc.uas.aol.com with the user's username and password and
* receives the IM cookie, which is used to request a connection to the
* BOSS server.
+ * The binary data below is what AIM 8.0.8.1 sends in order to authenticate
+ * to the KDC server. It is an 'X-SNAC' packet, which is relatively similar
+ * to SNAC packets but somehow different.
+ * The header starts with the 0x50C family follow by 0x0002 subtype, then
+ * some fixed length data and TLVs. The string "COOL" appears in there for
+ * some reason followed by the 'US' and 'en' strings.
+ * Then the 'imApp key=<client key>' comes after that, and then the username
+ * and the string "im/boss" which seems to represent the service we are
+ * requesting the authentication for. Changing that will lead to a
+ * 'unknown service' error. The client key is then added again (without the
+ * 'imApp key' string prepended to it) then a XOR-ed version of the password.
+ * The meaning of the header/footer/in-between bytes is not known but never
+ * seems to change so there is no need to reverse engineer their meaning at
+ * this point.
*/
void send_kerberos_login(OscarData *od, const char *username)
{
More information about the Commits
mailing list