Click here to Skip to main content
15,921,905 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: How to implement a 30-day expiration / key-based registration for software Pin
Christian Graus27-Apr-08 21:11
protectorChristian Graus27-Apr-08 21:11 
GeneralRe: How to implement a 30-day expiration / key-based registration for software Pin
Member 391904928-Apr-08 9:56
Member 391904928-Apr-08 9:56 
GeneralRe: How to implement a 30-day expiration / key-based registration for software Pin
Christian Graus28-Apr-08 11:29
protectorChristian Graus28-Apr-08 11:29 
RantRe: How to implement a 30-day expiration / key-based registration for software Pin
Spacix One29-Apr-08 5:20
Spacix One29-Apr-08 5:20 
AnswerRe: How to implement a 30-day expiration / key-based registration for software Pin
Zoltan Balazs28-Apr-08 20:15
Zoltan Balazs28-Apr-08 20:15 
GeneralRe: How to implement a 30-day expiration / key-based registration for software Pin
Spacix One29-Apr-08 5:23
Spacix One29-Apr-08 5:23 
GeneralRe: How to implement a 30-day expiration / key-based registration for software Pin
Zoltan Balazs29-Apr-08 6:36
Zoltan Balazs29-Apr-08 6:36 
GeneralRe: How to implement a 30-day expiration / key-based registration for software Pin
Spacix One29-Apr-08 7:39
Spacix One29-Apr-08 7:39 
It's simple to go around Sysinternal's filemon / process monitor

For this example if the application is registered write a empty file call "appreg.dat" to the application's run path, then add this code
DirectoryInfo di = new DirectoryInfo(Application.StartupPath);
FileInfo[] rgFiles = di.GetFiles("*.*");
foreach(FileInfo fi in rgFiles)
{
    if (fi.Name.ToLower() == "appreg.dat")
    {
        MessageBox.Show("This is the pro version!",this.Text);
    }
}

Run filemon/procmon and see the file IO results. Save the log and clear the contents, delete the file and rerun the test and compare the results....

The thing is you'd have to work backwards on this example to solve it, having only a unregistered copy wouldn't help much as the registered file doesn't ever exist. You can make this much more secure by reading multiple directories and looking for more than one file ect.. This still isn't the best method, though if combined with a few others it can become fairly safe (except for reflection) or decoding the CIL. You'd need Dotfuscator and other tools to make it more safe.

I didn't say this before because it is sort of off-topic. Yet, the fact remains it is impossible to make a trial which contains full functionality DIE and not be brought back to life. The best thing is to make your trial a different program with limited use and then distribute the full version after they pay. Then someone who pays can still leak the real app to the general public, so pick your poison. Smile | :)


-Spacix
All your skynet questions[^] belong to solved

QuestionCollection PropertyDescriptor binding to DataGridView - all rows show the same data Pin
Laoujin25-Apr-08 3:48
Laoujin25-Apr-08 3:48 
AnswerRe: Collection PropertyDescriptor binding to DataGridView - all rows show the same data Pin
gbarrett2-May-11 6:15
gbarrett2-May-11 6:15 
GeneralRe: Collection PropertyDescriptor binding to DataGridView - all rows show the same data Pin
Laoujin4-May-11 7:42
Laoujin4-May-11 7:42 
GeneralHaving trouble with default icon for desktop app Pin
Mark F.24-Apr-08 11:43
Mark F.24-Apr-08 11:43 
GeneralRe: Having trouble with default icon for desktop app Pin
Mike Dimmick25-Apr-08 3:04
Mike Dimmick25-Apr-08 3:04 
GeneralRe: Having trouble with default icon for desktop app Pin
Mark F.26-Apr-08 10:06
Mark F.26-Apr-08 10:06 
QuestionHow to remove an application's taskbar icon ? Pin
tamour24-Apr-08 10:52
tamour24-Apr-08 10:52 
GeneralRe: How to remove an application's taskbar icon ? Pin
Mark F.24-Apr-08 12:02
Mark F.24-Apr-08 12:02 
GeneralRe: How to remove an application's taskbar icon ? Pin
tamour27-Apr-08 0:13
tamour27-Apr-08 0:13 
QuestionProgressBar questions... Pin
jose.angel.calleja24-Apr-08 6:30
jose.angel.calleja24-Apr-08 6:30 
GeneralRe: ProgressBar questions... Pin
Kschuler24-Apr-08 7:41
Kschuler24-Apr-08 7:41 
GeneralInstall tool Pin
Heracles Choe24-Apr-08 4:23
Heracles Choe24-Apr-08 4:23 
GeneralRe: Install tool Pin
Ed.Poore24-Apr-08 8:47
Ed.Poore24-Apr-08 8:47 
QuestionHow to access first created form's control properties from another form? Pin
Sinan Akyuz24-Apr-08 1:49
Sinan Akyuz24-Apr-08 1:49 
GeneralRe: How to access first created form's control properties from another form? Pin
Kschuler24-Apr-08 7:54
Kschuler24-Apr-08 7:54 
AnswerRe: How to access first created form's control properties from another form? Pin
tamour24-Apr-08 10:55
tamour24-Apr-08 10:55 
QuestionText alignment problem [modified] Pin
storm202124-Apr-08 0:33
storm202124-Apr-08 0:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.