exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

0002.patch

0002.patch
Posted Sep 23, 1999

0002.patch

SHA-256 | bd6537757eecffb34cdd568cc29dfa220b2c242c8cb215deb79de66a2804e8c3

0002.patch

Change Mirror Download

From mrg@eterna.com.au Mon May 18 07:50:25 1998
Received: from eterna.com.au (splode.eterna.com.au [203.15.111.1])
by repsec.com (9.0.1a/7.7.4.nospam) with SMTP id HAA09130
for <bmartin@repsec.com>; Mon, 18 May 1998 07:50:21 -0700
Received: (qmail 14430 invoked from network); 18 May 1998 12:49:26 -0000
Received: from splode.eterna.com.au (HELO eterna.com.au) (203.15.111.1)
by splode.eterna.com.au with SMTP; 18 May 1998 12:49:26 -0000
To: Brian Martin <bmartin@repsec.com>
cc: Security Alert <security-alert@netbsd.org>
From: matthew green <mrg@eterna.com.au>
Subject: Re: Greetings..
In-reply-to: Your message of "Thu, 14 May 1998 02:07:01 MST."
<Pine.LNX.3.96.980514020612.20990H-100000@repsec.com>
Date: Mon, 18 May 1998 22:49:24 +1000
Message-ID: <14419.895495764@eterna.com.au>
Sender: mrg@eterna.com.au
Status: RO
X-Status: A

Index: uucpd.c
===================================================================
RCS file: /cvsroot/src/libexec/uucpd/uucpd.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -c -r1.8 -r1.9
*** uucpd.c 1998/02/13 23:15:16 1.8
- --- uucpd.c 1998/05/18 12:41:30 1.9
***************
*** 1,4 ****
! /* $NetBSD: uucpd.c,v 1.8 1998/02/13 23:15:16 tron Exp $ */

/*
* Copyright (c) 1985 The Regents of the University of California.
- --- 1,4 ----
! /* $NetBSD: uucpd.c,v 1.9 1998/05/18 12:41:30 mrg Exp $ */

/*
* Copyright (c) 1985 The Regents of the University of California.
***************
*** 43,49 ****
#if 0
static char sccsid[] = "from: @(#)uucpd.c 5.10 (Berkeley) 2/26/91";
#else
! __RCSID("$NetBSD: uucpd.c,v 1.8 1998/02/13 23:15:16 tron Exp $");
#endif
#endif /* not lint */

- --- 43,49 ----
#if 0
static char sccsid[] = "from: @(#)uucpd.c 5.10 (Berkeley) 2/26/91";
#else
! __RCSID("$NetBSD: uucpd.c,v 1.9 1998/05/18 12:41:30 mrg Exp $");
#endif
#endif /* not lint */

***************
*** 187,196 ****
user[8] = '\0';
pw = getpwnam(user);
if (pw == NULL) {
! fprintf(stderr, "user unknown\n");
! return;
! }
! if (strcmp(pw->pw_shell, _PATH_UUCICO)) {
fprintf(stderr, "Login incorrect.");
return;
}
- --- 187,193 ----
user[8] = '\0';
pw = getpwnam(user);
if (pw == NULL) {
! (void) crypt("dummy password", "PA"); /* must always crypt */
fprintf(stderr, "Login incorrect.");
return;
}
***************
*** 206,211 ****
- --- 203,212 ----
return;
}
}
+ if (strcmp(pw->pw_shell, _PATH_UUCICO)) {
+ fprintf(stderr, "Login incorrect.");
+ return;
+ }
alarm(0);
sprintf(Username, "USER=%s", user);
dologin(pw, sinp);
***************
*** 239,244 ****
- --- 240,246 ----
return(-1);
}

+ /* Note that SCPYN is only used on strings that may not be nul terminated */
#define SCPYN(a, b) strncpy(a, b, sizeof (a))

struct utmp utmp;
***************
*** 302,309 ****

time(&ll.ll_time);
lseek(f, pw->pw_uid * sizeof(struct lastlog), 0);
! strcpy(line, remotehost);
! SCPYN(ll.ll_line, line);
SCPYN(ll.ll_host, remotehost);
(void) write(f, (char *) &ll, sizeof ll);
(void) close(f);
- --- 304,310 ----

time(&ll.ll_time);
lseek(f, pw->pw_uid * sizeof(struct lastlog), 0);
! SCPYN(ll.ll_line, remotehost);
SCPYN(ll.ll_host, remotehost);
(void) write(f, (char *) &ll, sizeof ll);
(void) close(f);

-----BEGIN PGP SIGNATURE-----
Version: 2.6.1

iQCVAwUBNWAt5T5Ru2/4N2IFAQEV/wP+JnygFaca7/z/s6v2GhbtOjx4AQ/qy/O1
bZWk21Nm1Rv5FJ99RdVBQqkNbIAw4Ul7uY4puXuYHvjCzyNIzhdomdzV+8zbK6pr
q/sV9pqsnM1Luqr9c0KInuNsl4oVWOtvvYoqcauOFXWHlv/DX4lQY3kSXen9xked
fe4mWIZVo9M=
=e1Oo
-----END PGP SIGNATURE-----
Login or Register to add favorites

File Archive:

March 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close