What can a developer REALLY do
Ok, the other thread has gone completly mental, so how about going back to the roots here...what can we do really. Got any good protection programming ideas? You're not safe from IRC nomatter how many spamdeals you have. So we must go the protection way.
I think it is worth spending some time on this. If you get a solid system for protection then you can use it in future products aswell with some modifications that keep the crackers from doing the exact same thing again.
I guess the best way is to have the purchase e-mail address encrypted into something and then do checks in your code where you have a couple of different #defines for checking the code, and you put them every here and there in your code so that it will take more time (but won't be impossible) to crack. Then adding checksums to that so changes in the exe will be detected.
Any other ideas?
The most thorough way that I can think of is to get the devices serial number, and then change the size of the file (and several supporting files) to relate to that number in some way. Then have a series of checksums that look at these files (hidden thoughout the game). Even better would be if each one related to a certain part of the serial number, or better yet, several parts, but the parts were all mixed. I could go into a lot of detail. But what I am thinking of will never happen do to the fact that it is just to inconvientient to have to compile a new version for every purchaser. Unless you found a way to have the compiler automaticly run based on parameters that the purchaser chose. Yet again, it seems that the time/cost does not out way the what you will get in return. This would definitely be extreamly powerful.
Malmer,
I used a trick I read about in the other thread for The Nutcracker: For this game, you have to enter a code that translates to a 32bit value, internally. 16bits of this are checked with a basic check, and if this check passes, you are allowed to enter the main menu. The FULL check however is performed all over the game: The result of the test is used to set critical variables and in critical if statements. The cracker that finally cracked The Nutcracker mentioned that this was the hardest game to crack he had ever encountered, while I really didn't spend that much time on it. It was a matter of writing some nifty macro's and using them everywhere where my code had 'true' or 'false'.
I'm sure I could have made his life even more miserable by adding a file checksum in the same manner, and perhaps some other checks too... I thought about using the file checksum to garble compressed images, for instance.
Important is that the first easy-to-find check does not check everything. An illegal copy should simply work, but not as intended. Of course you need to protect innocent users from entering a bad code accidentally; that's why I added the simple check to the password screen.
- Jacco.
Perhaps you could give your first 50 customers special versions that you can track afterwards. That way you can at least sue the leak.

(Of course, any ideas we bandi about here that anyone uses is exposed to those we're trying to defeat, so...)
I think any protection scheme, to be remotely effective, has to have multiple checks throughout the code. I would suggest writing your check code and then coming up with a small application that "morphs" it, i.e., change it just enough to not easily be recognized as the same thing.
I've played with this concept before, although I haven't implemented it yet... I write the routine out to a file, then run an Excel macro (I LOVE Excel macros for code manipulations, very convenient and easy) and it changes variable names, changes data types, and also changes the actual code in some ways (i.e., unroll for loops, equivalencies like that).
Then, I run that macro a number of times to get a couple of different versions of the routine. Then I inline it everywhere I want to use it in my code (very important because if you just call them, unless the compiler inlines it for you, crackers won't have much of a problem with it).
That way, a cracker either has to (a) modify the different code in a number of different places, which means he has to find them all first, or (b) has to modify what the routine is checking (which is the trickier part to stop).
Another idea I've had that I haven't tried yet is this: it is relatively simple to write a Java servlet or even an ASP page that modifies a binary file. What you could do is have the customer enter some information on a web site, I'm thinking First Name, Last Name and Purchase Code (like transaction # from Handango or PocketGear). That information is encoded in some way and a string is generated. You then access the executable for your game as a binary stream and embed the encoded string in predefined locations. Your check routine(s) can then check for that string, which should be unique for every executable modified by your web application.
Nice thing about that is that you should be able to track where any pirated versions came from too.
There are of course details that make that a problem (new versions of your game might change the byte locations, you might have to add code to zip up your distribution for the user, etc.) but I think it's doable.
Hell, if any other developers wants to hook up and work on something like this, maybe we can all put our heads together and come up with something that, while not unbreakable (since nothing likely is), at least makes it far tougher on the other side.
The only problem with a lot of developers coming up with a protection scheme and all using it is that once some guy figures out a way to easily crack it (which I'm sure someone will sometime), then all of those programs could be cracked easily since they all use the same protection.
I always though the Operation Flashpoint protection was good - CD copies work perfectly, but over a period of time the game degrades. Hits to your men take off more and more damage, hand grenade explosions get so big you can't run away from them - the game just begins to be impossible and therefore no fun to play. Essentially you have to complete the whole game in just a couple of days, and never play it again without reinstalling (and removing all the registry keys and hidden files the copied version places in Windows to see if youve installed it before). If the person who got the copy really liked what they could play, they go and buy it... like shareware (suckware? erosionware?).
A sense of humour in game protection is great :) (provided it isn't destructive).
BTW, how easy would it be to trace people who give away their purchased software (even if it is accidental)? It would require some sort of signature in each copy. Would certainly help with press copies - I believe game publishers already watermark exclusive screenshots to determine which sites have the rights to them and which ones have just ripped them off.
Michael, I agree completely with your thought, "one protection to bind them all" would be a bad thing once someone figures it out.
Then again, with so many smart brains in one place, I'd bet we could come up with something that can be varied from developer-to-developer enough that cracking one wouldn't affect everyone.
As I said, I'd be willing to work on it, but there would obviously have to be a critical mass of interest before even beginning.
I think using the purchase e-mail is better than using device serial numbers. This is because they have to use a valid e-mail address when purchasing, and this e-mail address has to be associated with a real address, since they need that when buying using a credit card. So They can't just buy a copy with some fake e-mail, and distribute it with that e-mail. Because we will know the address of the one who bought that game and we'll nail him/her.
That way they have two options:
1) Crack the game
2) Create a keygen
If the code is complex then creating a keygen is not the easiest thing.
Which is why we have to 1) make complex keys with high encryption. 2) Make it hard to crack the game. I think that this way we can probably buy a month or atleast a few weeks. It is worth spending some time doing that.
We need private dev forums for a select group of developers to discuss matters like this. But we must also make sure we keep matters that belong in the public forums in the public forums. Otherwise PM will loose its open feeling which we all love.
Hi,
Is it true to say that ALL PPC 2002 devices have a Unique Hardware ID. Are there any that don't ?
A secure method of tying this into each purchased download copy should prevent usage on someone else's PPC, assuming all the above (and more) tricks are used.
Agree that some system should be thought through, as there are more small developers in this market than most others, and piracy can cripple them.
I am a bit scared about having erosionware...because some ppl might not understand that it is due to them using a warez version, and then they'll go posting bad stuff in the offical board and on other newssites. If erosionware is to be used then it has to be obvious that it is just that.
Or you can go for multiple protection schemes... you can maybe do like you were saying with the e-mail, along with the device's owner's name (like in PocketGB) and maybe even some obscure information from the person's device... maybe the first time it check's the person's telephone # and it has to be the same every time.
The most effective protection is linking the unlock code to the user name in the device registry.
Yes, you end up with someone willing to give out there name and serial to their friends to play, but most of your non-paying players get tired of switching the name on their system every time they want to play a different game.
And be sure it checks the registered name periodicly (like each level load), otherwise crackers just release a loader program that changes the user name long enough for your program to load and do it's checks.
A resonable length serial is Good, 32 digits using 1,I,l,0,O,5,S is not good, some of us will just print off the eMail with the code and stick it in a drawer. When we hard-reset our device 6 months later we would like to be able to enter the code by hand...
Tieing it to the PocketPC's uniqueID is not good, People are upgrading their PDA's every 6 months to a year, and I don't know anyone who bought a 38xx that didn't have to send it in for a replacment. It would be nice if the software we purchase from you will still work when Compaq screws up.
Online verification is good, as long as the developer has a reliable server that is allways available. I have an old copy of WinFax pro I can't use because the phone number it dials up to verify my registration was disconnected when the developer was bought out.
A combination of several ideas here could be very effective. A 16 digit serial using alphanumerics (avoiding the simmilar pairs I mentioned before) where only a portion is checked to start the game and play the first level (that's all most crackers will check), but then a diferent portion of the serial is checked for each further level (level 1 takes digits 1-8, 2 takes digits 4-12, level 3 takes all odd digits, etc...). That way a cracker would have to play the entire game through to check their keygen or crack (something most of them are not willing to do, they crack for the challange, not the game itself)
Impoertant Hint: do not use a subrutine to check the serial, hard code it into each portion of the code! If you use a serial checking subroutine a cracker can just search out this junction and block one or two switches, if you code it directly into the beginning of each level they will have to filter through 15-20 branches using that variable.
Basicly, the only way to get around this type of protection is to get a purchasers name and serial code.
Michael Walker wrote:
Or you can go for multiple protection schemes... you can maybe do like you were saying with the e-mail, along with the device's owner's name (like in PocketGB) and maybe even some obscure information from the person's device... maybe the first time it check's the person's telephone # and it has to be the same every time.
What if the person moves and changes their phone number? You have to think carefully about what you're going to do. You want to make a balance between keeping the customer happy, and keeping the hackers guessing.
I used a trick I read about in the other thread for The Nutcracker: For this game, you have to enter a code that translates to a 32bit value, internally. 16bits of this are checked with a basic check, and if this check passes, you are allowed to enter the main menu.
But surely someone can just buy one copy, and then put the unlock code on a Warez board?
How would that protect the software (different unlock keys?)
I don't see the point of having a Unique Device ID if developers dont use it to protect their software.
Sure if someone has to change their device then ok they come back to the developer/publisher and get assigned a new copy based on their new Unique ID. This must ensure that the copy can't be used by anyone else.
Regarding the support of older products, one possible method is to have the Unique ID test degrade after a couple of years so that no one using a really old piece of software loses out, and of course that is well past the prime selling time for the product.
It is in the interest of a small developer to keep on top of customer support issues like that.
The most effective protection is linking the unlock code to the user name in the device registry.
I also agree on this..as most people..try the game, once twice...but as we could C from the board...al want to keep thier Character on the PPC..and not like having thier device called X or Z...
secondly..if we suppose a leecher would own app/game and of course will have a different user/code..(as not the same person buys all the time that specific app/game) then normally one would get fed up of changing all the time the Username and codes..
Basically, he would loose more time changing codes then using the proggie itself--> this would result therefor in purchasing the proggie
Dave wrote:
But surely someone can just buy one copy, and then put the unlock code on a Warez board?
Because the code is based on the purchase e-mail which is linked to the address and name of the guy who bought it...and he can't fake his address or the creditcard won't work. This address is sent out to the developer on every purchase.
We should start some sort of private dev community for talking about this... maybe you'll need to be okayed before registering by the admin and you can't view anything without registering as to keep the pirates out.
Michael Walker wrote:
We should start some sort of private dev community for talking about this... maybe you'll need to be okayed before registering by the admin and you can't view anything without registering as to keep the pirates out.
That is not nice...I am no pirate..I own all proggies..I don't have a FTP..now Y would U call me that..C..we want to share Xperience and U deny it..not nice not nice..K--no need to go private...cause I'm outta here before we "clone" the other thread
Yes we need a private dev forum...but only for matters like this...we don't want to become a closed community.
Chris/Matt...please help

Ieg, I just have one quick thing to say... I didn't mean to just leave out the pirates, I meant to leave out everyone who's not a developer. If just a regular consumer gets the information, he/she might still be tempted to leak the info to a warez group.
How you going to decide who's a legitimate developer and who's not ?
Great idea, but as with all security someone will always get past posing as "real" developer.
After all most of the cracker guys I guess are fairly excellent coders. Just a little misguided....
I think we generally know who the developers who are regularly on PM are... Malmer, Carpediem, Peter Balough, Dan East, Sven Myhre, Simon Jacobs, Fzammetti, etc... and if someone who is not a pm regular wants to join, they merely have to provide proof that they are a developer, whether it be a web site or whatever.
I am surprised with you Walker, and very disapointed Malmer. Here I am, a moderator for the very group you want to know more about, offering you free information as to what protection scheams work based on my experance with them over the past 3 years!
As for a restricted developers forum, I have 3 programs listed on GameGear right now (2 free, 1 pay - with a full demo that just has a nag screen, noreason to be warezed although it is), do you think I would qualify as a developer?
Fair enough, but the method of security (Unique ID, Serial Numbers, User Name's etc) can be discussed in open forum.
What matters is "hiding" the checks for this within your own code. This I believe should be left to each developer, with a little guidance for newbies.
If a private developer forum can be created, great!
Where do I join?
But then again, how do you know who I am...

I just realized I may be causing some confusion, I keep posting under diferent initails (on is my initials, one is my nicname initials)
BS[214] and SM[214] are the same, Sorry!
It might be worth considering a few facts.
1. Until we get DNA fingerprinting for handhelds, it won't be possible to assign a copy of some software to some human owner - therefore perfection in a protection scheme is not possible.
2. What's the nature of the software? Can it be tied to a specific device/ID or is it likely to traverse several generations?
3. What links can be drawn between the purchaser of the software and the software itself?
(4. Not everyone has a credit card.)
Serial numbers are historically the best purchaser<->software link, but they can be distributed. However, they do allow for software to go across several generations of hardware and/or allow the customer to have the same program on several of their own devices (if the EULA allows this)...
Essentially, a protection scheme must in general allow for these:
1. Original customer to use software on different devices over a period of time (max 2/3 years?)
2. A scheme which means that each time the software goes from unregistered to registered status, the location of the user is logged somewhere and perhaps confirmed - maybe through a credit card check? Pirates rarely want to give out personal details, especially if they have to be confirmed in person.
[This is a really rough post with lots of holes, but I can't think right now!]
BS I think you misunderstood...the reason for a private forum is not to hide general ideas from crackers...with a private forum we can post sourcecode and stuff like that...get into more detail than we can here. Besides...PM needs a private forum anyways to support the developer base that is sticking around here, not just for copyprotection discussions.
Use of the Unique ID, coupled with effective online tracking as users change hardware, should allow developers to prevent that particular copy of their software from being used on another device. Assuming the check code is cleverly and cunningly hidden.
All this assumes your EULA only allows for one device at a time, but this is reasonable I believe. After all how many different players can be playing the SAME (uncopied) music CD, at the same time.
Ieg wrote:
That is not nice...I am no pirate..I own all proggies..I don't have a FTP..now Y would U call me that..C..we want to share Xperience and U deny it..not nice not nice..K--no need to go private...cause I'm outta here before we "clone" the other thread

quit your whining, you remind me of john
Theoretically a good copy protection should be discussed in the open. If the cracker has all information about how it works, but he's unable to crack it (or atleast not in reasonable time) you know it's a good copy protection.
In cryptography it already works in this way, but with copy protection most big devs keep their stuff to themselves in the hope nobody will figure out how it exactly works.
Jasper wrote:
Use of the Unique ID, coupled with effective online tracking as users change hardware, should allow developers to prevent that particular copy of their software from being used on another device. Assuming the check code is cleverly and cunningly hidden.
All this assumes your EULA only allows for one device at a time, but this is reasonable I believe. After all how many different players can be playing the SAME (uncopied) music CD, at the same time.
I believe they tried a similer trype of copyprotection or Rayman, the purchaser was required to connect through the cradle using their PC internet connection to register the software and load later levels (original idea, the game came with all the levels, but they only loaded 1 or 2 worlds at a time to a: keep down on RAM space, and b: verify owner info every time you loaded a level)
It took about 2 hours before people started distributing the hidden file that marked the game as registered, 1 week before the level installs were freely available to copy to CF so you didn't have to load/unload levels, and 1-2 weeks before a product purchase code was distributed so anyone could download the game from the developers server and register it online.
btw, I really don't like investing too much time in copy protections... like i said earlier, just put in enough to keep the honest people honest
But if someone comes up with an unbreakable protection... let me know

BS[214] wrote:
It took about 2 hours before people started distributing the hidden file that marked the game as registered, 1 week before the level installs were freely available to copy to CF so you didn't have to load/unload levels, and 1-2 weeks before a product purchase code was distributed so anyone could download the game from the developers server and register it online.
I'm suggesting that each copy that is downloaded is unique to each device, not just a couple of files, and that this copy is "riddled" with tests against the Hardware ID.
Ok, sure it requires a decent distribution server which can handle all those different downloads, but it "could" be one way to go...
The demo should never be "unlockable", ever!!!
Jasper wrote:
The demo should never be "unlockable", ever!!!
Remember, Some of your potential customers are on dial-up connections.
They will be rather upset to spend an hour downloading a 3 meg demo, decide they like it, pay for it, then find they need to download another 3 meg distribution file...
BS[214] wrote:
They will be rather upset to spend an hour downloading a 3 meg demo, decide they like it, pay for it, then find they need to download another 3 meg distribution file...
Point taken, perhaps a substantial part of the product can be downloaded again on purchase, still enough to "hide" the protection within.
No system is ever going to be perfect I guess..
I really don't think we need my input here, but I think you are all missing the target by a wide margin. Sagging sales does not mean Warez is the culprit, and I think this is the whole reason for this thread... to find someone and something to blame.
Anyway, to prevent further flaming I will just shut up and watch.
Having heavy copy protection isn't just about sales...there is something satisfying in making a copyprotection that takes a while to break

Malmer: About a private forum for this. VERY bad idea. If you wish to discuss the matter with someone and share ideas just do it PM with people you know and trust. A private forum would serve nothing more then to become a target for hackers so they can see what we're talking about.
Not only that, but the point Phantom and others are making is that the source for the checks isn't going to help anyone because they still have to edit the executable and remove the ludicrous number of them.
This all reminds me of the discussion from a year ago on Flipcode in response to an article by Phantom or Mignight (can't recall who now).
The best thing developers can do is openly share ideas about protection just like crackers openly share ideas about cracking that protection. Just don't name specifics about your particular app and talk about the ideas behind it. Yeah, it gives them an idea of where to start, but remember, any good cracker can identify your scheme in a matter of minutes just from experience anyways. We're combating people who do this for a profession. They'll always know more then we as individuals, but if we pool our ideas in threads like this we can atleast find out what didn't work and that's a definate advantage over how protection schemes have been developed in the past.
Anyone remember those retarded manual based protection schemes for disk games from the 80s and early 90s?
We'll never stop warez and that shouldn't be the goal. Our goal, as developers, is to slow it down so we can have the maximum reasonable sales cycle unhindered and the only way to do that is to not use one all-encompassing scheme.
Hosed comment about the crackers knowing what your protection is in a few momments reminded me of a major weakness the crackers usualy use.. String Searches.
All they have to do is open your registration dialog and write down what your prompt says. Then open a Decompiler and rin a string search for the exact same text (ie: 'Enter serial number' or whatever you ask)
This pops them strait into your registration routines, where they can get the variable for the stored serial and run searches from there.
The way around it, use a variable to store this string. A good cracker will realize they are still in the declerations portion of your program and search for a variable link, but it will throw off a large number of inexperanced crackers.
Also, Copy that exact phrase to several other locations in your program, perhaps assigning it to diferent variables to make backtracking the real variable even harder.
note, this is not the only text string they use. You will also need to do this with strings from any pop-up nag screens, if the title says [unregistered] or something like that, and if your help=>About screen displays the registration status.
Or one could just use an image to display the text...
An other thing that should be avoided is registry checks in the wrong places.
What it seems that it comes down to, and this also jives with my experience from years ago, is that the best way to slow down a cracker (remembering that you probably can't stop them outright) is not to try and be so clever, but to instead make it so hard as to not be worth their time and effort.
Bits of varied check code all over your game, key values stored in numerous locations (registry, CE datastore, file system, etc.), obviously a file checksum for the entire file, keys that are of sufficient length and based on something unique to each user (First Name/Last Name, things that won't change too often or at all), no obvious strings to search for...
It's kind of like being a magician actually... most of the best illusions you see are based on very simple concepts, but there is so much misdirection going on that the audience doesn't have a clue.
It'll all get cracked, but if it takes a week to do, most will just give up, leaving only the top crackers, which you weren't going to stop in the first place.
At least that's my strategy going forward. I'm not going to do anything that takes me a great deal of time, but just enough that it takes THEM a great deal of time!
fzammetti wrote:
It'll all get cracked, but if it takes a week to do, most will just give up, leaving only the top crackers, which you weren't going to stop in the first place.
Exactly. Allocate a day to spend just putting as many varied and obscure checks as possible to make their life difficult. You're right, ultimately they will crack it, but stalling them seems to be the only viable solution.
Have a bit of fun making their "job" harder...

My opinion, if anyone is interested, is that it isnt worth the bother. Of course it is very irritating that people steal our programs when we have put months and months of effort into them, and even more irritating that they argue it is perfectly reasonable and that we should actually be grateful to them for doing it! In the end any effort you put into a complex protection system will just be wasted, and end up annoying and inconveniencing legitimate customers and have no other effect. This is just my personal opinion based on my experiences as a developer. The best thing to do is write high quality software and sell it at a fair price and provide good support to legitimate customers. If you do that you will have high sales despite people stealing the game.
If everything was freeware you wouldn't have to worry about warez.
yeah, but that isnt exactly a helpful fact really
Yes, but I am all out of helpful facts for today. All I have left is meaningless bit of information, and random jiberish.
Glad to see Simon is still alive and well. Last I saw him he was sorta green.
The Summit provided Simon and I alot of opportunity to cover the major points and problems in developing PPC games. We don't have to agree 100% on every solution, but the fact that we were able to openly discuss it was cool enough.
In the future, I can imagine 4-6 devs sitting around discussing these matters, rather than a forum.
BTW, Simon is possibly one of the coolest and laid-back people I have ever met. I always thought he was a cool guy, but I wasn't prepared for his level of coolness in person.
I'll vouch for that.

Looks like this topic is dieing down a little.
I hope you developers will take a serious look to my suggestions on how to improve your copy protection. I'm not doing this as a joke, I really do pay for all my software and believe the developers deserve to be compensated for their work.
My suggestions are based upon talking with the crackers and learning how they bypass the current systems, not exactly information most people would be willing to give you. It is also base on being a customer who has stoped using plenty of programs becuase the developer stops supporting them or develops copy protecton routines so strict that real customers are inconvienanced (who else has put Win98SE back on thier system because they were tired of reregistering with MS every time they changed the hardware configuration under XP?)
Actually lots of information of that kind was available on the CEWarez site when it was up...I also have a few cracking tutorials so I kinda have a good view on what they do.
I've kept well away from that main post as it's out of hand. In the past I have seen developers go to the length of encrypting most of their program internally & making it pretty hard for anyone dis-assembling. As a developer who has disassembled code more to know how it worked than anything I've also come across lots of fun & rude messages to hackers many of which add to the enjoyment of rummaging through code.
One obvious tactic is to aim products at grown ups as nearly everyone who is 30+ is going to purchase legitamate software.
(I've nothing against people wanting to hack around code to understand it but taking away people's income with no thought to the effect is a calous act and invites similar acts by return. The old 'glass houses' rule applies)
Conan wrote:One obvious tactic is to aim products at grown ups as nearly everyone who is 30+ is going to purchase legitamate software.
The largest segment of warez users I know of (both PC and PPC) are middle-aged IT professionals.
According to statistics I've seen at piracy awarness sites the largest (monitaraly) offenders are corporations, where they buy one copy of Win 2000 and install it on all 200 systems in the office.
Side not I forgot to mention (I ought to sign up so I can edit posts, but I already belong to 7 forums I try to check each day), the younger group most developers are targeting their protection agianst (14 - 22) generaly do not have a credit card or expendable money to spend on a program. Not to justify their theft, but they wouldn't be a paying customer anyway...
I get quite a few youngsters buying via their Mum's & Dad's Visa. I think what happens is that dad gets the latest shiny new iPaq and passed his Jornada to the Kid who carts it around in his schoolbag for a while until the screen breaks. Of course I don;t realise this so some kid called Chuck gets a registration name of Mildred something.
People without credit cards can register by posting money or sending cheques to the online site. There's also a site 'nochex' a bit like paypal but using debit cards and most youngsters nowadays have bank acounts with debit cards.