<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:10pt">Thanks Dave, I overlooked for the value of Target JID :(<br><br>Further I tried to establish S5B connection between the target and streamhost:<br>1) Target sends initial version selection message $pkt = pack("C3", 0x05, 0x01, 0x00); <br>2) Upon success, Target tries to send request details $pkt = pack("C4H*n", 0x05, 0x01, 0x00, 0x03, $dstAddr, 0);<br>3) Upon success, Target should notify requester about established S5B stream<br><br>However, my client don't get a success response from the proxy server after the 2nd step.<br>I am using ejabberd mod_proxy65 module to test this out.<br><br>Any pointer/help is greatly appreciated.<br><br>--<br>Abhinav Singh,<br>Founder, Jaxl Inc.<br>Bangalore, India<br><span><a target="_blank"
href="http://abhinavsingh.com/blog">http://abhinavsingh.com/blog</a></span><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 10pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Dave Cridland <dave@cridland.net><br><b><span style="font-weight: bold;">To:</span></b> Jabber/XMPP software development list <jdev@jabber.org><br><b><span style="font-weight: bold;">Sent:</span></b> Wed, November 10, 2010 3:01:31 AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [jdev] Understanding target SOCKS5 connection flow with streamhost/requester<br></font><br>
On Tue Nov 9 21:22:59 2010, Abhinav Singh wrote:<br>> (01:56:47) jabber:Sending (<a ymailto="mailto:1@dev.jaxl.im" href="mailto:1@dev.jaxl.im">1@dev.jaxl.im</a>/2557233831289334472350031):<br><span>> <a target="_blank" href="http://jabber.org/protocol/bytestreams">http://jabber.org/protocol/bytestreams</a>'></span><br><br>Note the target jid above.<br><br><br>sha1("<a ymailto="mailto:purplee6c1c0cbjaxl@dev.jaxl.im" href="mailto:purplee6c1c0cbjaxl@dev.jaxl.im">purplee6c1c0cbjaxl@dev.jaxl.im</a>/<a ymailto="mailto:5859500411289328645518583jaxl@dev.jaxl.im" href="mailto:5859500411289328645518583jaxl@dev.jaxl.im">5859500411289328645518583jaxl@dev.jaxl.im</a>/5859500411289328645518583")<br>> which equates to 59aadec011bdb96cb0f2fea5e6f6596e5a0d6f93 and not<br>> 50c0abe90692f69b56e49a53334daf8c6ad26f9e as shown in the logs.<br><br>It's SHA1(SID + Requester JID + Target JID):<br><br>>>> import hashlib<br>>>> hash =
hahslib.sha1()<br>>>> hash.update('purplee6c1c0cb')<br>>>> hash.update('<a ymailto="mailto:jaxl@dev.jaxl.im" href="mailto:jaxl@dev.jaxl.im">jaxl@dev.jaxl.im</a>/5859500411289328645518583')<br>>>> hash.update('<a ymailto="mailto:1@dev.jaxl.im" href="mailto:1@dev.jaxl.im">1@dev.jaxl.im</a>/2557233831289334472350031')<br>>>> hash.hexdigest()<br>'50c0abe90692f69b56e49a53334daf8c6ad26f9e'<br><br>Dave.<br>--Dave Cridland - mailto:<a ymailto="mailto:dave@cridland.net" href="mailto:dave@cridland.net">dave@cridland.net</a> - xmpp:<a ymailto="mailto:dwd@dave.cridland.net" href="mailto:dwd@dave.cridland.net">dwd@dave.cridland.net</a><br> - acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/<br><span> - <a target="_blank" href="http://dave.cridland.net/">http://dave.cridland.net/</a></span><br>Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade<br>_______________________________________________<br>JDev mailing
list<br><span>Forum: <a target="_blank" href="http://www.jabberforum.org/forumdisplay.php?f=20">http://www.jabberforum.org/forumdisplay.php?f=20</a></span><br><span>Info: <a target="_blank" href="http://mail.jabber.org/mailman/listinfo/jdev">http://mail.jabber.org/mailman/listinfo/jdev</a></span><br>Unsubscribe: <a ymailto="mailto:JDev-unsubscribe@jabber.org" href="mailto:JDev-unsubscribe@jabber.org">JDev-unsubscribe@jabber.org</a><br>_______________________________________________<br></div></div>
</div><br>
</body></html>