home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / SYSOP / DOA-02.ZIP / DOA-02.MOD next >
Text File  |  1996-11-21  |  4KB  |  135 lines

  1. ╒═════════════════════════════════════════════════════════╕
  2. │ File Name: DOA-02.MOD                                   │
  3. │                                                         │
  4. │ Description: Adds a second password only you know.      │
  5. │                                                         │
  6. │ Version: WWIV 4.24                                      │
  7. │                                                         │
  8. │ Difficulty: █▒▒▒▒▒▒▒▒▒ (1/10)                           │
  9. │                                                         │
  10. │ Files Affected: BBSUTL1.C / MMENU.C                     │
  11. │                                                         │
  12. │ Author: John Doa of Area Fifty-One (410)-319-9245       │
  13. ╘═════════════════════════════════════════════════════════╛
  14.  
  15. ■ Extended Description ■
  16.  
  17. This is for extra security. Say for instance, you have
  18. a remote sysop that you dont trust fully, and you dont
  19. want to take away 255 and you dont want him in your
  20. DOS. I did this and gave the PW to people I could fully
  21. trust.
  22.  
  23. ╒═[Legend]═══════════╕
  24. │ = existing line    │
  25. │ + add this line    │
  26. │ - delete this line │
  27. │ * modify this line │
  28. ╘════════════════════╛
  29.  
  30.  
  31.  
  32. ──────────────────────────────────────────────────────────────────────────────
  33. ■ Step One ■
  34. ──────────────────────────────────────────────────────────────────────────────
  35.  
  36. Back up your source!!!
  37.  
  38.  
  39. ──────────────────────────────────────────────────────────────────────────────
  40. ■ Step Two ■
  41. ──────────────────────────────────────────────────────────────────────────────
  42.  
  43. Load BBSUTL1.C
  44.  
  45. Block copy this after 'void checkpw(void)'
  46.  
  47.  
  48. /* DOA-02.MOD */
  49. int secondpw(void)
  50. {
  51.   char s[81];
  52.  
  53.   nl();
  54.   prt(2,get_string(616));
  55.   echo=0;
  56.   input(s,20);
  57.   echo=1;
  58.   if (strcmp(s,("PASSWORD"))==0)  //Change this to the PW you want...
  59.     return(1);
  60.   else
  61.     return(0);
  62. }
  63. /* DOA-02.MOD */
  64.  
  65. Save BBSUTL1.C
  66. Close BBSUTL1.C
  67.  
  68.  
  69. ──────────────────────────────────────────────────────────────────────────────
  70. ■ Step Three ■
  71. ──────────────────────────────────────────────────────────────────────────────
  72.  
  73. Load MMENU.C
  74.  
  75. Modify the following...
  76.  
  77.  
  78. =   if ((strcmp(s,"CHAINEDIT")==0) || (strcmp(s,"CE")==0)) {
  79. +     if (secondpw()) {
  80. =       write_inst(INST_LOC_CHAINEDIT,0,INST_FLAGS_NONE);
  81. =       sysoplog(get_stringx(1,4));
  82. =       chainedit();
  83. +     }
  84. =   }
  85.  
  86. Lower...
  87.  
  88. =   if (strcmp(s,"DOS")==0) {
  89. *     if (secondpw()) {
  90. =       write_inst(INST_LOC_DOS,0,INST_FLAGS_NONE);
  91. =       sysoplog(get_stringx(1,6));
  92. =       extern_prog(getenv("COMSPEC"), EFLAG_SHRINK|EFLAG_COMIO|EFLAG_ABORT);
  93. =     }
  94. =   }
  95.  
  96. Lower...
  97.  
  98. =   if ((strcmp(s,"EDIT")==0)) {
  99. *     if (secondpw()) {
  100. =       write_inst(INST_LOC_TEDIT,0,INST_FLAGS_NONE);
  101. =       nl();
  102. =       prt(2,get_string(7));
  103. =       input(s1,50);
  104.  
  105. Lower... (into dlmainmenu)
  106.  
  107. =   if (strcmp(s,"DOS")==0) {
  108. *     if (secondpw()) {
  109. =       write_inst(INST_LOC_DOS,0,INST_FLAGS_NONE);
  110. =       sysoplog(get_stringx(1,6));
  111. =       extern_prog(getenv("COMSPEC"), EFLAG_SHRINK|EFLAG_COMIO|EFLAG_ABORT);
  112. =     }
  113. =   }
  114.  
  115.  
  116. Save MMENU.C
  117. Close MMENU.C
  118.  
  119.  
  120. ──────────────────────────────────────────────────────────────────────────────
  121. ■ Step Four ■
  122. ──────────────────────────────────────────────────────────────────────────────
  123.  
  124. MAKE FCNS
  125. then MAKE the BBS
  126.  
  127. Thats it!!! Now, to the best of my knowledge no one can get into your DOS
  128. without that password! You can go and replace other 'checkpw()'s with the
  129. 'secondpw()'s if you dont want anyone to say... read the system mail...
  130.  
  131. ──────────────────────────────────────────────────────────────────────────────
  132. ■ E.O.F. ■
  133. ──────────────────────────────────────────────────────────────────────────────
  134.  
  135.