D4stiny / CyberPatriot-Decrypt

Decrypts encrypted scoring data of the CyberPatriot Scoring Engine.
19 stars 6 forks source link

Exe from releases page doesn’t work #1

Open nerd8622 opened 5 years ago

nerd8622 commented 5 years ago

I followed instructions for a scoringrescource.dat file from CPX Regionals and the was no output

Brhsoftco commented 4 years ago

Install Git for Windows Install Visual Studio 2019 and MSVC

git clone https://github.com/D4stiny/CyberPatriot-Decrypt cd CyberPatriot-Decrypt Open CyberPatriot-Decrypt.sln in Visual Studio Ignore all 'Downloaded from internet' warnings Edit CyberPatriot-Decrypt.cpp Replace

byte key[] = { 0xB, 0x50, 0x96, 0x92, 0xCA, 0xC8, 0xCA, 0xDE, 0xC8, 0xCE, 0xF6, 0x76, 0x95, 0xF5, 0x1E, 0x99 };

with

byte key[] = { 0x48, 0x95, 0x3f, 0x18, 0x30, 0x42, 0x3a, 0x47, 0x51, 0x40, 0x05, 0x2c, 0x54, 0xae, 0x0c, 0x2e };

Save all files and open a new Visual Studio instance

Open CryptoPP/cryptest.sln Compile and set linker flags for Debug and Release Take the resulting compiled cryptopp.lib and static link with CyberPatriot-Decrypt project

Compile the CyberPatriot-Decrypt solution with the modified byte key[] array.

It should now decrypt the file successfully.

nerd8622 commented 4 years ago

Thanks! While I was able to get that part to work (setting up Microsoft VS), we couldn’t find the right byte array for certain scoringrescource files.

Brhsoftco commented 4 years ago

That's unfortunate to hear. Did you successfully compile the application for a resulting exe?

Brhsoftco commented 4 years ago

You might try decompiling the CCSClient.exe in Ghidra