[ejabberd] Sniffer for XML-messages/stanzas/whatever on the client

Sylvain Niles sylvain.niles at gmail.com
Thu Jan 17 22:52:29 MSK 2013


tcpdump -s 1524 -A -i (your interface) port (your ejabberd client port)


On Thu, Jan 17, 2013 at 10:49 AM, Ajay Garg <ajaygargnsit at gmail.com> wrote:

> Thanks Peter and Sylvain.
>
> Any sniffer in the true  sense? :P
> I mean, something which is not a full-fledged client, but just kind of
> acts as a "catcher, inspector, and then-let-go-off" kind of a thing.
>
>
> On Fri, Jan 18, 2013 at 12:04 AM, Sylvain Niles <sylvain.niles at gmail.com>wrote:
>
>> Use the psi jabber client, it can inspect stanzas.
>> On Jan 17, 2013 10:32 AM, "Ajay Garg" <ajaygargnsit at gmail.com> wrote:
>>
>>> Hi all.
>>>
>>> I am testing ejabberd on Debian-6, and am engrossed in a very particular
>>> issue.
>>>
>>> As a first step to keep it short, I am believing that a stanza/message
>>> has been sent off from the ejabberd-server-on-Debian, but is not being
>>> received on the client (the client has been - of course - successfully
>>> registered on the server).
>>>
>>> Is it possible to confirm/reject my theory (through some kind of
>>> message-sniffer at the client side, which performs the same function of
>>> what "/var/log/ejabbed/ejabberd.log" does on the server-side) ?
>>>
>>> If not, I will detail the issue, which I am afraid would be a very long
>>> one :P
>>>
>>>
>>>
>>>
>>>
>>>
>>> For brevity, here is the message sent off from the server, picked
>>> directly from "/var/log/ejabberd/ejabberd.log" ::
>>>
>>> ================================================================================
>>>
>>> =INFO REPORT==== 2013-01-17 23:46:45 ===
>>> D(<0.360.0>:ejabberd_c2s:1561) : Send XML on stream = <<"<message from='
>>> 5ccefd7c37c12600296e0505ad3be79c0476e06e at schoolserver.mazaq.org' to='
>>> 5ccefd7c37c12600296e0505ad3be79c0476e06e at schoolserver.mazaq.org/sugar'
>>> type='headline'><event xmlns='http://jabber.org/protocol/pubsub#event'><items
>>> node='http://laptop.org/xmpp/buddy-properties'><item
>>> id='54E6D08D69C42'><properties xmlns='
>>> http://laptop.org/xmpp/buddy-properties'><property name='color'
>>> type='str'>#00A0FF,#9A5200</property><property name='key'
>>> type='bytes'>QUFBQUIzTnphQzFrYzNNQUFBQ0JBTHl2Ly9HUGJ2V3QwaXNQeUJWWmU4aUZ1aDlRUHFaVDQrd0tzOUMwek9kc0g5QlpqVVV4QVNMeEVuUE9lMnJNSjlZL2EvTTBEZmw2SnhKdDEyWTZMdm5JQlV6Rkd1YjBuS1pEQTlpT1BkK1JVMGZEUUxLd1czV3RiNGE5S0s4ZkZsYWtNT092QW5ZTG9VZExjN0ZQZmxjMUFnVDlLU0wwdEptZ1lEekVKTi9UQUFBQUZRQ0hzU093TThtcEFtS0k5U1Y3azNhMzVVR2xMUUFBQUlCWTFQU0ExZUhWN2pFYUZERFZSVHBiQVdhYWVmQ3JCVVJLUFVxam56bDIxR09PQ0xRWWVRR0lYNnpOYlArSUlFaW1QN0E0b3o4cmFyblNIYnNiQjdtNGE3amtWbUpTdTBVYW53TUVWS3VBQnk2bE5oVXVremM2THRiMnJhaXJFcmNQNENzcGNoRk1KOTByWTFXLzVjNWlabXR2NUpFbjBnRmVLWnlibjhIVGJ3QUFBSUVBcXlWdzMzM09GSU83TmRsY1lIVzZoZzVHY0hTUXJBblZmdWY3QWx0L1Z6bHp5cHRQTnN3NlRxN1RIWVcwOEEvVEUzUzd2dlU5WFNHVkhkY3R3Wm9yNmt3elRDYk83WSttUU1pdzViRmc4ZUNYeTcvZENPbHMzUmVhRmc3QVlobDlRR3hjS1ppUmNGRnJwOHVKVlIyQTl5YzZPSEt4Mjh4UmtBRjlkOUN5TDljPQ==</property></properties></item></items></event><addresses
>>> xmlns='http://jabber.org/protocol/address'><address type='replyto' jid='
>>> 5ccefd7c37c12600296e0505ad3be79c0476e06e at schoolserver.mazaq.org/sugar'/<http://5ccefd7c37c12600296e0505ad3be79c0476e06e@schoolserver.mazaq.org/sugar%27/>
>>> ></addresses></message>">>
>>>
>>>
>>>
>>> Looking forward to an answer, so that my head gets some relief (it's
>>> been  burning since morning on this issue).
>>>
>>>
>>>
>>> Thanks and Regards,
>>> Ajay
>>>
>>> _______________________________________________
>>> ejabberd mailing list
>>> ejabberd at jabber.ru
>>> http://lists.jabber.ru/mailman/listinfo/ejabberd
>>>
>>>
>> _______________________________________________
>> ejabberd mailing list
>> ejabberd at jabber.ru
>> http://lists.jabber.ru/mailman/listinfo/ejabberd
>>
>>
>
>
> --
> Regards,
> Ajay
>
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.jabber.ru/pipermail/ejabberd/attachments/20130117/0cfa856c/attachment.html>


More information about the ejabberd mailing list