What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Tool to encrypt or decrypt log files

Tool to encrypt or decrypt log files
Author: Message:
solus
Junior Member
**


Posts: 16
– / Male / –
Joined: Dec 2005
O.P. Tool to encrypt or decrypt log files
Hello.

I just thought I'd post this up here incase it helps anyone. Attached is a tool to encrypt or decrypt log files, I'll bring out a tool which will encrypt/decrypt a whole directory when I have more time.

To decrypt Messenger Plus! log files (C++):


Fileformat of .ple files

First 10 bytes are the same for all log files.
const char standardHeader[] = {0x10,0x01,'M','P','L','E','1','<','<',0};

The next 4 bytes, I'm not sure what they are for, but in all log files I've seen they are
const char unknownbytes[] = {1,0,0,0};

After this is the length of the password check string (4 bytes). This is usually 13
Then comes the encrypted password check string. Ill talk about how to decrypt it later.


All that was the header. For the rest of the file, it is in multiple chunks of data.
Each of these chunks start with the 'signature' :
const char sig[] = {0xE9,0xFF,0xA3,0x00};
After this, there is the length of the following data (4 bytes).
Then there is the encrypted text.



To decrypt text :

Messenger Plus! uses the CryptoAPI to encrypt and decrypt text.
This is set up with the following call
CryptAcquireContextW(&hProv,L"MessengerPlusEncryptProvider",L"Microsoft Enhanced Cryptographic Provider v1.0",1,0);

I discovered that for some reason, the password is scrambled, and that the password is unicode (2 bytes).^o)
The algorithm for this in pseudo code is:

for i = 0 to length of password - 1
        newpassword [i] = password[i] + password [i + 1]
next i
newpassword[last letter] = password[last letter] + password[0]


The calls to continue setting up so that you can decrypt text are:

CryptCreateHash(hProv,0x8003,0,0,&hHash);
CryptHashData(hHash,newpassword,len,0);
CryptDeriveKey(hProv,0x6801,hHash,0x800000,&hKey);

This final call gives you a HCRYPTKEY which you can use in the CryptEncrypt and CryptDecrypt functions on the text :D

Sorry if this is all a bit confusing, I dont think i formatted it, or explained it very well :$

Solus


Edit - I replaced the file with one which has the VC runtime library statically linked, so it *should* work now

Edit 2 - Ok, so I converted it all to unicode, and made a few changes so it'll run on computers which haven't got Messenger Plus on.

.exe File Attachment: mpLogs.exe (56 KB)
This file has been downloaded 13519 time(s).

This post was edited on 01-18-2006 at 09:01 PM by solus.
01-09-2006 07:25 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Tool to encrypt or decrypt log files - by solus on 01-09-2006 at 07:25 PM
RE: Tool to encrypt or decrypt log files - by WDZ on 01-13-2006 at 09:44 PM
RE: Tool to encrypt or decrypt log files - by Dane on 01-16-2006 at 08:03 AM
RE: Tool to encrypt or decrypt log files - by ipab on 01-16-2006 at 08:57 AM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 01-16-2006 at 09:11 AM
RE: Tool to encrypt or decrypt log files - by solus on 01-16-2006 at 07:19 PM
RE: Tool to encrypt or decrypt log files - by dotNorma on 01-16-2006 at 07:26 PM
RE: Tool to encrypt or decrypt log files - by solus on 01-16-2006 at 07:31 PM
RE: Tool to encrypt or decrypt log files - by dotNorma on 01-16-2006 at 08:19 PM
RE: RE: Tool to encrypt or decrypt log files - by solus on 01-16-2006 at 08:32 PM
RE: Tool to encrypt or decrypt log files - by dotNorma on 01-16-2006 at 08:40 PM
RE: RE: Tool to encrypt or decrypt log files - by solus on 01-16-2006 at 10:03 PM
RE: Tool to encrypt or decrypt log files - by dotNorma on 01-18-2006 at 01:18 AM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 01-18-2006 at 06:53 AM
RE: RE: Tool to encrypt or decrypt log files - by solus on 01-18-2006 at 08:26 AM
RE: RE: RE: Tool to encrypt or decrypt log files - by CookieRevised on 01-18-2006 at 06:18 PM
RE: RE: RE: RE: Tool to encrypt or decrypt log files - by solus on 01-18-2006 at 06:22 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 01-18-2006 at 06:55 PM
RE: Tool to encrypt or decrypt log files - by solus on 01-18-2006 at 09:04 PM
RE: Tool to encrypt or decrypt log files - by ostehaps on 01-18-2006 at 09:05 PM
RE: RE: Tool to encrypt or decrypt log files - by solus on 01-18-2006 at 09:21 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 01-18-2006 at 09:33 PM
RE: RE: Tool to encrypt or decrypt log files - by ostehaps on 01-18-2006 at 09:36 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 01-18-2006 at 09:42 PM
RE: Tool to encrypt or decrypt log files - by Patchou on 01-19-2006 at 03:59 AM
RE: Tool to encrypt or decrypt log files - by ipab on 01-19-2006 at 04:16 AM
RE: Tool to encrypt or decrypt log files - by qgroessl on 01-19-2006 at 04:32 AM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 01-19-2006 at 11:06 AM
RE: RE: Tool to encrypt or decrypt log files - by brian on 01-19-2006 at 11:57 AM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 01-20-2006 at 03:03 AM
RE: Tool to encrypt or decrypt log files - by Patchou on 01-20-2006 at 09:52 AM
RE: Tool to encrypt or decrypt log files - by riahc4 on 01-21-2006 at 08:03 PM
RE: Tool to encrypt or decrypt log files - by Millenium_edition on 01-21-2006 at 08:14 PM
RE: Tool to encrypt or decrypt log files - by brainy on 02-16-2006 at 02:55 AM
RE: Tool to encrypt or decrypt log files - by Plik on 02-16-2006 at 08:39 AM
RE: Tool to encrypt or decrypt log files - by brainy on 02-16-2006 at 11:51 AM
RE: Tool to encrypt or decrypt log files - by Iv4n on 06-23-2006 at 01:57 PM
RE: Tool to encrypt or decrypt log files - by Patchou on 06-23-2006 at 04:21 PM
RE: Tool to encrypt or decrypt log files - by marie-canard on 09-19-2006 at 09:18 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 09-19-2006 at 11:33 PM
RE: Tool to encrypt or decrypt log files - by marie-canard on 09-20-2006 at 06:07 AM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 09-20-2006 at 06:30 AM
RE: Tool to encrypt or decrypt log files - by marie-canard on 09-20-2006 at 07:21 AM
RE: Tool to encrypt or decrypt log files - by cloudhunter on 09-20-2006 at 08:53 AM
RE: Tool to encrypt or decrypt log files - by tomi206 on 02-08-2007 at 03:43 PM
RE: RE: Tool to encrypt or decrypt log files - by CookieRevised on 02-09-2007 at 10:17 AM
RE: RE: RE: Tool to encrypt or decrypt log files - by tomi206 on 02-09-2007 at 03:13 PM
RE: RE: RE: RE: Tool to encrypt or decrypt log files - by CookieRevised on 02-09-2007 at 11:04 PM
RE: Tool to encrypt or decrypt log files - by Vilkku on 02-08-2007 at 04:27 PM
RE: Tool to encrypt or decrypt log files - by tomi206 on 02-08-2007 at 05:32 PM
RE: Tool to encrypt or decrypt log files - by solus on 02-09-2007 at 11:30 PM
RE: Tool to encrypt or decrypt log files - by Baggins on 02-09-2007 at 11:47 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 02-19-2007 at 08:41 PM
RE: Tool to encrypt or decrypt log files - by Juen on 02-27-2007 at 05:45 AM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 02-27-2007 at 11:22 PM
RE: Tool to encrypt or decrypt log files - by Patchou on 02-27-2007 at 11:53 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 02-28-2007 at 03:03 AM
RE: Tool to encrypt or decrypt log files - by bigproblem on 06-06-2007 at 04:38 AM
RE: RE: Tool to encrypt or decrypt log files - by Noproblemo on 06-27-2007 at 05:00 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 06-28-2007 at 01:14 AM
RE: Tool to encrypt or decrypt log files - by Taborda on 07-07-2007 at 10:20 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 07-07-2007 at 11:26 PM
RE: RE: Tool to encrypt or decrypt log files - by Noproblemo on 07-15-2007 at 08:20 PM
RE: RE: RE: Tool to encrypt or decrypt log files - by CookieRevised on 07-16-2007 at 02:52 AM
RE: Tool to encrypt or decrypt log files - by BloodBlader on 11-19-2007 at 03:04 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 11-19-2007 at 07:02 PM
RE: Tool to encrypt or decrypt log files - by alextrevelian on 02-10-2008 at 01:09 AM
RE: Tool to encrypt or decrypt log files - by thegpfury on 06-25-2008 at 05:44 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 06-25-2008 at 09:21 PM
RE: Tool to encrypt or decrypt log files - by thegpfury on 06-25-2008 at 10:37 PM
RE: Tool to encrypt or decrypt log files - by Flamer46 on 09-07-2008 at 04:03 PM
RE: Tool to encrypt or decrypt log files - by rullen on 09-24-2009 at 03:06 PM
RE: Tool to encrypt or decrypt log files - by matty on 09-24-2009 at 03:32 PM
RE: RE: Tool to encrypt or decrypt log files - by rullen on 09-28-2009 at 08:51 AM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 09-25-2009 at 01:43 AM
RE: Tool to encrypt or decrypt log files - by Dythor on 03-22-2010 at 08:24 PM
RE: RE: Tool to encrypt or decrypt log files - by CookieRevised on 03-23-2010 at 12:53 AM
RE: Tool to encrypt or decrypt log files - by Dythor on 03-31-2010 at 08:35 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 04-01-2010 at 02:47 AM
RE: Tool to encrypt or decrypt log files - by willy469 on 03-09-2011 at 06:09 PM
RE: Tool to encrypt or decrypt log files - by matty on 03-09-2011 at 06:11 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 03-09-2011 at 11:58 PM
RE: Tool to encrypt or decrypt log files - by willy469 on 03-10-2011 at 01:38 AM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 03-10-2011 at 08:00 AM
RE: Tool to encrypt or decrypt log files - by willy469 on 03-12-2011 at 01:55 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On