Remove security/nbaudit

No upstream, just a mirror left, no update since import in 1998, noone
else packages it.

We have net/nbtscan as a more recent alternative that is packaged by all
the major OSes as well;  it has a dead homepage and lacks behind in
updates, but still seems in better shape.

OK sthen
This commit is contained in:
kn 2022-11-14 15:08:09 +00:00
parent 2054e57348
commit cf8bcd8a3f
12 changed files with 2 additions and 181 deletions

View File

@ -1,7 +1,7 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
# $OpenBSD: Quirks.pm,v 1.1455 2022/11/14 09:08:11 kn Exp $
# $OpenBSD: Quirks.pm,v 1.1456 2022/11/14 15:08:09 kn Exp $
#
# Copyright (c) 2009 Marc Espie <espie@openbsd.org>
#
@ -1742,6 +1742,7 @@ setup_obsolete_reason(
50 => 'sslScanner',
5 => 'softhsm',
1 => 'chntpw',
5 => 'nbaudit',
);
# though it's not yet used, these should be pkgnames, so that eventually

View File

@ -128,7 +128,6 @@
SUBDIR += mcrypt
SUBDIR += mhash
SUBDIR += minisign
SUBDIR += nbaudit
SUBDIR += netpgp
SUBDIR += nfsshell
SUBDIR += nikto

View File

@ -1,22 +0,0 @@
COMMENT= NetBIOS Auditing Tool / Security Kit
DISTNAME= nat10
PKGNAME= nbaudit-1.0
REVISION = 2
CATEGORIES= security net
MASTER_SITES= ${MASTER_SITE_PACKETSTORM:=NT/scanners/}
FIX_EXTRACT_PERMISSIONS=Yes
PERMIT_PACKAGE= Yes
MAKE_FLAGS= GUESTACCOUNT=_nbaudit
WANTLIB += c
NO_TEST= Yes
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/nat ${PREFIX}/bin/nbaudit
@${INSTALL_MAN} ${WRKSRC}/nat.1 ${PREFIX}/man/man1/nbaudit.1
.include <bsd.port.mk>

View File

@ -1,2 +0,0 @@
SHA256 (nat10.tar.gz) = N4v5iyIFktrPbIUPCUtx75sY2ZHVNubwk4wQwDA7uyI=
SIZE (nat10.tar.gz) = 111835

View File

@ -1,31 +0,0 @@
--- Makefile.orig Mon Feb 17 03:18:04 1997
+++ Makefile Fri Jun 19 11:17:08 2009
@@ -2,7 +2,7 @@
# Makefile for Samba SMB client/server for unix
# Copyright Andrew Tridgell 1992,1993,1994
###########################################################################
-CC = gcc
+#CC = gcc
# set this to the default group you want your machine to appear in
# for browsing. This can also be set in nmbd (see nmbd(8))
@@ -147,8 +147,8 @@ GUESTACCOUNT = nobody
#
# This is for OpenBSD.
#
-# FLAGSM = -DOPENBSD -DSHADOW_PWD
-# LIBSM = -lcrypt
+FLAGSM = -DOPENBSD -DSHADOW_PWD
+LIBSM =
# This is for NetBSD. Add -DNETBSD_1_0 if you are using 1.0
# contributed by noses@oink.rhein.de
@@ -366,7 +366,7 @@ SRCS = nat.c client.c util.c system.c nmb.c charset.c
OBJS = nat.o client.o util.o system.o nmb.o charset.o parse_ip.o
CFLAGS1 = -DSTEPPING -DSCANNER -DVERBOSE
CFLAGS2 = -DWORKGROUP=\"$(WORKGROUP)\" -DGUEST_ACCOUNT=\"$(GUESTACCOUNT)\"
-CFLAGS = $(CFLAGS1) $(CFLAGS2) $(FLAGSM)
+CFLAGS += $(CFLAGS1) $(CFLAGS2) $(FLAGSM)
LIBS = $(LIBSM)
all : nat

View File

@ -1,26 +0,0 @@
--- client.c.orig Tue Jul 11 16:01:35 2000
+++ client.c Tue Jul 11 16:03:20 2000
@@ -3612,8 +3612,9 @@ phase_3: /* smb session setup/auth */
done = 0;
username[0] = '\0';
while (!done) {
- if (!userfd || !passfd)
- uppair();
+ if (!userfd || !passfd) {
+ if (!uppair()) done++;
+ }
else {
if (fgets(password, sizeof(password), passfd) == NULL) {
rewind(passfd);
@@ -3635,8 +3636,9 @@ phase_3: /* smb session setup/auth */
}
}
- if ((! *username) && (! *password))
- uppair(); /* sleaze for NT */
+ if ((! *username) && (! *password)) {
+ if (!uppair()) done++;
+ }
#ifdef VERBOSE
natprintf("[*]--- Attempting to connect with Username: `%s' Password: `%s'\n",

View File

@ -1,22 +0,0 @@
fix LP64 issues.
--- includes.h.orig Fri Jun 19 11:08:47 2009
+++ includes.h Fri Jun 19 11:08:50 2009
@@ -461,6 +461,8 @@ char *mktemp(char *); /* No standard include */
#define SIGNAL_CAST (void (*)())
#define USE_DIRECT
#define REPLACE_INNETGR
+#define HAVE_BZERO
+#define HAVE_MEMMOVE
#endif
@@ -1121,3 +1123,8 @@ void *memcpy_wrapped(void *d,void *s,int l,char *fname
#endif
#endif
+
+
+char * Get_Hostbyaddr (struct in_addr ip);
+struct ipstr *parse_ip(char *);
+

View File

@ -1,39 +0,0 @@
--- nat.1.orig Mon Feb 17 03:18:04 1997
+++ nat.1 Fri Jun 19 11:17:09 2009
@@ -1,12 +1,12 @@
-.TH NAT 1
+.TH NBAUDIT 1
.SH NAME
-nat - NetBIOS Auditing Tool
+nbaudit - NetBIOS Auditing Tool
.SH SYNOPSIS
-nat [-o <\fBoutput\fP>] [-u <\fBuserlist\fP>] [-p <\fBpasslist\fP>] \fB<address>\fP
+nbaudit [-o <\fBoutput\fP>] [-u <\fBuserlist\fP>] [-p <\fBpasslist\fP>] \fB<address>\fP
.SH DESCRIPTION
.PP
-\fBnat\fP is a tool written to perform various security checks on systems
-offering the NetBIOS file sharing service. \fBnat\fP will attempt to retrieve
+\fBnbaudit\fP is a tool written to perform various security checks on systems
+offering the NetBIOS file sharing service. \fBnbaudit\fP will attempt to retrieve
all information availible from the remote server, and attempt to access any
services provided by the server.
.SH OPTIONS
@@ -54,10 +54,10 @@ tried for all usernames. Keep this in mind when using
and usernames, as the time required increases exponentially with the size of
these lists.
.SH SUPPORTED PLATFORMS
-This version of \fBnat\fP has been tested against Windows NT 4.0 and various
+This version of \fBnbaudit\fP has been tested against Windows NT 4.0 and various
versions of the Samba server written by Andrew Tridgell.
.PP
-This version of \fBnat\fP has been tested and compiled on the following
+This version of \fBnbaudit\fP has been tested and compiled on the following
operating systems:
\fBSolaris\fP 2.5,
\fBLinux\fP 2.0,
@@ -68,4 +68,4 @@ operating systems:
\fBWindows 95\fP
.SH FILES
-\fBnat\fP, \fBuserlist.txt\fP, \fBpasslist.txt\fP
+\fBnbaudit\fP, \fBuserlist.txt\fP, \fBpasslist.txt\fP

View File

@ -1,12 +0,0 @@
fix LP64 issues.
--- nat.c.orig Fri Jun 19 11:08:56 2009
+++ nat.c Fri Jun 19 11:09:02 2009
@@ -13,6 +13,7 @@
#include <varargs.h>
#endif
#include "parse_ip.h"
+#include "includes.h"
extern char *optarg;
extern int optind;

View File

@ -1,12 +0,0 @@
newer compilers won't like this
--- nmb.c.orig Fri Jun 19 11:18:31 2009
+++ nmb.c Fri Jun 19 11:18:39 2009
@@ -40,7 +40,6 @@ static fstring tbuf;
#endif /* SCANNER */
int Debug1(char *, ...);
-int Debug1();
int num_good_sends=0;
int num_good_receives=0;

View File

@ -1,9 +0,0 @@
NetBIOS Auditing Tool / Security Kit
The intention of this package is to perform various security checks on
remote servers running NetBIOS file sharing services.
nat will attempt to retrieve all information available from the remote
server, and attempt to access any services provided by the server.
-- David O'Brien
obrien@NUXI.com

View File

@ -1,4 +0,0 @@
@newgroup _nbaudit:633
@newuser _nbaudit:633:_nbaudit::nbaudit user:/nonexistent:/sbin/nologin
@bin bin/nbaudit
@man man/man1/nbaudit.1