Click here to Skip to main content
15,920,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can and what type of dll is created by MFC to use in any language? Pin
Richard MacCutchan30-Jun-11 5:57
mveRichard MacCutchan30-Jun-11 5:57 
QuestionCEdit Control property in a SDI- Split Window [modified] Pin
AneeshValeri29-Jun-11 18:23
AneeshValeri29-Jun-11 18:23 
AnswerRe: CEdit Control property in a SDI- Split Window Pin
AneeshValeri29-Jun-11 19:00
AneeshValeri29-Jun-11 19:00 
QuestionWhat is the unique in any PC? Pin
Le@rner29-Jun-11 1:21
Le@rner29-Jun-11 1:21 
AnswerRe: What is the unique in any PC? Pin
enhzflep29-Jun-11 1:43
enhzflep29-Jun-11 1:43 
AnswerRe: What is the unique in any PC? Pin
Albert Holguin29-Jun-11 4:28
professionalAlbert Holguin29-Jun-11 4:28 
GeneralRe: What is the unique in any PC? Pin
Le@rner29-Jun-11 21:50
Le@rner29-Jun-11 21:50 
GeneralRe: What is the unique in any PC? Pin
enhzflep29-Jun-11 23:31
enhzflep29-Jun-11 23:31 
Again, NO this is not the correct to implement a hardware ID scheme.

As in to say - you _cannot_ use the just the results of this single instruction to effectively ID a processor.

When I use the following code, and step through it an a debugger - you know what I get?
Main Proc
	mov eax, 3
	cpuid
	RET
Main EndP


Absolutely nothing!
EAX = 0x00000000
EBX = 0x00000000
EDX = 0x00000000


And you're right - the MACID reported by windows can be changed, as can the Volume Serial Number of a harddisk. These aren't the figures traditionally queried.
The figures are the ones reported by hardware itself, not by the operating system between you and the hardware.

Alias Maya, since Autodesk Maya - used to implement a simple MACID/computed hash-value scheme. It was a joke and was defeated trivially.

Other schemes, SECUROM or SAFEDISK (I forget which) would actually write data to a certain sector on the hard-disk. This data was persistant, remaining after a full format of the system!!! You could only kill that nasty critter by manually overwriting it in a editor that supported raw disk-sectors.



If I may respectfully make a suggestion - there are many, many, m a n y protection schemes already available - many for free download. These have years of refinement and intrusion prevention already built in. I'd hate to see (yet another) overestimation on the part of the coder that he/she has the next-best-thing in terms of copyright protection.

Perhaps I could put this another way - I used to surf Softpedia looking for small new apps to try to break into. Invariably, those that proved the hardest to penetrate were those that used commercial protectors - and ones that used virtual machines and opcode/algorithm obfuscation.
PEiD, OllyDbg, ExeDecryptor, exeUnpacker and a loooooooot of hours playing the game have led me to believe that you're probably far better off using a shareware/freeware/cheapware solution than anything you can come up yourself.

Think of it this way - you need to provide a perfect 100% continuous fence of protection around your app. The cracker on the other hand is only required to find a single-hole to get in.
A couple of cases in point:

1 DraftIt - cad program. Coded in C#, unobfuscated assembly with the key algorithm plainly viewable with .NET Reflector.
Price: £99
Time required for correct-serial number entry: 1 hour
Method: copy and paste code from serial number checking algo into a new program

2. Motocalc - RC power system calculator, Delphi
Price: $40
Time required to enter any serial and still gain access: 12 minutes
Method: Change a single instruction so that a branch is no longer taken.


Try having a look at VirtualProtect, Armadillo, AsPack and anything else you can get your hands on.



Good luck keeping the riff-raff out!! Laugh | :laugh:
GeneralRe: What is the unique in any PC? Pin
Le@rner29-Jun-11 23:38
Le@rner29-Jun-11 23:38 
GeneralRe: What is the unique in any PC? Pin
enhzflep30-Jun-11 0:02
enhzflep30-Jun-11 0:02 
GeneralRe: What is the unique in any PC? [modified] Pin
Le@rner30-Jun-11 1:14
Le@rner30-Jun-11 1:14 
GeneralRe: What is the unique in any PC? Pin
Albert Holguin30-Jun-11 4:09
professionalAlbert Holguin30-Jun-11 4:09 
GeneralRe: What is the unique in any PC? [modified] Pin
enhzflep30-Jun-11 5:34
enhzflep30-Jun-11 5:34 
GeneralRe: What is the unique in any PC? Pin
Albert Holguin30-Jun-11 4:06
professionalAlbert Holguin30-Jun-11 4:06 
GeneralRe: What is the unique in any PC? Pin
Le@rner30-Jun-11 19:19
Le@rner30-Jun-11 19:19 
GeneralRe: What is the unique in any PC? Pin
enhzflep30-Jun-11 19:33
enhzflep30-Jun-11 19:33 
GeneralRe: What is the unique in any PC? Pin
Le@rner30-Jun-11 19:48
Le@rner30-Jun-11 19:48 
GeneralRe: What is the unique in any PC? Pin
enhzflep30-Jun-11 20:21
enhzflep30-Jun-11 20:21 
GeneralRe: What is the unique in any PC? Pin
Le@rner30-Jun-11 23:30
Le@rner30-Jun-11 23:30 
GeneralRe: What is the unique in any PC? Pin
enhzflep30-Jun-11 23:51
enhzflep30-Jun-11 23:51 
AnswerRe: What is the unique in any PC? Pin
Albert Holguin1-Jul-11 3:40
professionalAlbert Holguin1-Jul-11 3:40 
QuestionWhat is Name of my process Pin
Pranit Kothari28-Jun-11 20:58
Pranit Kothari28-Jun-11 20:58 
AnswerRe: What is Name of my process Pin
Randor 29-Jun-11 1:10
professional Randor 29-Jun-11 1:10 
AnswerRe: What is Name of my process Pin
Abhi Lahare29-Jun-11 10:12
Abhi Lahare29-Jun-11 10:12 
AnswerRe: What is Name of my process Pin
Stefan_Lang30-Jun-11 1:49
Stefan_Lang30-Jun-11 1:49 

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.