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 >
Wrap
Text File
|
1996-11-21
|
4KB
|
135 lines
╒═════════════════════════════════════════════════════════╕
│ File Name: DOA-02.MOD │
│ │
│ Description: Adds a second password only you know. │
│ │
│ Version: WWIV 4.24 │
│ │
│ Difficulty: █▒▒▒▒▒▒▒▒▒ (1/10) │
│ │
│ Files Affected: BBSUTL1.C / MMENU.C │
│ │
│ Author: John Doa of Area Fifty-One (410)-319-9245 │
╘═════════════════════════════════════════════════════════╛
■ Extended Description ■
This is for extra security. Say for instance, you have
a remote sysop that you dont trust fully, and you dont
want to take away 255 and you dont want him in your
DOS. I did this and gave the PW to people I could fully
trust.
╒═[Legend]═══════════╕
│ = existing line │
│ + add this line │
│ - delete this line │
│ * modify this line │
╘════════════════════╛
──────────────────────────────────────────────────────────────────────────────
■ Step One ■
──────────────────────────────────────────────────────────────────────────────
Back up your source!!!
──────────────────────────────────────────────────────────────────────────────
■ Step Two ■
──────────────────────────────────────────────────────────────────────────────
Load BBSUTL1.C
Block copy this after 'void checkpw(void)'
/* DOA-02.MOD */
int secondpw(void)
{
char s[81];
nl();
prt(2,get_string(616));
echo=0;
input(s,20);
echo=1;
if (strcmp(s,("PASSWORD"))==0) //Change this to the PW you want...
return(1);
else
return(0);
}
/* DOA-02.MOD */
Save BBSUTL1.C
Close BBSUTL1.C
──────────────────────────────────────────────────────────────────────────────
■ Step Three ■
──────────────────────────────────────────────────────────────────────────────
Load MMENU.C
Modify the following...
= if ((strcmp(s,"CHAINEDIT")==0) || (strcmp(s,"CE")==0)) {
+ if (secondpw()) {
= write_inst(INST_LOC_CHAINEDIT,0,INST_FLAGS_NONE);
= sysoplog(get_stringx(1,4));
= chainedit();
+ }
= }
Lower...
= if (strcmp(s,"DOS")==0) {
* if (secondpw()) {
= write_inst(INST_LOC_DOS,0,INST_FLAGS_NONE);
= sysoplog(get_stringx(1,6));
= extern_prog(getenv("COMSPEC"), EFLAG_SHRINK|EFLAG_COMIO|EFLAG_ABORT);
= }
= }
Lower...
= if ((strcmp(s,"EDIT")==0)) {
* if (secondpw()) {
= write_inst(INST_LOC_TEDIT,0,INST_FLAGS_NONE);
= nl();
= prt(2,get_string(7));
= input(s1,50);
Lower... (into dlmainmenu)
= if (strcmp(s,"DOS")==0) {
* if (secondpw()) {
= write_inst(INST_LOC_DOS,0,INST_FLAGS_NONE);
= sysoplog(get_stringx(1,6));
= extern_prog(getenv("COMSPEC"), EFLAG_SHRINK|EFLAG_COMIO|EFLAG_ABORT);
= }
= }
Save MMENU.C
Close MMENU.C
──────────────────────────────────────────────────────────────────────────────
■ Step Four ■
──────────────────────────────────────────────────────────────────────────────
MAKE FCNS
then MAKE the BBS
Thats it!!! Now, to the best of my knowledge no one can get into your DOS
without that password! You can go and replace other 'checkpw()'s with the
'secondpw()'s if you dont want anyone to say... read the system mail...
──────────────────────────────────────────────────────────────────────────────
■ E.O.F. ■
──────────────────────────────────────────────────────────────────────────────