- Miscellany
- 2007 year 2 month 4 day Sunday 19:21:57 MDT
- --- oSpy/Parser/MSN.cs
- +++ oSpy/Parser/MSN.cs
- @@ -285,6 +285,68 @@
- }
- }
- + public class MSNSBVisualizer : SessionVisualizer
- + {
- + public override string Name
- + {
- + get { return "MSNSwitchboard"; }
- + }
- +
- + public override VisualTransaction[] GetTransactions(IPSession session)
- + {
- +
- + foreach (TransactionNode node in session.Nodes)
- + {
- + if (node.Name == "MSNSBCommand")
- + {
- + IPPacket pkt = node.Slices[0].Packet;
- +
- +
- + string headline = (string) node["Command"];
- +
- + if (node.Fields.ContainsKey("Arguments"))
- + headline += " " + (string) node["Arguments"];
- +
- + vt.HeadlineText = headline;
- +
- + TransactionNode payloadNode = node.FindChild("Payload", false);
- + if (payloadNode != null)
- + {
- + string body = "";
- +
- + if (payloadNode.Fields.ContainsKey("XML"))
- + {
- + XMLHighlighter highlighter;
- +
- + XML.PrettyPrint((string)payloadNode["XML"], out body, out highlighter);
- + }
- + else if (payloadNode.Fields.ContainsKey("Text"))
- + {
- + body = (string)payloadNode["Text"];
- + }
- + else if (payloadNode.Fields.ContainsKey("MSNSLP"))
- + {
- + body = (string)payloadNode["MSNSLP"];
- + }
- + else
- + {
- + body = String.Format("Unhandled payload format: {0}",
- + (payloadNode.FieldNames.Count > 0) ? payloadNode.FieldNames[0] : payloadNode.Children[0].Name);
- + }
- +
- + vt.BodyText = body;
- + }
- +
- + transactions.Add(vt);
- + }
- + }
- +
- + return transactions.ToArray();
- + }
- + }
- +
- [Serializable()]
- public class MSNSLPCall
- {
- --- oSpy/VisualSession.cs
- +++ oSpy/VisualSession.cs
- @@ -229,6 +229,7 @@
- }
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.