[jadmin] set presence of another user

kakomon at gmail.com kakomon at gmail.com
Sun Dec 3 16:48:19 CST 2006


Great idea Tomasz! Thank you very much!
i'm trying to do it and there is something i don't get, can i abuse your time a little more ?

i'm trying to inject packets like that:

<route xmlns='http://jabberd.jabberstudio.org/ns/component/1.0' from='c2s' to='uplink'><presence xmlns:sc='http://jabberd.jabberstudio.org/ns/session/1.0' xmlns='jabber:client' sc:sm='cef9a31164d7b792b53aef71270ac764a8bd52f0' sc:c2s='6'><show>dnd</show><status>Sorry I'm at phone!</status><c xmlns='http://jabber.org/protocol/caps' ver='2.0.0beta5' node='http://gaim.sf.net/caps'/><x xmlns='vcard-temp:x:update'><photo>0c31af4942ba86b713caf8189023d220da197ad2</photo></x></presence></route>

or that one:

<route xmlns='http://jabberd.jabberstudio.org/ns/component/1.0' to='c2s' from='uplink'><presence xmlns='jabber:client' xmlns:sm='http://jabberd.jabberstudio.org/ns/session/1.0' from='mike at uplink/uplink' to='admin at uplink/uplink' sm:c2s='8' sm:sm='41e8c2b22c435aef152390106bdaba147fc7e5a3'><show>away</show><c xmlns='http://jabber.org/protocol/caps' node='http://gaim.sf.net/caps' ver='2.0.0beta5'/><x xmlns='vcard-temp:x:update'><photo>0c31af4942ba86b713caf8189023d220da197ad2</photo></x></presence></route>


with netcat ("nc 0 5347" and then i paste the data in the console) and telnet (echo -n "sniffed data" | telnet 0 5347)

but i always get an:

<stream:stream xmlns:stream='http://etherx.jabber.org/streams' version='1.0'><stream:error xmlns:stream='http://etherx.jabber.org/streams'><bad-format xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error></stream:stream>

i tried to shrink / indent / modify those packets, getting always the same result.

could you point me in the right direction ?


thank you very much!
.mike


On Sat, 02 Dec 2006 18:30:34 +0100
Tomasz Sterna <tomek at xiaoka.com> wrote:

> Dnia 26-11-2006, nie o godzinie 18:23 +0100, kakomon at gmail.com
> napisał(a):
> 
> > it is possible to set the presence (show and status) of another user ?
> 
> It's actually pretty easy.
> You just need to connect to router using a component protocol and inject
> fake <presence/> packet to network, simulating user changing presence.
> 
> 
> -- 
> Tomasz Sterna
> Xiaoka Grp.    http://www.xiaoka.com/



More information about the JAdmin mailing list