Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
encryption response

 
Post new topic   Reply to topic Printable version
 View previous topic  Port of twCore encryption to C++ Post :: Post whats the max. amount of plugins mervb...  View next topic  
Author Message
Miesco
Newbie


Joined: Aug 23 2004
Posts: 24
Offline

PostPosted: Mon Aug 23, 2004 11:41 am    Post subject: encryption response Reply to topic Reply with quote

Is my 00 02 response suppost to look like this:

00 02 01 00 00 00 00 96 7a 90 38 1c cf e6 b8 3c cb 7d 90 5f 9f 92 94 70 80 a8 f9 92 8e 00 48 db 71 15 32 ac af e3 8e ae 60 9e b1 0f fb 86 80 e7 74 47 ba 77 75 e0 2c 06 29 16 2d 56 12 52 68 fb 4f 00 c7 47 8d 8e 44 57 6b 76 b9 ae 37 3f f7 f0 20 08 99 e2 d7 0a 80 92 9a c9 c2 94 94 42 9c 35 57 d3 ce 2a 27 69 51 d2 00 3a 63 b5 8f d4 93 fb 6a c9 83 88 cb 76 ff d4 48 4e 31 3c 3b a5 06 11 7c 2a 79 35 49 bd ab af f0 29 41
Back to top
View users profile Send private message Add User to Ignore List
2dragons
Novice


Joined: Feb 17 2004
Posts: 95
Offline

PostPosted: Mon Aug 23, 2004 12:07 pm    Post subject: Reply to topic Reply with quote

no.

should be 5 bytes long, 6 with the leading 0x00


0x02 Encryption Response

Offset Length Description
0 1 Type Byte 0x02
1 4 Server Encryption Key
Back to top
View users profile Send private message Add User to Ignore List
Miesco
Newbie


Joined: Aug 23 2004
Posts: 24
Offline

PostPosted: Mon Aug 23, 2004 12:17 pm    Post subject: Reply to topic Reply with quote

Any reason why I get all this stuff AFTER I receive the correct response?
Back to top
View users profile Send private message Add User to Ignore List
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:41
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Mon Aug 23, 2004 12:34 pm    Post subject: Reply to topic Reply with quote

You are connecting to a zone connect to the SSC billing server. All that extra 'junk' is what is used to verify that you are connected to the real SSC billing server, and is used to keep your password secure even from the server and/or proxies.

In other words, just ignore it.
Back to top
View users profile Send private message Add User to Ignore List Send email
Guest



Offline

PostPosted: Mon Aug 23, 2004 12:47 pm    Post subject: Reply to topic Reply with quote

I also get stuff after other packets like:

00 04 00 00 00 00 80 17 ec 26

is that also just stuff I should ignore?
Back to top
Guest



Offline

PostPosted: Mon Aug 23, 2004 1:35 pm    Post subject: Reply to topic Reply with quote

Mine GO BOOM wrote:
All that extra 'junk' is what is used to verify that you are connected to the real SSC billing server
How come asss test zone doesn't have the extra stuff yet has no password warning when logging in?
Back to top
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Mon Aug 23, 2004 4:35 pm    Post subject: Reply to topic Reply with quote

There's no warning because its on SSC
_________________

Back to top
View users profile Send private message Add User to Ignore List Visit posters website
-Smong-
Guest


Offline

PostPosted: Mon Aug 23, 2004 4:42 pm    Post subject: Reply to topic Reply with quote

How do you tell whether it is on SSC or not?
Back to top
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Mon Aug 23, 2004 4:43 pm    Post subject: Reply to topic Reply with quote

chats
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
-Smong-
Guest


Offline

PostPosted: Mon Aug 23, 2004 4:52 pm    Post subject: Reply to topic Reply with quote

How can the client get on a chat channel before it has even logged in?
Back to top
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Mon Aug 23, 2004 5:35 pm    Post subject: Reply to topic Reply with quote

Anonymous wrote:
I also get stuff after other packets like:

00 04 00 00 00 00 80 17 ec 26

is that also just stuff I should ignore?


Ack packets should be exactly 6 bytes long. There should never be anything after them unless they are encapsulated in a cluster packet. If you see a packet starting with 00 04 that is longer than 6 bytes, you are doing something wrong.
_________________
4,691 irradiated haggis!
Back to top
View users profile Send private message Add User to Ignore List
Miesco
Newbie


Joined: Aug 23 2004
Posts: 24
Offline

PostPosted: Tue Aug 24, 2004 5:37 am    Post subject: Reply to topic Reply with quote

Mr. Ekted, yea im pretty sure its my encryption, here is my decrypt():

Code: Show/Hide
sub ssdecrypt {
  my @packet = @_;
  my ($tempKey, $tempInt, $count, @output, $index);

  if (@packet[0] == 0x00) {
    $index = 2;
  } else {
    $index = 1;
  }

  $tempKey = $serverKey;
  #$count = int( scalar(@packet) + (4 - scalar(@packet) % 4) );
  $count = scalar(@packet);
  #$count = scalar(@packet[$index .. $#packet]);

  @output = @packet[$index .. $#packet];
  for ($i = 0; $i < $count; $i += 4) {
    $tempInt = dece_int(@table[$i .. $i+3]) ^ $tempKey ^ dece_int(@output[$i .. ($i+3)]);
    $tempKey = dece_int(@output[$i .. ($i+3)]);
    @output[$i .. ($i+3)] = ence_int(int($tempInt & 0xffffffff));
  }

  unshift(@output, @packet[0 .. $index-1]);
  return @output;
}


See how there are 2 commented $count's, well it depends on which one I have to how many extra packets add on, if I make it the last one (.................... NEVER MIND I just found out how to do it while posting! I got it write now, no extra stuff
Back to top
View users profile Send private message Add User to Ignore List
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Tue Aug 24, 2004 6:10 am    Post subject: Reply to topic Reply with quote

What language is that?
Back to top
View users profile Send private message Add User to Ignore List
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Tue Aug 24, 2004 6:20 am    Post subject: Reply to topic Reply with quote

It looks messed up enough to be PERL. Maybe that's why your encryption doesn't work... you're mixing languages! icon_razz.gif
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Miesco
Newbie


Joined: Aug 23 2004
Posts: 24
Offline

PostPosted: Tue Aug 24, 2004 6:21 am    Post subject: Reply to topic Reply with quote

Its only perl, so is the rest of my core, who said I was doing it in C
Back to top
View users profile Send private message Add User to Ignore List
Explody
Guest


Offline

PostPosted: Tue Aug 24, 2004 7:37 am    Post subject: Reply to topic Reply with quote

Is this SSJTrunksz?
Back to top
Miesco
Newbie


Joined: Aug 23 2004
Posts: 24
Offline

PostPosted: Tue Aug 24, 2004 8:09 am    Post subject: Reply to topic Reply with quote

of course
Back to top
View users profile Send private message Add User to Ignore List
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Tue Aug 24, 2004 5:09 pm    Post subject: Reply to topic Reply with quote

Oh darnit I got confused between your post and emileej's. My bad, sorry.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Miesco
Newbie


Joined: Aug 23 2004
Posts: 24
Offline

PostPosted: Tue Aug 24, 2004 10:06 pm    Post subject: Reply to topic Reply with quote

Yea well were both making a bot core, both have questions about the same things.
Back to top
View users profile Send private message Add User to Ignore List
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Wed Aug 25, 2004 9:46 am    Post subject: Reply to topic Reply with quote

@Smong: I was just saying thats how I know its on ssc, I have no idea how the client knows, but mgb says its in the extra
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 49 page(s) served in previous 5 minutes.

phpBB Created this page in 0.461957 seconds : 45 queries executed (93.1%): GZIP compression disabled