|
Naveen.R wrote: To prevent this, add some encrytption to the file before you add it to the resource.
How does that prevent it?
|
|
|
|
|
A simple example. Suppose I cut first 10 bytes of exe and put at the end of the file. Then the exe will not be executable isnt't it? So after extracting I should roll back this changes, means i copy the last 10 bytes and put it in the begining. then execute the exe.
|
|
|
|
|
Well but in executing it, unless we run in from memory straight, the user could still copy the correct exe while it's running. Doesnt solve the problem?
|
|
|
|
|
I have foudn some applications like ie creates some temp file while browsing some sites( for ex if you took a video in the youtube, you can see a "temp" file created in the temporary internet folder.I noticed that that file cannot be renamed or copied or deleted. If we kill the IE, that files get deleted automatically. May be you implement the same technique. I dont know how IE does this. If you got any information, tell me also.
Other option is to make a loader by your self.May be very difficult.I shall inform you if i got any other solutions.
|
|
|
|
|
Ok man cool.
I'll look into that option.
Ya loader is very hard to do.. I wonder how the commercial exe protecter do it.
|
|
|
|
|
Rationalise wrote: I wonder how the commercial exe protecter do it.
hmm..a matter to investigate..
|
|
|
|
|
Got the way. Create the file using the flag FILE_FLAG_DELETE_ON_CLOSE
|
|
|
|
|
Hmm interesting. Only I'm using c# so cannot use CreateFile. File.Create does not offer such an option.
I'm looking into other methods of limiting access rights, so the file cannot be copied.
|
|
|
|
|
Rationalise wrote: other methods of limiting access rights
Limiting access will not do. Because under such cases, if your application is terminated using the taskmanger, all the access limits will be removed.
|
|
|
|
|
What we need is to prevent copying of the exe. But it seems that it cannot be done from what i read.
I've changed to researching on modifying the PE itself and injecting my own license checking codes. Shall get back to you if I have anything.
|
|
|
|
|
Naveen.R wrote: Suppose I cut first 10 bytes of exe and put at the end of the file.
that's what you call encryption?
Naveen.R wrote: add some encrytption
|
|
|
|
|
led mike wrote: that's what you call encryption?
At the Simplest.Also we just an example. Unless u know that i had moved the first 10 bytes, Will you be able to make it correct again?
|
|
|
|
|
Naveen.R wrote: At the Simplest
That's just "wrong". What you are prescribing is called "obfuscation" it is NOT "encryption".
|
|
|
|
|
led mike wrote: obfuscation
Thats some thing new for me. Thanks for pointing. Let me learn about it....
|
|
|
|
|
hi
do u know how can i make VC6 compiler not to include full paths of source files when compiling them generates errors or warnings? if so, i've not to scroll the output window each time i want to see the errors or warnings generated.
thx
|
|
|
|
|
ilostmyid2 wrote: not to include full paths
I don't think that's possible. What you can do is Ctrl-A/Ctrl-C the output window into your text editor for easier reading.
|
|
|
|
|
Try calling the directories shorter names?
Or even create a new drive letter that points deep into your directory tree, and use that instead.
eg: z:\ = \\iain\c\source\articles
just worked for me!
Iain.
|
|
|
|
|
[System::Web::Services::WebMethod]
BYTE PythagoreanTheorem(BYTE Num1, int Num2);
or
[System::Web::Services::WebMethod]
char* PythagoreanTheorem(char* Num1, int Num2);
how on types BYTE or char* error under :
"SByte cannot be serialized because it dose not have a parameterless constructor"
|
|
|
|
|
|
when im running my c api code for database connectivity..
im getting this error--
"Cannot open include file: 'mysql.h': No such file or directory"
i have tried to find the mysql.h header file in visual studio..im getting this file in include folder..
now how should i run this code...
|
|
|
|
|
hi
include a winsock.h above mysql.h
and give a path in the project menu ->setting ->link
library module
add this path of mysql
"C:\Program Files\MySQL\MySQL Server 5.0\lib\opt\libmysql.lib"
hi
|
|
|
|
|
|
i hav done all which u hav told me
but still im getting the same error...
plz help me
|
|
|
|
|
yar copy libmySQL.dll from bin folder in program files
and paste this in ur applications folders
hi
|
|
|
|
|
in vc++ thr in no such dll file...???????????
whr to find?
|
|
|
|