INI Protection with CRC32

Post your own tutorials, guides and demos.

Post » Fri Sep 18, 2009 12:16 pm

[quote="Minor":2v2m5rnj] It isn't completely hacker proof but at least you'll make them work for their 100 lives. :D
[/quote:2v2m5rnj]

Minor, excellent protection is not the first aim in game development. Let me write some statistics (only as the example):

Sony Vegas was protected with Base32 + Custom + ECDSA-113/ECC-89 -- WAS KEYGENNED by DI team
vTask Studio was protected with online check -- WAS KEYGENNED by TSRh team
HDDlife Pro was protected with nanomites -- WAS CRACKED by ...don't remember
Malwarebytes Antimalware was protected with hash and blacklisting -- WAS KEYGENNED by CRD team
Runtime Revolution Studio was protected with serial number in Virtual Machine -- WAS KEYGENNED by EDGE team
Multi Password Recovery was protected with Themida (the strongest protector!) -- WAS CRACKED by Ismail
Macro Mania was protected with registry key ckecking -- WAS CRACKED by CHiCNCREAM team

What does it mean? Almost any good game will be cracked. If not by keygenning, then by patching. If not by patching, then by loader. If not by loader, then by ... leaching. It's possible to buy a license to learn a protection scheme. Voil!

Code a nice game - and I (or somebody else) will buy it. People don't buy protections, they buy emotions, feelings...etc.

and...price should be reasonably low. :D
B
2
S
1
G
3
Posts: 102
Reputation: 1,304

Post » Fri Sep 18, 2009 12:34 pm

Agreed! Protection is futile really.

I remember my brother and brother-in-law buying the last Football Manager game (09 I think) and having a hard time registering their official purchased version - both online and by phone. To prove a point I downloaded a pirate version and had it up and running within 5mins. While the other 2 were still trying to register a product they paid for legitimately.

All I was aiming for is a low level protection for the ini files, so at least people would have to try a little to edit the values.

I'm currently playing around with a game and the ini files are commented so that anyone can edit the content however they want, it might break the game but then thats their choice.

If I do ever get round to making anything worthwhile then it'll be free to download.

Thanks Yaraslau.
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Fri Sep 18, 2009 1:09 pm

[quote="Minor":3m08gyq4] To prove a point I downloaded a pirate version and had it up and running within 5mins. While the other 2 were still trying to register a product they paid for legitimately.
[/quote:3m08gyq4]

:D :D :D

P.S. go to chat now!
B
2
S
1
G
3
Posts: 102
Reputation: 1,304

Post » Thu Oct 01, 2009 9:21 am

Yaraslau I think you missed the main point here. Point is not to have protected game but not to allow people to cheat! This is anti cheat not anti pirate. I might use this :)
B
11
S
3
G
4
Posts: 622
Reputation: 3,186

Post » Thu Oct 08, 2009 8:17 pm

[quote="Sagal":2inq287e]Yaraslau I think you missed the main point here. Point is not to have protected game but not to allow people to cheat! This is anti cheat not anti pirate. I might use this :)[/quote:2inq287e]

Well I say md5 with salt & pepper is more safe than this and we got md5 plugin here so I suggest you use it.
B
27
S
3
G
5
Posts: 172
Reputation: 3,628

Post » Fri Apr 30, 2010 1:28 pm

I really don't want to step on anyones toes here but it is fairly easy to "crack" the crc32 hash thingy, all you need is some program that can generate/show the CRC32 code for you, based on the file you clicked/marked.

This is how I managed to do it:

First you could put the file in a rar archive and open it to check that the CRC value is the same as in the hash.ini file, then go on and edit the score.ini file with the values you want and then put the edited file in a new rar archive and open it to look at the CRC it has now. Write that CRC code in the hash.ini file and you sucessfuly managed to change the high scores or whatever.

The point I want to make is it would be "safer" to use a binary file to store your scores and what not, that you don't want people to mess with. Sure the binary files are also reverse-engineerable but not with a simple texteditor. I guess you could still use the CRC32 checking but store the hash value in the binary file instead for less easy reading.

But kudos to Minor for doing this, I accedently got to this part of the forum when I searched on how to read/write from ini files.

My guess is that this is probably achievable through the same way with MD5 hashes if they are put out in clear text that is (MD5 hash in one file and the score in the other as Minor demonstrated in his example).

Cheers!
B
1
G
2
Posts: 6
Reputation: 637

Post » Fri Apr 30, 2010 3:14 pm

But will the average gamer do all that?
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155

Post » Fri Apr 30, 2010 4:02 pm

If desperate to cheat probably yes. :wink:
B
1
G
2
Posts: 6
Reputation: 637

Post » Fri Apr 30, 2010 10:55 pm

If your game is that good for the gamer to exert that kind of effort in cheating. :/ so I guess, make a good game first.
B
16
S
10
G
5
Posts: 255
Reputation: 3,934

Previous

Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests