Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 21:33

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Encryption problem

Discussion on Encryption problem within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
max982's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 119
Received Thanks: 35
Encryption problem

Hello, i had an idea of making my own ecnryption system, and it works fine, then i had an other idea of making it work in parralel with the default .res files so any player can use an client to play and custom contenent will go into encrypted files.

I made this system to work like this:

The old flyff's Scan thingy -> If the file is encrypted -> IsEnc = True;
Else use the old .res encryption key or something

The error i'm having is
PHP Code:
20141/22   00:39:26    rCnt=1

Neuz
.exe caused an EXCEPTION_ACCESS_VIOLATION in module Neuz.exe at 0023:0079AABACScript::PreScan()+0842 byte(s), c:\users\moncef\desktop\server files\source\program\_common\script.cppline 0382+0006 byte(s)

 - 
Registers

EAX
=0018DB08  EBX=7FFDE000  ECX=015C6000  EDX=0018DB08  ESI=00000000
EDI
=75F6B756  EBP=0018DAFC  ESP=0018DA84  EIP=0079AABA  FLG=00210216
CS
=0023   DS=002B  SS=002B  ES=002B   FS=0053  GS=002B

0023
:0079AABA Neuz.exeCScript::PreScan()+0842 byte(s)
0023:006E221F Neuz.exeCProject::LoadDefines()+0287 byte(s)
0023:006E225F Neuz.exeCProject::LoadPreFiles()+0015 byte(s)
0023:00473B7E Neuz.exeCNeuzApp::BeginLoadThread()+0030 byte(s)
0023:00473BEA Neuz.exeCNeuzApp::InitDeviceObjects()+0058 byte(s)
0023:0049382E Neuz.exeCD3DApplication::Initialize3DEnvironment()+2030 byte(s)
0023:0049205A Neuz.exeCD3DApplication::Create()+0890 byte(s)
0023:00479BA8 Neuz.exeWinMain()+0392 byte(s)
0023:009482F2 Neuz.exeWinMainCRTStartup()+0388 byte(s)
0023:75F6495D KERNEL32.DLLBaseThreadInitThunk()+0014 byte(s)
0023:777898EE ntdll.dllRtlInitializeExceptionChain()+0132 byte(s)
0023:777898C4 ntdll.dllRtlInitializeExceptionChain()+0090 byte(s
Any help suggested ?
max982 is offline  
Old 01/25/2014, 17:12   #2
 
Mognakor's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 598
Received Thanks: 465
c:\users\moncef\desktop\server files\source\program\_common\script.cpp, line 0382+0006 byte(s)
Mognakor is offline  
Old 01/25/2014, 17:49   #3
 
max982's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 119
Received Thanks: 35
Quote:
Originally Posted by Mognakor View Post
c:\users\moncef\desktop\server files\source\program\_common\script.cpp, line 0382+0006 byte(s)
Oh seriously? You think i'm too idiot to no go there? Go back from where you came, you have no utility here.
max982 is offline  
Old 01/25/2014, 19:34   #4
 
elite*gold: 0
Join Date: Jun 2013
Posts: 166
Received Thanks: 259
Quote:
Originally Posted by max982 View Post
Oh seriously? You think i'm too idiot to no go there? Go back from where you came, you have no utility here.
So why do you post those errors, if you know what do do there? If you want us to help you you have to post some code otherwise it's not possible.
WurstbrotQT is offline  
Old 01/25/2014, 23:34   #5
 
max982's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 119
Received Thanks: 35
Quote:
Originally Posted by WurstbrotQT View Post
So why do you post those errors, if you know what do do there? If you want us to help you you have to post some code otherwise it's not possible.
Oh okay, didn't know about posting the code,
So yeah, here it is:

PHP Code:
if( CompareExtc_file.name".res" ) )
            {
                
IsNewEnc FALSE;
                
strcatszPathc_file.name );
                
AddResourceszPath  );
                ::
Error_T"File %d, Is %d" ), c_file.nameIsNewEnc );
            } else if( 
CompareExtc_file.name".adi" ) )
            {
                
IsNewEnc TRUE;
                
strcatszPathc_file.name );
                
AddResourceszPath  );
                ::
Error_T"File %d, Is %d" ), c_file.nameIsNewEnc );
                
AfxMessageBox(c_file.name);
            } 
And then:

PHP Code:
        if(IsNewEnc == TRUE)
        {    
            for( 
int i 0nFileHeaderSizei++ )
            {
                
pHeader[i] = DecryptionADIbyEncryptionKeypCryptHeader] );
            }
        } else
        {
            for( 
int i 0nFileHeaderSizei++ )
            {
                
pHeader[i] = DecryptionbyEncryptionKeypCryptHeader] );
            }
        } 
And it's the same for the others
max982 is offline  
Old 01/26/2014, 00:11   #6
 
elite*gold: 0
Join Date: Jun 2013
Posts: 166
Received Thanks: 259
Maybe it crashes because you try to print a string array as a decimal value?
WurstbrotQT is offline  
Old 01/26/2014, 11:15   #7
 
max982's Avatar
 
elite*gold: 0
Join Date: Nov 2010
Posts: 119
Received Thanks: 35
Quote:
Originally Posted by WurstbrotQT View Post
Maybe it crashes because you try to print a string array as a decimal value?
I don't think so, what i did was to multiply the Encryptionkey with a coef so that it does some encryption, when i tried it without the .res, it works fine with the .adi files, but then i had the idea of making it work in parralel, witch i failed at.

So i don't think it's a decimal problem or something like that.
max982 is offline  
Old 01/26/2014, 14:05   #8
 
Mognakor's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 598
Received Thanks: 465
No idea how CompareExt works, but the usual string-comparism returns true (different from 0) if the string is not equal and false (0) if the strings are equal.

sincerely 'the useless idiot'

P.S.: Your first part of code generates 3 possible states but those are only distinguished by 2 possible states, if you read neither a .res nor .adi file you are gonna experience unexpected or even undefined behavior.
Mognakor is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Encryption of DO
04/04/2013 - DarkOrbit - 28 Replies
Hey, I talked with a guy, who is interested in coding. He looked for the encryption just for fun and gave me this: http://pastebin.com/2iLKJUcs Maybe it helps. I don't know :) Please dont ask, what this is or how to use it. Its for the better developer here ala Heaven, Gnome or First
Encryption Help
08/02/2012 - .NET Languages - 5 Replies
{NOTE : I Tried to google this first but sorry i did not get to my specific point} In the following few lines i will explain the trick that i am worry about , and an explanation for my exact problem Trick : Past i used to crack a program using fake server response 1- Looping back the connection of the program (client) to my computer 2- Sniffing the Login successful packet from the real server 3- Creating a fake server (listener) that listens for a connection from the client and...
[Problem] With Packet Logger/Encryption !!
12/28/2010 - CO2 Private Server - 0 Replies
Hey Everyone ,Merry Christmas so my question is , does anything changed with Encrypt/Decrypt Packets the last 24 hours ?? my PacketLogger suddenly stopped working and the Client doesn't accept the Edited ServerDHPacket after too many checks i'v noticed that when Editing the coming DHPacket it changes the last "TQ" form "TQServer" seal ,so the client normally wont accept it - tried to edit the packet without the seal word and adding it again be4 sending to the client (Client...
[Problem] Password Encryption 5250+
09/23/2010 - CO2 Private Server - 3 Replies
Hello everyone. I'm asking for your help because i'm in trouble in my source. I can't get the right password, I'm decrypting it but I still don't have the good one. I looked on ConquerWiki if I were on the right offset for the password and I am. I saw that there were something with a length of 32 begining at the same offset than password (132). I've dumped the packet received. I don't think there is any problem with. 14 01 3E 04 74 65 73 74 00 00 00 00 00 00 00 00 ...
Encryption
12/04/2008 - CO2 Private Server - 23 Replies
What is so good about having a client that is 5017+? And this encryption......what is it?



All times are GMT +2. The time now is 21:33.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.