home *** CD-ROM | disk | FTP | other *** search
- | Brief documentation on PWORD.ASM (also called PASSWRD5.ASM)
- by ... P. L. Olympia, Sysop SUGI SIG/M RBBS 301-963-5249
-
- Thanks to John R. Petrocelli for sending me this program whose
- original author I don't know. Thanks, Mr. Anonymous.
-
- (*** SEE UPDATE AT END OF TEXT 02/05/85 CHANGES J.R.P. ***)
- | 880919 Changes Toad Hall
-
- PURPOSE:
-
- |PASSWRD5.ASM is intended to produce a device driver (PASSWRD.SYS) that
- that you include in your CONFIG.SYS file. This driver will ask the user
- on machine startup to provide a password. The user is repeatedly asked
- for the password until the correct one is given. The user cannot get
- out of this with CTRL-C or CTRL-BREAK, but may warmboot with CTRL-ALT-DEL.
-
-
- INSTALLATION:
-
- | Edit the file PASSWRD5.ASM and change the password (set in the
- distribution program as 'plan') to something else that you can easily
- remember. I suggest that you do NOT use your wife's name as everyone
- else in the industry does that (don't know why but 45% of my BBS users
- do that for some reason). The line that needs changing is this:
-
- | PASSWORD_STORE DB 4 This is the # of chars in the password
- | db 'plan' This is the password
-
- If you don't use ANSI.SYS as a device driver, you may also want to
- | set the constant ANSI to 0. This will tell your compiler NOT to use
- | the messages with ANSI sequences at MSG_1, MSG_2, etc.
-
- Next, compile the program with ASM or MASM.
- | MASM passwrd5;
-
- Then LINK it: (ignore the "no stack" message)
- | LINK passwrd5;
-
- Then use EXE2BIN to convert it to a SYS file:
- | EXE2BIN passwrd5 passwrd.sys
- | (Or just use one of the public domain converters like EXE2COM,
- | which will automatically sense the ORG 0 and make a .SYS file.
- | EXE2COM passwrd5.exe passwrd.sys
-
- | Delete the excess files:
- | DEL passwrd5.obj
- | DEL passwrd5.exe
-
- Add this line to your CONFIG.SYS file:
- | DEVICE=passwrd.sys
-
- |If you use ANSI.SYS, it should come before PASSWRD.SYS.
-
- That's it. Reboot and watch the fun. Enjoy ...
-
-
- P.S. For all you budding programmers, the program is a handy tool for
- learning how to set up a device driver.
-
-
-
- *** UPDATE 02/05/85 JOHN R. PETROCELLI **************************
-
- The driver program has been revised to allow the user to "lock"
- the PC via a call into the device driver's code. The address of the
- call is placed at interupt 66h in the table of interupt vectors.
-
- An routine called "LOCK.COM" may be invoked to call the password
- routine. This will prompt the user for the password after disabling
- ctrl-break. The user must enter the correct password (same as on
- boot up) before he may access the PC.
-
- The reason that the call is made into the device driver's code
- is so that if a password change is necessary then only the device
- driver must be recompiled and relinked.
-
- | In order to prepare "LOCK.COM" ---------
-
- Compile the program:
- | MASM LOCK13;
-
- Then LINK it: (ignore the "no stack" message)
- | LINK LOCK13;
-
- Then use EXE2BIN to convert it to a .COM file:
- | EXE2BIN lock13 lock.com
- | (or use one of the public domain converters like EXE2COM:)
- | EXE2COM lock13.exe lock.com
-
-
- | Then delete the excess files:
- | DEL lock13.exe
- | DEL lock13.obj
-
- | v1.5 Notes: PASSWRD5.ARC now includes the compiled PASSWRD5.SYS
- | driver and LOCK13.COM enable/disable utility.
- | They have both been compiled with "flashy" ANSI display lines,
- | so you'll need to recompile if you don't want ANSI or NANSI drivers
- | installed in your system.
- |
- | PASSWRD5.SYS has a "default" password hardcoded ('plan').
- | You can change that with DEBUG or a binary file editor like FM.COM
- | Just look for the characters right after 'PWORD15' in the PASSWRD5.SYS
- | file (starting at byte 17). Password structure:
- | byte 17 - nr characters in password
- | byte 18..21 - password itself (case and spaces matter!)
- | Padded on the end with spaces (which don't count).
- | Remember, there's a maximum of 16 characters allowed in the password
- | itself, plus the initial length byte.
-
- I would appreciate any comments or suggestions. Send them to:
- JOHN R. PETROCLLI
- 3090 CARMAN RD.
- SCHENECTADY, N.Y. 12303
-
- v1.5, 19 Sep 88
- PASSWRD5.DOC - renamed, v1.5 update
- PASSWRD5.ASM - Cleaned up comments, renamed
- PASSWRD5.SYS - Compiled for ANSI.SYS display and 'plan' password
- LOCK13.ASM - Cleaned up comments, renamed
- LOCK13.COM - Compiled for ANSI.SYS display
-
- Toad Hall Changes, 7 Aug 88
- PASSWRD4.DOC - Indicated by "|" lines above.
- PASSWRD3.ASM - Basically the same, just tweaked.
- PASSWRD4.ASM - Extensive rewrite, tightening.
- LOCK.ASM - Just tweaked.
-
- All now compile with MASM 5.0 (but not using any of the fancy stuff).
- David Kirschbaum
- Toad Hall
- kirsch@braggvax.ARPA