This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Creating Serial Numbers / Hardware Keys


Creating Serial Numbers / Hardware Keys

Postby brendan » Dec 18, 2002 @ 1:43am

User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


Postby Dan East » Dec 18, 2002 @ 1:59am

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby brendan » Dec 18, 2002 @ 2:49am

User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


Postby sponge » Dec 18, 2002 @ 5:10am

holy internets batman.
User avatar
sponge
Not sponge
 
Posts: 12779
Joined: Jan 13, 2002 @ 8:04am
Location: New Hampshire


Postby Guest » Dec 18, 2002 @ 7:25am

Guest
 


Postby Malmer » Dec 18, 2002 @ 9:24am

Basing it of the purchase e-mail address is a good thing. Then if a serial is leaked then they have to give out the e-mail address used when purchasing the first version. And then if you find a leaked serial then you can just check your purchase dB and get the address of the one who leaked it.

Could be quite efficient I guess...

Unless your product is cracked.
All your base are belong to us
User avatar
Malmer
pm Member
 
Posts: 768
Joined: Apr 26, 2001 @ 5:15pm
Location: Sweden


registration code

Postby Conan » Dec 18, 2002 @ 11:42am

You have to bear in mind that if you want to use automatic registration via Handango etc that your code has to fit their requirements. I can assure you that after a few months of giving out reg codes you will be happy to automate.

ShareIt! are great because they provide source to build a windows dll which plugs in to their reg system. The source is available in lots of languages.

( I get slightly more registrations from ShareIt than from Handango which means more people coming from download.com and zdnet etc than from the direct store.
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby sponge » Dec 18, 2002 @ 2:11pm

holy internets batman.
User avatar
sponge
Not sponge
 
Posts: 12779
Joined: Jan 13, 2002 @ 8:04am
Location: New Hampshire


Postby Guest » Dec 19, 2002 @ 9:59am

Guest
 


Postby sponge » Dec 19, 2002 @ 2:06pm

holy internets batman.
User avatar
sponge
Not sponge
 
Posts: 12779
Joined: Jan 13, 2002 @ 8:04am
Location: New Hampshire


Postby brendan » Dec 20, 2002 @ 12:33am

User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


Postby Annoying Snails Master » Dec 20, 2002 @ 4:45am

Annoying Snails Master
pm Member
 
Posts: 946
Joined: Apr 23, 2002 @ 1:07am


Postby damian » Dec 20, 2002 @ 5:25am

damian
pm Insider
 
Posts: 3960
Joined: Sep 3, 2002 @ 7:59pm
Location: Acton, MA (home), NYC (school)


Postby sponge » Dec 20, 2002 @ 6:54am

holy internets batman.
User avatar
sponge
Not sponge
 
Posts: 12779
Joined: Jan 13, 2002 @ 8:04am
Location: New Hampshire


Postby Dan East » Dec 20, 2002 @ 4:48pm

It took 8 months to crack DEXplor, and only then because I left a vulnerability in that I didn't want to spend time working on and delay the initial release. It was more important for me to provide the community with DEXplor than spend too much time trying to prevent warez users from not having it.

Most "cracking" is done using a hex editor and changing various bytes to 0. This can be used to fall through conditional logic branches because an opcode of 0 is no operation. So if you have something like "If not registered GoTo here" then replacing that conditional branch with a 0x00 will cause it to fall through and not branch when unregistered. Obviously you can reverse your logic to require a cracker with more experience (If Registered Goto here). Again, the idea isn't to make it completely hack-proof, but to protect against the trivial hacks requiring no skill and the simplest of software tools (hex editor).

Another example is a MessageBox. If you have a message box that pops up and asks the user to register, then a hacker can simply find that string and replace the first character with a 0 byte. The Win23 MessageBox routine will not display anything if it is passed a zero length string, so the whole message goes away. You can use a basic cipher on your strings to prevent them from being hacked in this manner.

These are simple things a programmer can do to make it much more difficult for a kiddie-hacker to crack. Basically what I did with DEXplor is require at least some degree of intelligence to crack it. And even then they had to create a separate key gen program that works with the hacked version, so they still have to generate and use a key, making it a cumbersome process. A warez user certainly can't just copy the cracked version onto their device and use it. They have to do some contortions first.

Finally, most warez people will not buy the software regardless. Yes, they are very good at coming up with excuses and flawed logic based on the premise that they somehow help software development. While I, as much as any other developer, would like to prevent warez users from having access to something they don't deserve and didn't contribute to (ie purchase), in the end it costs me very little money. Most of them either can't afford the software in the first place, do not have the moral integrity to do what is right, or don't have the intelligence to realize that the only reason programmers are able to work full-time developing new and cutting-edge Pocket PC software is because they get reimbursed by consumers (if their product is worthy).

What comes around goes around, so they will get theirs in the end. I've decided I'm not going to invest undue amounts of time with elaborate protection, because my time is much better spent creating productive and new things for the benefit of the community. [steps down off of soap box]

Oh, if a single post is made to this thread exhorting warez in any way, I will delete the post and see that the poster is banned immediately. If I want to waste my time arguing about warez I will go to the warez community. They can stay in their illegitimate place, which is out of the public light that the rest of us enjoy.

Dan East
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Next

Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum