Defjam Productions DJP Command Password Checker v1.0 Coded by Drew Last update 5-19-94 Table of Contents: I. Introduction II. Installation III. Description of Files IV. Last words I. Introduction Use this PPE to put a password on any command you want! II. Installation Step 1. Make a directory for this ppe. For example: mkdir c:\pcb\ppe\cmdpwd Step 2. Unzip everything into that directory: pkunzip dj-cpc10 c:\pcb\ppe\cmdpwd Step 3. It's entirely up to you where you want to install this and on what commands. The most typical/logical place to install this would be in your CMD.LST area. So run PCBSETUP, select "B" for File Locations, then "B" again for Configuration Files, and then finally pick your CMD.LST file. Pick a command you want to substitute. For example, let's say you wanted to put a password on the "who" command. So you would have something like: Command Security PPE/MNU File or Keystroke Replacement ------- -------- ------------------------------------- WHO 20 C:\PCB\DJP\CMDPWD\CMDPWD.PPE WHO.CMD ^^^^^^^ ^^^^^^^ Notice this! Step 4. Now notice that CMDPWD.PPE takes ONE parameter, and one parameter only. This parameter specifies the config file corresponding to the command you want a password on. This config file must reside in the same directory as CMDPWD.PPE and contains three pieces of information. Line 1: exemption level (users above this level don't have to enter the password) Line 2: the password you want for the command (this will not be case-sensitive, so "pAsSwoRD" is the same thing as "password"). Passwords must be 50 characters or less. Line 3: the full path name of the ppe to execute, or the full pathname of a MNU file to display, or the PCBOARD builtin command So you will have three possibilities that your config will look like. (The differences are really in the second line.) For example: Possibility #1 -------------- Line 1: 100 Line 2: mypassword Line 3: !c:\pcb\ppe\newwho.ppe Possibility #2 -------------- Line 1: 50 Line 2: yourpassword Line 3: %c:\pcb\mnu\whomenu.mnu Possibility #3 -------------- Line 1: 75 Line 2: privatepassword Line 3: who A WORD OF CAUTION! ... If you already have a PPE that is substituted for a command, then you must put the full pathname of the PPE instead of the command itself. For instance, many people have a PPE for viewing node status instead of the regular "WHO". So in this case, "who" executes that ppe. If this is what you have, then you must use full pathname of that external ppe for node viewing instead of the regular "who" command. If the command/ppe requires additional parameters, this is the place to put them. Step 5. Edit the *.pwd files to your liking. All of these files are optional. III. Description of Files CMDPWD.DOC This file. CMDPWD.PPE This is the main ppe. It requires one parameter, which is the configuration file corresponding to the command you wish to place a password on. file_id.diz File description used for automated file describing on a bbs. TOP.PWD (optional) File shown to the user before they are prompted to enter the password. VALID.PWD (optional) File shown to user if they enter the correct password. This can be a regular ascii text file, an ansi graphics file, or a file with PCB color codes in it. INVALID.PWD (optional) Same as valid.pwd, but shown if the password is incorrect. PROMPT.PWD (optional) This file should contain only one line, and that is, the text shown to the user to prompt the user for the password. Miscellaneous command files I used the example of "WHO.CMD" as the configuration file for giving the "WHO" command a password. You can name them whatever you feel like for whichever commands you want. IV. Last words Another quick PPE written on the spur of the moment. The idea for this PPE was given to me by IpStar (UFT) so I decided to conjure it up real quick. I highly doubt there should be any bugs in this as this PPE is really simple in code and in design. But if you find any bugs, or just want to thank me, curse me, give me suggestions, whatever, you can reach me in these ways (in order of quickest read by me): 1. Internet email: drew@xinet.com 2. My board : The Silicon Phalanx Node #1: 510-795-0200 Node #2: 510-795-0400 3. On Infinity BBS (UFT WHQ). If you are reading this after August 31st, then my bbs will not be up at those numbers. I will have relocated to the Los Angeles area by then since I will be attending UCLA for my masters degree. As of this writing, running the bbs down there is uncertain and I'll do what I can to keep it going. Nevertheless, I can still be contacted in other ways... ---------- DISCLAIMER ---------- As of this date (5-29-94), I'm one of the newest PWA Members as a PPE programmer. This PPE however, is done for UFT, since I am now a member of UFT as well. Now one might think there is a conflict of interests here and I'd like to clear this up (read: covering my ass). If I think of an original PPE/PCB util to write (meaning, no one told or suggested that I do this for them or for their group), the program goes first to PWA. If a member of a group (ie: Dream Weaver from PWA or IpStar from UFT) that releases PPE's requests/suggests I do a certain programming task, then that particular program will go to them. If more than one person suggests the same thing, the program goes to whomever came first. All non-affiliated people who give me suggestions will have the program fall under the first category, as if I thought of it, and will go to PWA. Of course, I didn't think of it in this case and I will give credit where credit is due if it's really original. -------------- END DISCLAIMER -------------- Sorry for all the text, but I'm usually very wordy because I don't want anyone misinterpreting what I'm saying. :-) Gawd, I've spent more time writing these docs than writing the ppe... Last shots out to: Dream Weaver (PWA) : Thanks for giving me the chance! IpStar (UFT) : More ppe ideas? Bring em on! ReDMaN (ACiD) : Where are my ansi's??? :-) Vigilante (PWA) : You the man with the fresh ppe's right now.. Scimitar (PWA/WWC/UC): Give me a couple more weeks on the stats util. I'm headed off to Hawaii for a week! And greets go to all other programmers for their efforts. Other DJP ppe's: ---------------- DJ-MAT02.ZIP (version 0.2) --submitted to PWA DJP Matrix. The superior litebar matrix to use. Random matrix screens, random logon screens, random welcome screens. DJ-USR10.zip (version 1.0) --submitted to PWA DJP User Lister. The most configurable user lister around. Specify just about any of the vital statistics about a user (name, note, last called, areacode, # ul's, # dl's, etc.), pick the display color, and also choose the positioning. DJ-MR10.zip (version 1.0) --submitted to PWA DJP Menu Rotator. Display files/menus randomly to users and according to their user level! DJ-SLR10.ZIP (version 1.0) --submitted to UFT DJP Security Level Raiser. Allows a user to raise their security level according to a specific password. An unlimited different number of passwords and security levels can be specified. DJ-CPC10.ZIP (version 1.0) --submitted to UFT DJP Command Password Checker. This PPE. Peace, --Drew