|
You last visited: Today at 21:33
Advertisement
Encryption problem
Discussion on Encryption problem within the Flyff Private Server forum part of the Flyff category.
01/25/2014, 10:53
|
#1
|
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:
2014/ 1/22 00:39:26 rCnt=1
Neuz.exe caused an EXCEPTION_ACCESS_VIOLATION in module Neuz.exe at 0023:0079AABA, CScript::PreScan()+0842 byte(s), c:\users\moncef\desktop\server files\source\program\_common\script.cpp, line 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.exe, CScript::PreScan()+0842 byte(s) 0023:006E221F Neuz.exe, CProject::LoadDefines()+0287 byte(s) 0023:006E225F Neuz.exe, CProject::LoadPreFiles()+0015 byte(s) 0023:00473B7E Neuz.exe, CNeuzApp::BeginLoadThread()+0030 byte(s) 0023:00473BEA Neuz.exe, CNeuzApp::InitDeviceObjects()+0058 byte(s) 0023:0049382E Neuz.exe, CD3DApplication::Initialize3DEnvironment()+2030 byte(s) 0023:0049205A Neuz.exe, CD3DApplication::Create()+0890 byte(s) 0023:00479BA8 Neuz.exe, WinMain()+0392 byte(s) 0023:009482F2 Neuz.exe, WinMainCRTStartup()+0388 byte(s) 0023:75F6495D KERNEL32.DLL, BaseThreadInitThunk()+0014 byte(s) 0023:777898EE ntdll.dll, RtlInitializeExceptionChain()+0132 byte(s) 0023:777898C4 ntdll.dll, RtlInitializeExceptionChain()+0090 byte(s)
Any help suggested ?
|
|
|
01/25/2014, 17:12
|
#2
|
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)
|
|
|
01/25/2014, 17:49
|
#3
|
elite*gold: 0
Join Date: Nov 2010
Posts: 119
Received Thanks: 35
|
Quote:
Originally Posted by Mognakor
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.
|
|
|
01/25/2014, 19:34
|
#4
|
elite*gold: 0
Join Date: Jun 2013
Posts: 166
Received Thanks: 259
|
Quote:
Originally Posted by max982
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.
|
|
|
01/25/2014, 23:34
|
#5
|
elite*gold: 0
Join Date: Nov 2010
Posts: 119
Received Thanks: 35
|
Quote:
Originally Posted by WurstbrotQT
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( CompareExt( c_file.name, ".res" ) ) { IsNewEnc = FALSE; strcat( szPath, c_file.name ); AddResource( szPath ); ::Error( _T( "File %d, Is %d" ), c_file.name, IsNewEnc ); } else if( CompareExt( c_file.name, ".adi" ) ) { IsNewEnc = TRUE; strcat( szPath, c_file.name ); AddResource( szPath ); ::Error( _T( "File %d, Is %d" ), c_file.name, IsNewEnc ); AfxMessageBox(c_file.name); }
And then:
PHP Code:
if(IsNewEnc == TRUE) { for( int i = 0; i < nFileHeaderSize; i++ ) { pHeader[i] = DecryptionADI( byEncryptionKey, pCryptHeader[ i ] ); } } else { for( int i = 0; i < nFileHeaderSize; i++ ) { pHeader[i] = Decryption( byEncryptionKey, pCryptHeader[ i ] ); } }
And it's the same for the others
|
|
|
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?
|
|
|
01/26/2014, 11:15
|
#7
|
elite*gold: 0
Join Date: Nov 2010
Posts: 119
Received Thanks: 35
|
Quote:
Originally Posted by WurstbrotQT
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.
|
|
|
01/26/2014, 14:05
|
#8
|
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.
|
|
|
|
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.
|
|