| View previous topic :: View next topic |
| Author |
Message |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Mar 27, 2003 5:14 pm Post subject: I have other idea...only run so many times |
|
|
hello all
here is my other idea i'am working on making it so a program will only run so many times...this is set by the s/n the keygen makes so for a example the key gen would added the number of times (to the string) you want the program to run...( when the program gets to 0 times left it won't run, of course this can be reset with a new s/n) then the code that is in the "main" program will subtract the numbers in the string and the answer left is how many times it can run so if a person uses vdsinout for the encrytion this will make it hard to figure out what the "number" means only part that i don't like is that i will have to store this "number" to a file so the program can read it...i hope by using vdsinout this will make it harder for people to figure it out...program will have to make 2 ini type of files...if my thinking is right on this...
i will post code when i get it working...
any feedback on this idea..please post
I hope i explained it well
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Mar 27, 2003 6:20 pm Post subject: part one |
|
|
here is part of the math for it (the encrytion part). only thing that is left is to have it subtract 1 each time the program is run
| Code: |
EXTERNAL @WINDIR(S)\vdsinout.dll
rem this would be the number of times you would want the program to run
%a = 5
rem this would add 1000 to the number above. this is for to make it harder to figure out
%F = @FADD(%A,1000)
rem this would encryted the number and this number would be stored to a ini type of file
%k = @io(ENCSTR,%F,test)
rem this is the "encryted number"
info %k
rem this would decyted the string
%d = @io(DECSTR,%k,test)
rem this would subtracted the 1000 that we added above
%c = @DIFF(%d,1000)
rem this would be the "normal" number the program can read
info %C
|
_________________ Have a nice day  |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Thu Mar 27, 2003 6:35 pm Post subject: |
|
|
A few things to think about.
-If you use a file to store the data in(same basically applies to registry strings also):
--If you save one line of data in a file most people would probably realize that it's there to keep track of how many times the program was ran.
--What you will do if the user deletes the file.
--Hiding the file or putting it in a directory where you think it's safe won't work for very long. Anyone looking to disable it would watch the files your program adds to their system.
-If you are able to compile, writing the encrypted data to the end of your exe should be alright, once again it could be found and deleted though.
I believe that's all of my 2¢. If I think of anything else I will post back. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Mar 27, 2003 11:10 pm Post subject: |
|
|
if a person del it will write a NEW file BUT it will have 0 in it and if i make the string big enought it (i think) will be hard to tell what it is i was thinking of having it make 2 ini files to
this thought "-If you are able to compile, writing the encrypted data to the end of your exe should be alright, once again it could be found and deleted though." what you mean at the end???
thanks
please keep posting more feedback  _________________ Have a nice day  |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Mar 27, 2003 11:21 pm Post subject: |
|
|
here is a expample of the code to make a "new" file if ini is del
| Code: |
INIFILE OPEN,@WINDIR(S)\whatever.ini
%%tim = @INIREAD(whatever,whatever)
if %%tim
%%tim6389 = nothting
else
%%whatever = 2134343959
INIFILE OPEN,@WINDIR(S)\whatever.ini
INIFILE WRITE,whatever,whatever,2134343959
end
|
NOTE: this line: %%whatever = 2134343959 this would be a key when cal by the program would = 0 _________________ Have a nice day  |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Thu Mar 27, 2003 11:30 pm Post subject: |
|
|
Writing to the end of the exe means just that. Just like opening it in Notepad, scrolling to the end and typing something in.
I'm not sure you can do it anyway as vdsinout won't write to a file that is already open. This could corrupt the exe also, so unless someone has a foolproof way of doing it, it might not be a good idea. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Mar 27, 2003 11:34 pm Post subject: |
|
|
| SnarlingSheep wrote: | Writing to the end of the exe means just that. Just like opening it in Notepad, scrolling to the end and typing something in.
I'm not sure you can do it anyway as vdsinout won't write to a file that is already open. This could corrupt the exe also, so unless someone has a foolproof way of doing it, it might not be a good idea. |
hummm yea i would like to see example of that ( without vdsinout cuase like you might not work) but i kind of follow what you mean not for sure tho could you post a explame without vdsinout so i can see what you mean?
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Mar 27, 2003 11:42 pm Post subject: |
|
|
SnarlingSheep said it probably wouldn't work with VDSINOUT but you might
be able to use BINFILE if you use VDS 4 or above for this job.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Mar 27, 2003 11:45 pm Post subject: |
|
|
hummmm part i don't understand is how will BINFILE or anything for that mater write to a exe?? can you please explain
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Thu Mar 27, 2003 11:49 pm Post subject: |
|
|
Well they can write to an EXE just like any other file.
Go into Notepad and open a file, where it says Files of type, select All Files, then find an EXE file and open it. I don't suggest writing to it or saving it..but you can.
Problem is, you can't write to your EXE from your EXE..because it's in use.
So basically scrap that idea. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Mar 27, 2003 11:54 pm Post subject: hummmmm |
|
|
hummm i like that idea...couldn't a person make other exe just for that? meaning have 2 exe one a main program and one that holds the info that is needed for the main program? cuase havimng it in exe form would be harder for people to firgure it out...i would think
what you think?
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Mar 27, 2003 11:58 pm Post subject: |
|
|
I think it would be better to append the data to the current EXE. A second
EXE would simply complicate things further.
To tell you the truth I wouldn't go ahead with this idea. I would use a
combination of the registry, encrypted files, etc. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Fri Mar 28, 2003 12:02 am Post subject: |
|
|
| FreezingFire wrote: | | I think it would be better to append the data to the current EXE. |
I can't make this work..can you? Since the EXE is in use I can't seem to write to it.
But, I agree, unless you can append to the current EXE cleanly, I wouldn't go this route. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Mar 28, 2003 12:03 am Post subject: kkkk |
|
|
FreezingFire- i see what you mean in which case i will go that way BUT i still have to play with this exe idea now...lol why will cuase i have to see how this works....BUT you are right tho
i did however open exe in notepad it was a card game exe..and yes i back-up the exe first just in case to write to a exe do you have to do it in binary level?
thanks _________________ Have a nice day  |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Fri Mar 28, 2003 12:08 am Post subject: |
|
|
Although this goes into more detail than you need. It's some good info.
http://community.borland.com/article/0,1410,27979,00.html
If you write to the right position of the EXE you should be able to write Text or Binary without corruption. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
|