Results 1 to 8 of 8

Thread: Code Privacy and Security

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2006
    Posts
    557

    Code Privacy and Security

    I was doing the C/C++ thing a long time ago but I have been focusing on VB only for many of years now.
    For my current project, I am concerned about the privacy and security of my code.

    My question is about the Visual Studio debugger, and reverse engineering of a compiled EXE (or DLL or OCX)

    1- Comments throughout the code, are they visible? A main concern since comments contains sensitive information
    2- Sub's and Function names and their calling, visible ?
    3- Can the VB source code be reconstituted?

    I would appreciate insight or recommendations on the above. Thanks in advance to all.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Code Privacy and Security

    Moved to General Developer

  3. #3
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Code Privacy and Security

    VB6 and lower of VB.Net?
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2006
    Posts
    557

    Re: Code Privacy and Security

    Yep, VB6. I originally posted in the Classic VB forum, from where it was moved here.

  5. #5
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770

    Re: Code Privacy and Security

    1- Comments throughout the code, are they visible? A main concern since comments contains sensitive information

    No, the compiler ignores them

    2- Sub's and Function names and their calling, visible ?

    No, but if you are calling functions from outside libraries using API (such as calling GetTickCount from Kernel32) then yes, the function name is visible inside the binary.

    3- Can the VB source code be reconstituted?

    Reconstructed? Well, it is very difficult to take machine code and convert it to a high level language. It might be possable and im sure it has been done for lower level languages such as C.

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2006
    Posts
    557

    Re: Code Privacy and Security

    nkad...

    Thanks, that's very reassuring. Points 1 and 3 not a concern it seems.

    Maybe some clarification on point 2.... Actually I mentionned DLL and OCX, but for this first release (ready for distribution), everything is still contained in a single EXE. Following that and what you just said, I assume :

    a) my native VB functions such as : EncryptXYZ are hardly visible ?
    b) all my API registry stuff is visible and possibly arguments passed along ?

    Correct?

    Other comments welcomed.

  7. #7
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770

    Re: Code Privacy and Security

    Quote Originally Posted by Navion
    nkad...

    Thanks, that's very reassuring. Points 1 and 3 not a concern it seems.

    Maybe some clarification on point 2.... Actually I mentionned DLL and OCX, but for this first release (ready for distribution), everything is still contained in a single EXE. Following that and what you just said, I assume :

    a) my native VB functions such as : EncryptXYZ are hardly visible ?
    b) all my API registry stuff is visible and possibly arguments passed along ?

    Correct?

    Other comments welcomed.
    Correct, your native vbfunction names wont show up in the compiled executable. Now, someone can correct me if I'm wrong on this second part. Let's say your program calls EncryptXYZ, because EncryptXYZ is apart of an external library the function name is saved in the imports table of your executable along with other information that will be used to access the function in that library. The actuall names of the arguments are not saved.

    Now, there are programs called Obfuscators that will hide the details of the import table, thereby hiding procedure names to libraries, etc.

    Hope this helps

  8. #8

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2006
    Posts
    557

    Re: Code Privacy and Security

    Yes this does help, a lot... Thanks

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