[jdev] Understanding target SOCKS5 connection flow with streamhost/requester

Abhinav Singh abhinavsingh at ymail.com
Tue Nov 9 15:57:57 CST 2010


Thanks Dave, I overlooked for the value of Target JID :(

Further I tried to establish S5B connection between the target and streamhost:
1) Target sends initial version selection message $pkt = pack("C3", 0x05, 0x01, 
0x00); 

2) Upon success, Target tries to send request details $pkt = pack("C4H*n", 0x05, 
0x01, 0x00, 0x03, $dstAddr, 0);
3) Upon success, Target should notify requester about established S5B stream

However, my client don't get a success response from the proxy server after the 
2nd step.
I am using ejabberd mod_proxy65 module to test this out.

Any pointer/help is greatly appreciated.

--
Abhinav Singh,
Founder, Jaxl Inc.
Bangalore, India
http://abhinavsingh.com/blog




________________________________
From: Dave Cridland <dave at cridland.net>
To: Jabber/XMPP software development list <jdev at jabber.org>
Sent: Wed, November 10, 2010 3:01:31 AM
Subject: Re: [jdev] Understanding target SOCKS5 connection flow with 
streamhost/requester

On Tue Nov  9 21:22:59 2010, Abhinav Singh wrote:
> (01:56:47) jabber:Sending (1 at dev.jaxl.im/2557233831289334472350031):
> http://jabber.org/protocol/bytestreams'>

Note the target jid above.


sha1("purplee6c1c0cbjaxl at dev.jaxl.im/5859500411289328645518583jaxl at dev.jaxl.im/5859500411289328645518583")

>  which equates to 59aadec011bdb96cb0f2fea5e6f6596e5a0d6f93 and not
> 50c0abe90692f69b56e49a53334daf8c6ad26f9e as shown in the logs.

It's SHA1(SID + Requester JID + Target JID):

>>> import hashlib
>>> hash = hahslib.sha1()
>>> hash.update('purplee6c1c0cb')
>>> hash.update('jaxl at dev.jaxl.im/5859500411289328645518583')
>>> hash.update('1 at dev.jaxl.im/2557233831289334472350031')
>>> hash.hexdigest()
'50c0abe90692f69b56e49a53334daf8c6ad26f9e'

Dave.
--Dave Cridland - mailto:dave at cridland.net - xmpp:dwd at dave.cridland.net
- acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
- http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade
_______________________________________________
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: JDev-unsubscribe at jabber.org
_______________________________________________



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20101109/a02cca89/attachment.htm>


More information about the JDev mailing list