Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 11:47

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: GSList enctypex encoding
PostPosted: 04 Mar 2011 18:54 

Joined: 04 Mar 2011 18:19
Posts: 4
Hi Luigi. Great and rare to find project in a net.

I have seen your ServerList Browser source, but i need vice versa thing to do. I need to encrypt ip, port, and other data if needed, by enctypex and send it to client. Is it possible with your existing work, or i got to reverse gslist decode algorithm?


Top
 Profile  
 
 
 Post subject: Re: GSList enctypex encoding
PostPosted: 04 Mar 2011 19:06 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
sure it's already possible :)
in enctypex_decoder.c the last function is just enctypex_quick_encrypt.
for additional info take a look at the following thread:
master-server-emulation-with-enctypex-t552.html


Top
 Profile  
 
 Post subject: Re: GSList enctypex encoding
PostPosted: 04 Mar 2011 19:25 

Joined: 04 Mar 2011 18:19
Posts: 4
It is just what i was looking, both the thread, and the code. Big Thx.


Top
 Profile  
 
 Post subject: Re: GSList enctypex encoding
PostPosted: 06 Mar 2011 15:32 

Joined: 04 Mar 2011 18:19
Posts: 4
Hi Luigi. Having problems with <enctypextest> app. I give filename, gamekey, and validation key args, app is showing me original, decoded dump and then crashes. As i looked source, there must be encoded, and decrypted again. Having Win7 OS, can it be it? Was trying to rewrite encryption to another language, but have problems too, cause as i sniffed data from GSpy, encrypted data must start with bytes 0x(from e0 to fd) , 0x00 , 0x00, but your code encrypting whole data array, with header, cause
Code:
int enctypex_func6e(unsigned char *encxkey, unsigned char *data, int len) {
    int     i;

    for(i = 0; i < len; i++) {
        data[i] = enctypex_func7e(encxkey, data[i]);
       }

ecrypt all elements from 0 to len.


Top
 Profile  
 
 Post subject: Re: GSList enctypex encoding
PostPosted: 06 Mar 2011 18:56 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
can you send me the file you used and both the gamekey and validate values via pm?
maybe it's a problem caused by the file you passed to the tool that contains other data instead of only the encrypted block (don't worry it's normal, the tool is simple so doesn't scan the file for the encrypted data automatically)


Top
 Profile  
 
 Post subject: Re: GSList enctypex encoding
PostPosted: 06 Mar 2011 19:48 

Joined: 04 Mar 2011 18:19
Posts: 4
Key: ZvZDcL
Valid: u+`Onoh


Attachments:
test.txt [30 Bytes]
Downloaded 39 times
Top
 Profile  
 
 Post subject: Re: GSList enctypex encoding
PostPosted: 07 Mar 2011 09:23 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
eh eh eh the tool doesn't work in that way.

first because the file it wants is the encrypted content because it performs the following operations on it:
- decryption
- re-encryption

then you need to pass it the binary formatted content, not the plain-text one.
just like the data you see when you when you use gslist -o 6 but without the initial header (eb 00 00 00) because it's automatically added by enctypex_quick_encrypt

the simplest format for containing the various IP:port is the following:
Code:
bytes
4       client's IP, set it to 0
2       most used port, set it to 0
1       number of static parameters, set it to 0
1       number of static values, set it to 0

for each server IP:port:
1       type, set it to 0x11
4       IP
2       port

final:
1       set it to 0
4       set it to 0xffffffff


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: