what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

res.c.diff

res.c.diff
Posted Apr 9, 2001
Authored by Ph3wl

Patch to the UnrealIRCD v3.1.1 which fixes a bug allowing users to dump the DNS cache, defeating hostname masking.

tags | patch
systems | unix
SHA-256 | 0e08b97aacda2e44609a1dbf551355b759789472323a04cfdcfa978c6f898374

res.c.diff

Change Mirror Download
*** res.c       Thu Apr  5 07:40:08 2001
--- res.c Thu Apr 5 07:44:13 2001
***************
*** 1579,1584 ****
--- 1579,1600 ----
aCache *cp;
int i;

+ /* only let opers spew the dns cache, with a bit of initiative
+ a user could match partial hostnames/ips of a user with the
+ list from here and their masked host.
+
+ thanks for FiRE for pointing this bug/error/feature out :D
+ -- ph3wl 4/4/01
+ */
+ if (!IsServer(sptr) && !IsOper(sptr) && !IsMe(sptr)) {
+ sendto_one(sptr, err_str(ERR_NOPRIVILEGES), me.name, parv[0]);
+ return 0;
+ }
+
if (parv[1] && *parv[1] == 'l') {
for(cp = cachetop; cp; cp = cp->list_next)
{
Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    35 Files
  • 13
    Sep 13th
    0 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    0 Files
  • 17
    Sep 17th
    0 Files
  • 18
    Sep 18th
    0 Files
  • 19
    Sep 19th
    0 Files
  • 20
    Sep 20th
    0 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close