home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / alt / msdos / programm / 2219 < prev    next >
Encoding:
Text File  |  1992-08-20  |  1.9 KB  |  43 lines

  1. Newsgroups: alt.msdos.programmer
  2. Path: sparky!uunet!mcsun!sunic!aun.uninett.no!ugle.unit.no!solan1.solan.unit.no!robert
  3. From: robert@solan.unit.no (Robert Schmidt)
  4. Subject: Writing a boot password proggie, need tips
  5. Message-ID: <1992Aug20.142845.975@ugle.unit.no>
  6. Sender: news@ugle.unit.no (NetNews Administrator)
  7. Organization: Norwegian Institute of Technology
  8. Date: Thu, 20 Aug 92 14:28:45 GMT
  9. Lines: 32
  10.  
  11.  
  12. I'm trying to make a boot sector program that requests a password from the
  13. user, and refuses to boot if the correct password is not corrected.
  14.  
  15. I've figured out this:
  16. -  I'll save the original boot sector at the last physical sector on the
  17.    disk.  Caveat: When I looked at this sector with DiskEdit I noticed
  18.    some 'debris' from an earlier FORM-virus attack.  How can I pick a safe
  19.    sector?  I thought about marking an unused sector bad, and use that...
  20.    thoughts?
  21. -  My boot program will relocate itself to 07c0h:0200h, that is, making
  22.    room for loading the original boot sector, which must be put at
  23.    07c0h:0000h.  Any hints on how to accomplish this?
  24. -  I also want the harddisk to be unaccessible when the PC is booted with
  25.    a DOS diskette in drive A:.  I guess I will have to modify one/some of
  26.    the values in the drive parameter table at the start of the boot sector
  27.    program, but which value(s)?
  28. -  When a boot has been successfully accomplished on C:, I need to put
  29.    back the 'bad values' sometime, to make the HD unaccessible at next
  30.    boot-up.  A device driver in CONFIG.SYS sounds good enough.  Ideas?
  31.  
  32. If I ever finish this, I'll probably put it in the public domain, for you
  33. guys to pick from ftp's and bbs'es.
  34.  
  35. Please reply via e-mail, it's easy to miss posts in News.
  36.  
  37. -- 
  38. Cheers from Robert Schmidt, aka Ztiff Zox, aka Buuud (IRC).  E-mail to 
  39. robert@solan.unit.no, snail-mail to Stud.techn. Robert Schmidt, Stud.post 170,
  40. Norwegian Institute of Technology, 7034 Trondheim, NORWAY          
  41.  
  42. Warlords: Now do you think my .sig is boring enough?
  43.