wiki:KrakenMsnDecoder

Kraken MSN Decoder

Kraken MSN Decoder decodes MSN protocol. It supports old MSNP9 protocol, but cannot supports recent MSNP21 protocol.

Author

Tutorial

public class MsnDecoderTest {
	public static void main(String[] args) throws IOException {
		PcapFileRunner runner = new PcapFileRunner(new File("msn.pcap"));
		MsnDecoder msn = new MsnDecoder();
		msn.register(new MsnProcessor() {
			@Override
			public void onChat(String account, String chat) {
				System.out.println(account + ": " + chat);
			}
		});

		System.out.println("dumping...");
		runner.setTcpProcessor(Protocol.MSN, msn);
		runner.run();
	}
}