?
Solved

vbs file security

Posted on 2005-02-25
8
Medium Priority
?
417 Views
Last Modified: 2008-03-10
I have a vb script file ('vbs') that creates a folder, copies files to this folder and then opens the copied Access database.  This file is invoked for first time users and if a new Access program exists.   Should I convert the 'vbs' file to a setup.exe file, for security reasons?  If so, how would I accomplish this?
0
Comment
Question by:inkineu
  • 4
  • 2
7 Comments
 
LVL 7

Expert Comment

by:Smallint
ID: 13407712
It depends on what you understand with security.

If we are talking about network security, all programs, scripts, users, are all under the same rules, at least in theory, if not is security hole, that someone has to patch, let's say Microsoft, HP, IBM, or whatever OS vendor.

Your database contains confidential data? If so, it must be password protected and encryted. Is what Access offers you.

But if we are talking on security on installation on a PC, really there's no differences between a setup program or an VBS that takes this database from a network share. Anyway final result is a mdb file in a directory.

Cheers
0
 
LVL 1

Author Comment

by:inkineu
ID: 13408281
Is it not harder for someone to tamper with an 'exe' file?  
0
 
LVL 7

Accepted Solution

by:
Smallint earned 260 total points
ID: 13408363
Well, final objective of someone who is looking into exe file or and mdb file is to get all data from database. If this database is password protected (of course with a strong password) and encrypted , doesn't matters if is alone or embedded inside an exe file. Exe format is well known and must follow fixed rules and doesn't add an extra security layer.  And remember if I have exe file i have only to install and go with mdb.....

Cheers
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 29

Assisted Solution

by:nffvrxqgrcfqvvc
nffvrxqgrcfqvvc earned 240 total points
ID: 13488442
use the screnc tool from microsoft to encrpypt the .vbs file.

example:

http://www.microsoft.com/downloads/details.aspx?FamilyId=E7877F67-C447-4873-B1B0-21F0626A6329&displaylang=en

download the file and install it then in your vbs file add the following lines to the beggining of the code.

'**Start Encode**

save your .vbs file

open msdos prompt or start/run/ cmd.exe
if you cd to your directory that contains the .vbs file you can just use the filename without the path
if you are not in the directory with your .vbs files then you must supply the full path to them.

type in :


screnc c:\yourfile.vbs c:\yourfile.vbe

OR

screnc yourfile.vbs yourfile.vbe <-----only if you CD to the directory containing the .vbs files

the following will encrypt your .vbs file to a .vbe file which acts just like a .vbs file but with the .vbe file extension and encryption

hope this helps

0
 
LVL 1

Author Comment

by:inkineu
ID: 13540526
Thanks for this info ... I will check this out in the next few days.
0
 
LVL 1

Author Comment

by:inkineu
ID: 13704177
I need a few more days to check this one out.  Just got back from vacation.
0
 
LVL 1

Author Comment

by:inkineu
ID: 13723269
Well, I decided to leave the 'vbs' file as is, no encrypting.  However, I will split the points as I may use the 'vbe' suggestion in the future, if I wanted to protect my code from being copied.  I will set the vbs file to read-only.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month12 days, 19 hours left to enroll

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question