home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / PRE412.ZIP / ELRIC1.MOD < prev    next >
Text File  |  1990-04-21  |  3KB  |  115 lines

  1. OK, here is a quick little mod I know you are all going to want to use. What
  2. it does is log the name and password someone tried on an illegal logon. For
  3. example, counting my dedicated line which I just got today, I have had 4
  4. phone numbers in the past 4 months. So sometimes I forget which number to use
  5. where. Oh well, this will let you know it was just a typo and not a
  6. hacking attempt....
  7.  
  8. Old sysop log entry:
  9. ### ILLEGAL LOGON for Lord Elric #1
  10.  
  11. New sysop log entry:
  12. ### ILLEGAL LOGON for Lord Elric #1  Tried password: BADPASS   tried ph: 9999
  13.  
  14.  
  15.  
  16. -------------------------------------------------------------
  17.  
  18. == existing line
  19. ++ add line
  20. =+ change line
  21.  
  22.  
  23.  
  24. /** this step is indeed a form step, much like a form letter **/
  25. 1. From DOS, in your dir where you keep your source....
  26.  
  27. PKZIP SOURCE *.c *.h
  28.  
  29. If you already have a source zip file, then
  30.  
  31. PKZIP -f source *.c *.h
  32.  
  33. This way you have a copy of everything before you screw it up with a bad mod.
  34. If you decide to take the mod out, it's as easy as
  35. PKUNZIP -x source
  36.  
  37. and hit Y to overwrite any files you changed.
  38.  
  39. /** we now resume our regularly scheduled mod with step 2.... **/
  40.  
  41. 2.   First, call up BBSUTL.C . Then, in void getuser, you need to add the
  42. char array s1, like this...
  43.  
  44. ==    void getuser()
  45. ==    {
  46. =+      char s[81],s2[81],s1[81];
  47. ==      int ok,count,net_only;
  48. ==      long l;
  49.  
  50.  
  51.  
  52. 3. Then, scan down a little bit, and add these four lines....
  53.  
  54. ==      outstr("PW: ");
  55. ==      echo=0;
  56. ==      input(s,8);
  57. ++      strcpy(s1,"  Tried password: ");
  58. ++      strcat(s1,s);
  59. ==      if (strcmp(s,thisuser.pw)!=0)
  60. ==        ok=0;
  61. ==      outstr("PH: ###-###-");
  62. ==      echo=0;
  63. ==      input(s,4);
  64. ++      strcat(s1,"   tried ph: ");
  65. ++      strcat(s1,s);
  66. ==      if (strcmp(s,&thisuser.phone[8])!=0) {
  67. ==        ok=0;
  68.  
  69.  
  70. 4. Now, just one more line to add....
  71.  
  72.  
  73. ==        pl("\7ILLEGAL LOGON\7");
  74. ==        nl();
  75. ==        strcpy(s,"### ILLEGAL LOGON for ");
  76. ==        strcat(s,nam(&thisuser,usernum));
  77. ++        strcat(s,s1);
  78. ==        sl1(0,s);
  79. ==        usernum=0;
  80.  
  81.  
  82. 4. Now, hit F2, to save this file before you muck it up any more....
  83.  
  84. ------------------------------------------------------------------------
  85.  
  86.  
  87. Also thanks to Defender for the idea for the mod, and for getting me into
  88. WWIV instead of RBBS!!!!!!
  89.  
  90.  
  91.  
  92. /** hey, it's the form info file **/
  93. As usual, I take no responsibility for hard drive crashes, death in the
  94. family, or end of the world as we know it resulting from this mod.
  95.  
  96. It's your fault if you didn't back up the files before you made the mod.
  97.  
  98. It's your fault if you don't back up your ENTIRE hard drive AT LEAST once
  99. a month.
  100.  
  101. It works on my system with Turbo C 2.0, WWIV 4.1, V20/8088, 640K/640EMS.
  102.  
  103. If you use this, the only payment I ask is that you send me a note through
  104. WWIVLink to 1@18251 saying you are using it...not too much to ask is it?
  105.  
  106. The Kingdom of Melnibone(LINK/NET)
  107. 812-877-3488  24 Hrs a day
  108. 3/12/2400/4800/9600/12,000/14,400 baud HST MNP5
  109. Auto-validation of WWIV sysops on first call
  110. Xmodem, Ymodem, DSZ Zmodem with retry, Ymodem-G
  111.  
  112. WWIV Link  1@18251
  113.  
  114. WWIV Net   1@8251
  115.