still failing but i seem to be a step closer:
> CatKey: Qc5x+B7oWoK2yCTNoPBNtA==258EAFA5-E914-47DA-95CA-C5AB0DC85B11
> ShaKey: �~/䁪c�S2��Q̡wg
> key: 1AHCh23u4IGpY44TMpt2Ucxg 1c=
so I just took some tools and manually did this whole deal
var s = new WebSocket("ws://localhost:31337");
lugnut@LugBook:~$ nc -l 31337
GET / HTTP/1.1
Upgrade: websocket
Connection: Upgrade
Host: localhost:31337
Origin: chrome://newtab
Sec-WebSocket-Key: 2MEWh3ksQkyFYjbeqeyfxw==
Sec-WebSocket-Version: 13
Sec-WebSocket-Extensions: x-webkit-deflate-frame
lugnut@LugBook:~$ echo "2MEWh3ksQkyFYjbeqeyfxw==258EAFA5-E914-47DA-95CA-C5AB0DC85B11" > tmp; sha1sum tmp | base64
YWEzMTJjMzk3YTZkYzQ5YTY2NDhlMzYwMDdmMWZiOWI3NmUwYzg0OCAgdG1wCg==
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: YWEzMTJjMzk3YTZkYzQ5YTY2NDhlMzYwMDdmMWZiOWI3NmUwYzg0OCAgdG1wCg==
lugnut@LugBook:~$
ERROR: Status line does not end with CRLF
in other words, it worked...
until i killed it on accident
this basically confirms that torque is the issue somehow. i'll try running my test again, except i'll use torque for the sha1sum and then use my tool for the base64 calculation, then do the inverse (tool - sha1sum, torque - base64) and see what fails to help track down the problem
results:
var s = new WebSocket("ws://localhost:31337");
GET / HTTP/1.1
Upgrade: websocket
Connection: Upgrade
Host: localhost:31337
Origin: http://forum.blockland.us
Sec-WebSocket-Key: ST4DekmHesR7EVfCU6K5Hw==
Sec-WebSocket-Version: 13
Sec-WebSocket-Extensions: x-webkit-deflate-frame
==> echo(realsha1("ST4DekmHesR7EVfCU6K5Hw==258EAFA5-E914-47DA-95CA-C5AB0DC85B11"));
�nM�N�>⏑�O����G //951a6e4de44e7fbc3ee28f91d04fcccfcaea4711
lugnut@LugBook:~$ base64
�nM�N�>⏑�O����G
77+9bk3vv71O77+9PuKPke+/vU/vv73vv73vv73vv71HCg==
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: 77+9bk3vv71O77+9PuKPke+/vU/vv73vv73vv73vv71HCg==
ERROR: Status line does not end with CRLF
working on opposite
E: ... same thing. I think i'm messing up the sending part.