forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


I have other idea...only run so many times
Goto page 1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Thu Mar 27, 2003 5:14 pm    Post subject: I have other idea...only run so many times Reply with quote

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 Smile so if a person uses vdsinout for the encrytion this will make it hard to figure out what the "number" means Smile 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 Smile

I hope i explained it well


thanks

_________________
Have a nice day Smile
Back to top
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Thu Mar 27, 2003 6:20 pm    Post subject: part one Reply with quote

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 Smile
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Thu Mar 27, 2003 6:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Thu Mar 27, 2003 11:10 pm    Post subject: Reply with quote

if a person del it will write a NEW file BUT it will have 0 in it Smile 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 Smile

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 Smile

_________________
Have a nice day Smile
Back to top
View user's profile Send private message
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Thu Mar 27, 2003 11:21 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Thu Mar 27, 2003 11:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Thu Mar 27, 2003 11:34 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Mar 27, 2003 11:42 pm    Post subject: Reply with quote

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. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Thu Mar 27, 2003 11:45 pm    Post subject: Reply with quote

hummmm part i don't understand is how will BINFILE or anything for that mater write to a exe?? can you please explain Smile


thanks

_________________
Have a nice day Smile
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Thu Mar 27, 2003 11:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Thu Mar 27, 2003 11:54 pm    Post subject: hummmmm Reply with quote

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 Smile
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Mar 27, 2003 11:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Fri Mar 28, 2003 12:02 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
tim6389
Professional Member
Professional Member


Joined: 01 Aug 2002
Posts: 790

PostPosted: Fri Mar 28, 2003 12:03 am    Post subject: kkkk Reply with quote

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 Smile to write to a exe do you have to do it in binary level?


thanks

_________________
Have a nice day Smile
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Fri Mar 28, 2003 12:08 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group