home *** CD-ROM | disk | FTP | other *** search
-
-
- Password.exe (PSWD20.ZIP) Version 2.1 Released 1/15/1991
-
-
- Copyright 1990 by Arnold R. McGall Jr.
-
- All rights reserved. You are free to use this program
- and to distribute it at NO COST, unchanged, to anyone.
- You are not to sell this program or to include this
- program with a software package you intend to sell or
- otherwise distribute to a thrid party.
-
- I disclaim any responsibility for anything as a
- consequence of using this program.
-
- I will make the Pascal source code available to anyone
- for a fee of $25.00 and a signed non-disclosure agreement.
-
-
- Password.exe provides a simple method of installing password protection to
- any DOS or PC-MOS system. Users are assigned a user ID and a password.
- The user ID and the password may each contain a maximum of 35 characters.
- For simplicity sake I would suggest you limit the user ID and password to
- no more than eight or ten characters each.
-
- The assigned user ID and password are stored in a file you create with any
- ASCII text editor named PWD.DAT
-
- The User ID and password for each user is stored on one line in the PWD.DAT
- file using the following format:
-
- USERID/PASSWORD
- ARNIE/PASSWORD
- MARY/283ERLK
- ARM817234/KQ1299#LL1
-
- Please note that there are is only one MUST when entering the user ID and
- password data into this file.
-
- You must separate the user ID from the password with a forward
- slash just as shown in the above example.
-
- When password is executed it will prompt the user to input a user ID.
- Then the user is prompted to enter their password. User ID and password
- may be entered by the user in either upper or lower case. If they match the
- user's record in the pwd.dat file, the password program will display
- a message "User Logon Completed" and exit to DOS with a errorlevel
- code of 0. Also, a batch file named tmp.bat will be created in the default
- directory. The tmp.bat file contains one line: SET USER=xxxxxxxx (where
- xxxxxxxx = the user ID of the logged in user.) Use command line parameter
- /B to turn the tmp.bat batch file creation function ON. Default is NO
- tmp.bat batch file created.
-
- If no match is found the program will give the user another
- chance to enter the correct user ID and password. A maximum of four
- tries is allowed. After the fourth unsuccessful attemp the program exits
- to DOS with a errorlevel code of 1.
-
- The errorlevel codes which password issues can be used with batch files
- or other user written programs to make a decision on where to send the
- user if logon succeeds or if logon fails. An example batch file follows:
-
-
-
-
- REM signon.bat signon batch file
- REM Use @ in front of echo off if DOS 3.2 or higher
-
- echo off <---- Turn echoing of batch file
- commands off.
- break off <---- Prevent CTRL-break so user can't
- break out of password program.
- :start
- password.exe /B <---- Execute password.exe program.
- if not errorlevel 0 goto start <---- If logon not successful goto start.
- tmp.bat <---- Run the tmp.bat file to put
- user ID into environment.
-
- del tmp.bat <---- Delete the tmp.bat file.
-
- break on <---- Logon OK allow CTRL-break.
- echo on <---- Turn echoing back on.
- userMenu.exe <---- Execute a menu program.
- break off <---- Prevent CTRL-break.
- echo off <---- Turn echoing off
- goto start <---- Go back to start.
-
-
-
- Since the pwd.dat file is NOT encrypted, I would suggest that, at the
- very least, you make it a hidden file. Make sure you create the PWD.DAT
- file before running password.exe since the program does not check for
- the existence of the file.
-
- Command Line Switches:
-
- /x .... Where is the number of maximum logon tries allowed (1 to 9).
-
- To set the maximum number of logon tries enter a number from 1 to 9
- as a command line switch. i.e. /6/N/B
-
- /N .... No message displayed upon successful logon.
-
- If the command line parameter switch /N is entered when password is
- executed, the "User Logon Complete" message will be surpressed.
-
- /B .... Create TMP.BAT file for placing user ID in environment.
-
- If /B is entered the program will create a batch file TMP.BAT which
- conatins command to put user ID into environment.
-
- /T .... Display User ID and time/date of logon upon succesful logon.
-
- /E .... Enable password program to read ENCRYPTED PWD.DAT file. Default
- is program will NOT de-encrypt PWD.DAT file and expects to
- read ASCII characters in the text file.
-
-
- If no command line switches are entered the program defaults are:
-
- 1. "User Logon Complete" IS displayed.
- 2. NO TMP.BAT file is created.
- 3. Maximum logon tries is limited to four.
- 4. NO display of User ID and date/time of logon.
-
- The following are some examples of command switches:
-
- password /6 <------- Limits user to six logon attempts
- before program exits with DOS
- errorlevel set to 1.
-
- password /N <------- Results in NO message displayed
- upon succesfull logon.
-
- password <------- Results in "User Logon Complete"
- displayed, no TMP.BAT file
- creation upon successful logon.
- Default number of logon attempts
- permitted is default of four.
-
- password /B <------- TMP.BAT file will be created upon
- successful logon.
-
- password /E <------- Turns on de-encryption mode so
- the password program can read
- an encrypted PWD.DAT file.
-
- password /T <------- Upon successful logon the message
- "USER ID Logged On DOW, Month Day,
- Year HH:MM" is displayed.
-
- password /N/B <------- No logon message displayed and
- TMP.BAT batch file is created.
-
- password /6/N/B/T/E <------- Limits user to six logon attempts.
- No logon message is displayed,
- TMP.BAT file is created, the
- User ID, date and time is displayed,
- and de-encryption is turned ON to
- allow password program to de-encrypt
- the PWD.DAT file.
-
- Use with LOGON.EXE:
-
- You may want to use password.exe with my other program logon.exe. Logon.exe
- looks into the environment for the user ID string and appends a logon audit
- file with userid, current date and time of logon. Logoff.exe appends a logon
- audit file with user ID and time/date user logged off.
-
-
- Corrections/additions since version 1.0:
-
- Version 1.10
-
- 1. Corrected misspelled word logon in "User Logon Complete".
-
- 2. Added command line parameter switch /N capability to
- surpress screen messages upon successful logon.
-
- Version 1.11
-
- 1. Added capability for program to create a batch file named
- tmp.bat which contains command to put user ID into the
- environment.
-
- 2. Added command line parameter switch /B to tell password.exe
- to create tmp.bat batch file.
-
- Version 1.12
-
- 1. Corrected problem with command line paramter parseing.
-
- Version 1.13
-
- 1. Minor inline changes.
-
- Version 1.14
-
- 1. Added command line switch to set maximum number of logon
- tries will be allowed before program exits with DOS errorlevel
- 1 code.
-
- Version 1.15
-
- 1. Added code to display User ID date and time when logon is
- successful. This option is enabled by command switch /T.
-
- Version 2.0
-
- 1. Added routine to allow program to read encrypted form of PWD.DAT
- file is command line paramter /E is set.
-
- Version 2.1
-
- 1. Fixed bug in command line parameter parser.
-
-
-
-
-
- WARNING!!!!
- This password program DOES NOT prevent a user from re-booting the
- system with a floppy disk. Maybe a future version will provide a
- utility which will inhibit booting from a floppy disk (dangerous).
-
-
- I may be contacted via e-mail on:
-
- GEnie: A.McGall
- MCI: A.McGall
- Prodigy: BMPK99A
- Rusty & Eadie's BBS: Arnie McGall
-
-
-
-
-