Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Lugnut

Pages: 1 ... 229 230 231 232 233 [234] 235 236 237 238 239 ... 879
3496
Drama / Re: Hosting service - Terminated!
« on: August 28, 2012, 05:17:32 PM »
yeah, taking down an entire dedicated server is minor, i'd love to see you tell your manager that if you ever got a job lol (you won't)
except you didn't, you only took down his webserver

or so i heard

3497
General Discussion / Re: Have more people joined due to shaders update?
« on: August 28, 2012, 04:46:03 PM »
Look at his profile.
Durr
i think his use of "friggen" implies he was joking

not sure though

3498
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
Code: (client) [Select]
var s = new WebSocket("ws://localhost:31337");
Code: (nc -l 31337) [Select]
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
Code: (manually checked) [Select]
lugnut@LugBook:~$ echo "2MEWh3ksQkyFYjbeqeyfxw==258EAFA5-E914-47DA-95CA-C5AB0DC85B11" > tmp; sha1sum tmp | base64
YWEzMTJjMzk3YTZkYzQ5YTY2NDhlMzYwMDdmMWZiOWI3NmUwYzg0OCAgdG1wCg==
Code: (nc -l 31337) [Select]
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: YWEzMTJjMzk3YTZkYzQ5YTY2NDhlMzYwMDdmMWZiOWI3NmUwYzg0OCAgdG1wCg==

lugnut@LugBook:~$
Code: (client) [Select]
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:

Quote from: torque for SHA1, tool for base64
Code: (client) [Select]
var s = new WebSocket("ws://localhost:31337");
Code: (nc -l 31337) [Select]
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

Code: (torque) [Select]
==> echo(realsha1("ST4DekmHesR7EVfCU6K5Hw==258EAFA5-E914-47DA-95CA-C5AB0DC85B11"));
�nM�N�>⏑�O����G //951a6e4de44e7fbc3ee28f91d04fcccfcaea4711
Code: (base64 tool) [Select]
lugnut@LugBook:~$ base64
�nM�N�>⏑�O����G
77+9bk3vv71O77+9PuKPke+/vU/vv73vv73vv73vv71HCg==
Code: (nc -l 31337) [Select]
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: 77+9bk3vv71O77+9PuKPke+/vU/vv73vv73vv73vv71HCg==

Code: (client) [Select]
ERROR: Status line does not end with CRLF
working on opposite

E: ... same thing. I think i'm messing up the sending part.

3499
Modification Help / Re: Bot Events II
« on: August 28, 2012, 04:30:16 PM »
i am lugnut, you know, not tungul

3500
Probably not, but for now fix that you encode into base64 inside trueSha1 then encode it again outside.
aha! i am. good observation
EDIT: I think your main problem is you didn't replace base64Encode with the one I posted in my first post?
i did this for sure

3501
Drama / Re: Is Eeposs' signature bannable?
« on: August 28, 2012, 04:15:52 PM »
could someone pm me this magical link please
i wish to dissect it

3502
is your daycycles enabled
are you getting console errors
latest version is actually 16

3503
admittedly, if you've opened the events gui you might have to supplement with a serverCmd to get the event database or whatever the forget it's called

i don't remember which one it is though
someone find this servercmd, port is not 100% right on this
>map
>v21
gamemodes

3504
Code: [Select]
if($_SERVERHTTP_Connection $= "Upgrade" && $_SERVERHTTP_UPGRADE $= "websocket")
{
recho("> Upgrading connection to websocket.");

// if($WebSocketNum $= "")
$WebSocketNum = 0;

%spec = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";
%clkey = $_SERVERHTTP_Sec_WebSocket_Key;

%catkey = %clkey @ %spec;
recho("> CatKey: " @ %catkey);

%shakey = trueSha1(%catkey);
recho("> ShaKey: " @ %shakey);

%rkey = base64Encode(%shakey);
recho("> key: " @ %rkey);

%this.send("HTTP/1.1 101 Switching Protocols\r\n");
%this.send("Upgrade: websocket\r\n");
%this.send("Connection: Upgrade\r\n");
%this.send("Sec-WebSocket-Accept: " @ %rkey @ "\r\n");
%this.send("\r\n");

%this.isWebSocket = 1; // for use later
$WebSocketArray[$WebSocketNum] = %this; // for use later once i get it working
$WebSocketNum++;
return;
}

and the code i posted above

Code: [Select]
==> echo(base64encode(truesha1("27ebx99X70eajZ2+toSlog==258EAFA5-E914-47DA-95CA-C5AB0DC85B11")));
cEJsRzz1TVJXaX nVjJKRDf0TTB1SVn3bkFpPQ==

i'll try restarting server. for all i know there's some old code or some damn thing

done, latest attempt using posted code:
> CatKey: 8Q/9ulciD30Ah7kAuWNFTQ==258EAFA5-E914-47DA-95CA-C5AB0DC85B11
> ShaKey: MT 8kpXMXRUiXOTrXAGqAgSmEdU=
> key: TVQfOGsvWE0YUkVoWE7UckgBR2FBZ 0NsRWRVPQ==


there isn't supposed to be spaces in the shakey is there?

3505
Game Modes / Re: SpaceBuild v1.1 - Realistic Space Simulation!
« on: August 28, 2012, 02:58:26 PM »
gonna try this out

3506
Drama / Re: Hosting service - Terminated!
« on: August 28, 2012, 02:54:56 PM »
Please, quote all 0 posts that show that.
he's joking
note the 8 (9?) exclamation points, misspelled "funny" and distinct (and characteristic) lack of capitalization

3507
admittedly, if you've opened the events gui you might have to supplement with a serverCmd to get the event database or whatever the forget it's called

i don't remember which one it is though

3508
Drama / Re: Hosting service - Terminated!
« on: August 28, 2012, 02:44:18 PM »
Lugnut
Lugnutter
Solves the problem here. Lugnut's a nutter.
god loving damn it.

3509
events = no
events load just fine wtf are you on

3510
Replace %input in the for loop with %i
I don't know why you did that
misinterpreted the code, was too excited to see it finally working T.T

Code: [Select]
> CatKey: 27ebx99X70eajZ2+toSlog==258EAFA5-E914-47DA-95CA-C5AB0DC85B11
> ShaKey: pBmGM6MRWiwhVBJD85M0vIZ8nQj=
> key: cEJsRzz1TVJXaX nVjJKRDf0TTB1SVn3bkFpPQ==
Code: [Select]
function trueSha1(%input)
{
%sourceSha = sha1(%input);

for(%i = 0; %i < strLen(%sourceSha); %i += 2)
%output = %output @ collapseEscape("\\x" @ getSubStr(%sourceSha,%i,2));

return base64Encode(%output);
}

wat do
it appears to be throwing random spaces in
should i try just removing them?
Code: [Select]
lugnut@LugBook:~$ base64
pBmGM6MRWiwhVBJD85M0vIZ8nQj=
cEJtR002TVJXaXdoVkJKRDg1TTB2SVo4blFqPQo=
Code: [Select]
cEJtR002TVJXaX [space in torque version is here] doVkJKRDg1TTB2SVo4blFqPQo= // note difference



it appears the code is misinterpreting one of the characters as a space OR outputting some of it as a space

which i guess doesn't work

Quote from: me
wat do

ran it through my stuff
Code: [Select]
lugnut@LugBook:~$ base64 -d
cEJsRzz1TVJXaX nVjJKRDf0TTB1SVn3bkFpPQ==
pBlG<�MRWibase64: invalid input
lugnut@LugBook:~$ base64
pBmGM6MRWiwhVBJD85M0vIZ8nQj=
cEJtR002TVJXaXdoVkJKRDg1TTB2SVo4blFqPQo=
lugnut@LugBook:~$ base64 -d
cEJtR002TVJXaXdoVkJKRDg1TTB2SVo4blFqPQo=
pBmGM6MRWiwhVBJD85M0vIZ8nQj=

Pages: 1 ... 229 230 231 232 233 [234] 235 236 237 238 239 ... 879