NEED HELP DISABLING QB COMMANDS:IMMEDIATE REP. NEE 
Author Message
 NEED HELP DISABLING QB COMMANDS:IMMEDIATE REP. NEE

-> I  am the systems analyst for our school system..In our Qbasic class we have
-> been having security troubles because of the commands "kill", "name", and
-> "shell"
-> is there anyway to disable these commands????
Yup, Since you are obviously running off of a menu system, make .Bat file

CD\QBasic                   <--Change to the right Directory
SET OLDSPEC=%COMSPEC%     <--Set a Enviroment Variable to the COMSPEC variable
SET COMSPEC=              <--Erases the Comspec variable
QBasic                    <--Starts Qbasic
SET COMSPEC=%OLDSPEC%     <--Resets COMSPEC to it's old setting
SET OLDSPEC=              <--Gets rid of the temp var

The COMSPEC enviroment varable is the varible that tells DOS where to find the
command interperator (COMMAND.COM), By setting it to nothing, no programs will
beable to load COMMAND.COM, thus any attempt to do a "Drop to Dos" would be
useless (This method can also be used for programs such as Micro$oft Works,
Word Perfect, or any other program that has a Drop To Dos option in it.)
        As For your kill/name problem, there are two solutions. If you are
running under a network (Such as novell), Try setting the access control flags
to just Read/File scan. If you are running under DOS, use the ATTRIB command to
set the read only attribute I.e "Attrib Filename.ext +R".

Hope this helps..

Steven Smith



Sat, 13 Sep 1997 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. NEED HELP DISABLING QB COMMANDS:IMMEDIATE REP. NEEDED

2. QB 4.5 SHELL command in large programme help needed

3. Ken - Need immediate help..

4. Immediate help needed if possible

5. Nee help with connecting ADO

6. Execute an immediate command.

7. Need help in reading the joysticks in QB..

8. need help on a QB graphics routine.

9. * Need help with QB 4.0

10. I need help with arrays QB

11. Need help adding QC functions to QB library.

12. QB Comm help needed

 

 
Powered by phpBB® Forum Software