Results 1 to 16 of 16

Thread: [RESOLVED] How Secure is EXE?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2007
    Posts
    84

    [RESOLVED] How Secure is EXE?

    Hi,

    I have written a small application.

    One is standard vb6 programs, the other is the same program but with MSComms enabled to allow transmission to third party application.

    The MSComms works if a boolean flag in the software is set to True.

    I set the flag to False for the demo version it then stops the MSComm code working in the application but everythng else works fine.

    How secure will this demo version be against someone being able to set flag back to true on the free demo version?

    Thanks in advance

    Daz.......
    Last edited by q582gmzhi; Oct 3rd, 2008 at 03:22 PM. Reason: REsolved

  2. #2
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: How Secure is EXE?

    Well any program is hackable, using programs people may download off the internet or a Hex Editor etc...

    To improve the security of your program you can make the flag dependent on multiple other things.

    For example the flag will only eqaul true if a registry key = 1 and another flag and integer eqauls a certain value, and etc...

    So if you were to do what i am saying then you would have to make your program check constantly if the things it is dependent on or all eqaul to 1 / true...

    Otherwise there are many ways to secure your application but there will always be a way to hack / manipulate it.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2007
    Posts
    84

    Re: How Secure is EXE?

    OK, thanks for the reply,

    Would it be better before I make the exe for the demo version to also disable 'MS Comm Control 6.0' as well as setting the the flag to false?

    Or could someone also get around this?

    Thanks in advance.

    Daz.......

  4. #4
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: How Secure is EXE?

    Quote Originally Posted by q582gmzhi
    Would it be better before I make the exe for the demo version to also disable 'MS Comm Control 6.0' as well as setting the the flag to false?
    If possible, comment out all comm-related code for the demo so that when you compile it then no trace of the code is in the demo...if it's not there it can't be hacked to make it work :-)

    If you plan to have updated demos (so if you make changes to the program, you want both the demo and full version to have the changes) you could probably write a small program to comment out the source code for you (and mark the lines you want commented out with something like 'commentout at the end of each line (so it wouldn't affect the full version when you compile it)

    Of course, if that's too complicated, find another way :-P
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  5. #5
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: How Secure is EXE?

    Instead of commenting code out, use a compiler directive instead.
    Code:
    #Const Demo = True
    'then in some sub or function:
    #If Not Demo Then
        'code
    #End If
    With the above approach the code within the #If block will not be compiled into your program if #Const Demo is set to True.

  6. #6
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: How Secure is EXE?

    It is not good enoug to comment out. Using vbdecompiler pro version, its possible to get almost all the codings.

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  7. #7
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: How Secure is EXE?

    Quote Originally Posted by Joacim Andersson
    Instead of commenting code out, use a compiler directive instead.
    Code:
    #Const Demo = True
    'then in some sub or function:
    #If Not Demo Then
        'code
    #End If
    With the above approach the code within the #If block will not be compiled into your program if #Const Demo is set to True.
    Very useful to know, Joacim...not something I knew was available :-)

    Question is, does it compile different based on the constant "Demo"? Or is there a way to change constant to false and make it work fully?

    If it can be modified, then commenting out is the only 100% secure way of doing what I suggested and keeping it demo-only

    Quote Originally Posted by akhileshbc
    It is not good enoug to comment out. Using vbdecompiler pro version, its possible to get almost all the codings.
    Wrong. If something is commented out it doesn't get compiled as part of the code...if not compiled, it can't be decompiled, it doesn't exist anywhere except in the source as commented code.
    Last edited by smUX; Sep 28th, 2008 at 01:01 PM.
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  8. #8
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: How Secure is EXE?

    Quote Originally Posted by smUX
    Question is, does it compile different based on the constant "Demo"? Or is there a way to change constant to false and make it work fully?
    Yes that's the whole idea of using compiler directives. It only compile the code that matches the directive. It's just as if you had commented out the code, but it's much easier to use since you only need to change the directive value and recompile it.

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Aug 2007
    Posts
    84

    Re: How Secure is EXE?

    OK, thanks for the advice.

    I think I will use the compiler directive on the piece of code that send the data via MSComm.

    Daz........

  10. #10
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: How Secure is EXE?

    Sorry, i was saying about the strings not comments.

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  11. #11
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: How Secure is EXE?

    Quote Originally Posted by akhileshbc
    Sorry, i was saying about the strings not comments.
    I think you need to listen to your own signature next time, and "think think think"...the point was that code would be commented out to force the compiler to only compile important stuff for the demo rather than making it a hackable demo that could become a full version...

    ...academic now though, Joacim's posted the solution and the poster's neglected to mark it resolved...well, that's just another person whose threads I won't reply to in future
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  12. #12

    Thread Starter
    Lively Member
    Join Date
    Aug 2007
    Posts
    84

    Re: How Secure is EXE?

    I am trying to get the compiler to work at present.

    Once I get it working I will mark as resolved.

    Thanks again.

    Daz....

  13. #13
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: How Secure is EXE?

    I think you need to listen to your own signature next time, and "think think think"...the point was that code would be commented out to force the compiler to only compile important stuff for the demo rather than making it a hackable demo that could become a full version...
    For making my softwares hack-proof, I searched on google for the solutions. I found a software named VB Anti Crack. When I used it, I found that, it is removing all the strings in my program with some arrays or something like that(I don't remember what it is ). So, when I checked my software using the VBDecompiler Pro 5.0, before and after applying the Anti Crack, I found that, after applying tha anti crack and decompiling the program, we won't see the strings.(eg.: if we used msgbox "Hai", after applying it, it will be somthing like this: msgbox ch(56)....)
    That's what I was saying about. Sorry for the misunderstanding. Again sorry for posting the above all posts.... Sorry.....

    -Akhilesh

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  14. #14
    PowerPoster
    Join Date
    May 2006
    Location
    Location, location!
    Posts
    2,673

    Re: How Secure is EXE?

    Akhil, I suggest you check the filesize before and after, because all it does is convert letters to numbers and that should result in a much larger filesize (although I don't know how the program works, so maybe not :-)), and worse still it wouldn't stop any *good* hacker who would just write a prog to convert the CH() into letters.

    If you want to efficiently encrypt your strings, do it manually...write an encryption function and encrypt your strings and set it to decrypt at runtime. Whenever I write code that needs securing against hacking, I use my own custom encryption function
    Last edited by smUX; Oct 1st, 2008 at 06:37 AM.
    Well, everyone else has been doing it :-)
    Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
    Expect more to come in future
    If I have helped you, RATE ME! :-)

    I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!

    And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.

  15. #15
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: How Secure is EXE?

    Thanks 4 the info

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  16. #16
    Lively Member
    Join Date
    Jul 2007
    Posts
    98

    Re: How Secure is EXE?

    hei, if your program is worth stealing, be sure that someone will steal it no matter how secure it is.
    So the main point is to ensure, that the effort to break the
    code is bigger than the value of the application.
    A configuration file which is encrypted does the trick allmost allways, the hardcoded solution is a little bit better, but means that you have two versions of the application.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width