Protocols/MSNP/Development

From NINA Wiki
Revision as of 05:48, 13 March 2021 by AD (talk | contribs)
Jump to navigation Jump to search

Debug Logging

**Messenger**

Messenger for Windows has the ability to create a log file.

Here is a reg file [Debug.reg](https://storage.levelleap.com/nina/protocols/msnp/development/Debug.reg) to enable the logging on (at least) versions < 9.

The log file will be in the `Documents > My Received Files` (the folder name depends on Messenger language).

In Windows Live Messenger, you will find some logs there: `C:\Users\{user}\AppData\Local\Microsoft\Messenger\`

**Microsoft Identity Control**

You can use these 2 reg files to turn on/off logging for microsoft identity control components (msidcrl, ...):

[Enable_Logging.reg](https://storage.levelleap.com/nina/protocols/msnp/development/Enable_Logging.reg)

[Disable_Logging.reg](https://storage.levelleap.com/nina/protocols/msnp/development/Disable_Logging.reg)

The path were the log will be is in the reg file.
If you don't change the path in the reg files, you need to create 2 folders: `C:\MSOTrace` and `C:\MSOTraceLite`

**Sources**

NOTE: Please replace `MSOIdentityCRL` by `IdentityCRL` in registry keys name when needed.

https://messengersupportspace.wordpress.com/2007/08/03/how-to-create-a-messenger-idcrl-log/

https://social.technet.microsoft.com/wiki/contents/articles/18103.microsoft-online-services-sign-in-assistant-how-to-enable-debug-tracing.aspx

https://support.microsoft.com/de-de/help/2433327/how-to-enable-and-disable-a-trace-for-the-microsoft-online-services-sign-in-assistant

Tools

Here is some tools that may be useful:

API monitor:

Network monitor:

Disassembly:

Strings extraction:

API hooking:

Various: