PDA

View Full Version : crypto


goukilord10
12-29-2005, 01:42 PM
i have encrypted an executable with ams6
and i want the ams6 runtime to decrypt the executable and run it without writing anything to the user hard drive.
is it possible ?

Daniel TM
12-29-2005, 01:53 PM
i have encrypted an executable with ams6
and i want the ams6 runtime to decrypt the executable and run it without writing anything to the user hard drive.
is it possible ?
It's not possible. But what you can do is decrypt the executable file and delete the encrypted executable file right after you decrypt it.

goukilord10
12-29-2005, 02:15 PM
yet its still very possible to make a copy of the uncrypted executable while its running :(

Daniel TM
12-29-2005, 02:29 PM
Why do you want to decrypt the executable file without writing it to the Hard Drive? I'm guessing it's so that nobody edits a specific executable file and at the same time being able to run it. Maybe you made a program and don't want cracks to be made so that people can't use your program without paying. I don't know. Just give the code of your project and I'll see what I can do to help you out.

goukilord10
12-29-2005, 02:43 PM
yes i do not want users to have access to the uncrypted executable
because it simply does not have any kind of protection
it have been created in anark studio (a 3d engine) -as far i know its impossible to script even a basic protection in it-
all the protection (serial numbers + x days trial) have been scripted in ams
if any user get to the project executabe he can easly distribute it.

Daniel TM
12-29-2005, 03:29 PM
yes i do not want users to have access to the uncrypted executable
because it simply does not have any kind of protection
it have been created in anark studio (a 3d engine) -as far i know its impossible to script even a basic protection in it-
all the protection (serial numbers + x days trial) have been scripted in ams
if any user get to the project executabe he can easly distribute it.
I have a very good idea. I use it on my projects. I use the method that some hackers use to make the user think there is no virus or trojan on the users computer. The method I use is very good and if I tell you how to use this kind of protection everybody will use it and soon it won't be a secret anymore.
Sory but I can't help you.

Roboblue
12-29-2005, 04:14 PM
When you compile your executable, are all the dependancies embedded in the exe? So all you would need to run the program is the .exe?
Ok, so when you script the exe, can't you have it to look for an external file before it can open?
If so, then encrypt a file and have the exe look for the path and name of the unencrypted file.
When the exe is run from AMS (button On Click event), have AMS unencrypt the file to the temp path that you have the exe looking for.
Run the exe (with the wait for return option set to false), have AMS check to see if the app is running with File.IsInUse (on timer event).
When AMS detects the app running, then have it delete the unencrypted file in the same button action. The auxillary file will only be available as long as it takes to start the exe.
This way, even if they can get the exe and crack it, they will still have to break the encryption of the auxillary file.
And if you set the auxillary file's attribute to hidden file it may help. Or, if you can set the exe to look for the file name/path AND CRC value when you script it, they would have to have the file itself, and not just the name of the file.
You can create an AMS project that will encrypt any file ahead of time fairly easy. Or use the crypto plugin demo.

Daniel TM
12-29-2005, 04:22 PM
When you compile your executable, are all the dependancies embedded in the exe? So all you would need to run the program is the .exe?
Ok, so when you script the exe, can't you have it to look for an external file before it can open?
If so, then encrypt a file and have the exe look for the path and name of the unencrypted file.
When the exe is run from AMS (button On Click event), have AMS unencrypt the file to the temp path that you have the exe looking for.
Run the exe (with the wait for return option set to false), have AMS check to see if the app is running with File.IsInUse (on timer event).
When AMS detects the app running, then have it delete the unencrypted file in the same button action. The auxillary file will only be available as long as it takes to start the exe.
This way, even if they can get the exe and crack it, they will still have to break the encryption of the auxillary file.
And if you set the auxillary file's attribute to hidden file it may help. Or, if you can set the exe to look for the file name/path AND CRC value when you script it, they would have to have the file itself, and not just the name of the file.
You can create an AMS project that will encrypt any file ahead of time fairly easy. Or use the crypto plugin demo.
I don't know... I prefer the hacker's method.

Gabis
12-29-2005, 04:35 PM
Well, considering you said you werent going to help him, I prefer the method that actually answers his question as opposed to raising more. :)

That definitely is a fairly complicated scheme, but im sure it would work pretty effectively. Good idea Robo!

You could also follow in sony's footsteps and install an extremely poorly written rootkit that hides your files =p

Daniel TM
12-29-2005, 04:37 PM
Well, considering you said you werent going to help him, I prefer the method that actually answers his question as opposed to raising more. :)
Yeah. I agree

Intrigued
12-29-2005, 05:05 PM
You could also follow in sony's footsteps and install an extremely poorly written rootkit that hides your files =p

@Gabis

LMAO.

Bruce
12-29-2005, 07:07 PM
I have a very good idea. I use it on my projects. I use the method that some hackers use to make the user think there is no virus or trojan on the users computer. The method I use is very good and if I tell you how to use this kind of protection everybody will use it and soon it won't be a secret anymore.
Sory but I can't help you.

Why even bring it up???? :huh

Corey
12-29-2005, 07:15 PM
Daniel, please refrain from this type of posting. This is a software support forum. There are only three reasons to post in this forum, to help someone, to ask for help, or to offer something entertaining/informative. Anything outside of that is not preferred. TIA for your co-operation. :yes

goukilord10
01-03-2006, 06:52 PM
well thanks Roboblue pretty good protection.
but in my case it will be very hard to apply because the engine i use to create the exe (anark studio) is meant for web 3d so they are made to NOT have access to any file in the user computer even when compiles into exes
i think there should be a way to make it read the browser cookies but i dunno about it
thanks .

azmanar
01-04-2006, 01:45 AM
Robo,

Thanx for the tip !!!