Remove security/fragroute

Unmaintained upstream, no update since import in 2002, segfaults on start.

OK sdk
This commit is contained in:
kn 2022-11-18 21:26:56 +00:00
parent f99feaece5
commit 9d573349ec
11 changed files with 3 additions and 144 deletions

View File

@ -3,7 +3,7 @@ CATEGORIES = devel databases
DISTFILES =
# API.rev
PKGNAME = quirks-6.66
PKGNAME = quirks-6.67
PKG_ARCH = *
MAINTAINER = Marc Espie <espie@openbsd.org>

View File

@ -1,7 +1,7 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
# $OpenBSD: Quirks.pm,v 1.1461 2022/11/18 17:17:49 kn Exp $
# $OpenBSD: Quirks.pm,v 1.1462 2022/11/18 21:26:56 kn Exp $
#
# Copyright (c) 2009 Marc Espie <espie@openbsd.org>
#
@ -1748,6 +1748,7 @@ setup_obsolete_reason(
3 => 'slurpie',
1 => 'samdump2',
1 => 'smbsniff',
0 => 'fragroute',
);
# though it's not yet used, these should be pkgnames, so that eventually

View File

@ -52,7 +52,6 @@
SUBDIR += fierce
SUBDIR += floss
SUBDIR += foremost
SUBDIR += fragroute
SUBDIR += fragrouter
SUBDIR += fwbuilder
SUBDIR += fwknop

View File

@ -1,26 +0,0 @@
COMMENT= intercept, modify, and rewrite egress traffic
DISTNAME= fragroute-1.2
REVISION = 8
CATEGORIES= security net
HOMEPAGE= http://www.monkey.org/~dugsong/fragroute/
# BSD
PERMIT_PACKAGE= Yes
WANTLIB= c event pcap dnet>=1
MASTER_SITES= http://monkey.org/~dugsong/fragroute/ \
${MASTER_SITE_PACKETSTORM:=UNIX/security/}
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-libevent=/usr
LIB_DEPENDS= net/libdnet
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/fragroute/
${INSTALL_DATA} ${WRKDIST}/fragroute.conf \
${PREFIX}/share/examples/fragroute/
.include <bsd.port.mk>

View File

@ -1,2 +0,0 @@
SHA256 (fragroute-1.2.tar.gz) = aJmmHsrLo7tACmW1GzwPdtTlkdv5dvugOJQ0op78IAM=
SIZE (fragroute-1.2.tar.gz) = 85247

View File

@ -1,60 +0,0 @@
--- fragroute.c.orig Mon Apr 8 00:55:20 2002
+++ fragroute.c Wed Apr 21 22:10:34 2010
@@ -36,9 +36,8 @@ struct fr_ctx {
static struct fr_ctx ctx;
-/* XXX - these should be in event.h */
-extern int (*event_sigcb)(void);
-extern int event_gotsig;
+static struct event fragroute_sigint;
+static struct event fragroute_sigterm;
static void
usage(void)
@@ -69,8 +68,8 @@ static void
_resend_outgoing(struct pkt *pkt)
{
if (timerisset(&pkt->pkt_ts)) {
- timeout_set(&pkt->pkt_ev, _timed_outgoing, pkt);
- timeout_add(&pkt->pkt_ev, &pkt->pkt_ts);
+ evtimer_set(&pkt->pkt_ev, _timed_outgoing, pkt);
+ evtimer_add(&pkt->pkt_ev, &pkt->pkt_ts);
} else {
eth_pack_hdr(pkt->pkt_eth, ctx.dmac.addr_eth,
ctx.smac.addr_eth, ETH_TYPE_IP);
@@ -145,10 +144,10 @@ fragroute_signal(DWORD sig)
}
#else
static void
-fragroute_signal(int sig)
+fragroute_signal(int sig, short event, void *data)
{
warnx("exiting on signal %d", sig);
- event_gotsig++;
+ fragroute_close();
}
#endif
@@ -166,8 +165,11 @@ fragroute_init(const char *dst)
SetConsoleCtrlHandler(fragroute_signal, TRUE);
#else
- signal(SIGINT, fragroute_signal);
- signal(SIGTERM, fragroute_signal);
+ /* Setup signal handler */
+ signal_set(&fragroute_sigint, SIGINT, fragroute_signal, NULL);
+ signal_add(&fragroute_sigint, NULL);
+ signal_set(&fragroute_sigterm, SIGTERM, fragroute_signal, NULL);
+ signal_add(&fragroute_sigterm, NULL);
#endif
if (addr_aton(dst, &ctx.dst) < 0)
err(1, "destination address invalid");
@@ -178,7 +180,6 @@ fragroute_init(const char *dst)
pkt_init(128);
event_init();
- event_sigcb = fragroute_close;
if ((ctx.arp = arp_open()) == NULL ||
(ctx.intf = intf_open()) == NULL ||

View File

@ -1,11 +0,0 @@
--- mod.c.orig Fri Apr 30 15:27:00 2010
+++ mod.c Fri Apr 30 15:27:11 2010
@@ -151,7 +151,7 @@ mod_close(void)
{
struct rule *rule;
- TAILQ_FOREACH_REVERSE(rule, &rules, next, head) {
+ TAILQ_FOREACH_REVERSE(rule, &rules, head, next) {
if (rule->mod->close != NULL)
rule->data = rule->mod->close(rule->data);
TAILQ_REMOVE(&rules, rule, next);

View File

@ -1,14 +0,0 @@
--- pkt.h.orig Fri Apr 30 15:26:29 2010
+++ pkt.h Fri Apr 30 15:26:51 2010
@@ -9,10 +9,10 @@
#ifndef PKT_H
#define PKT_H
+#include <sys/queue.h>
#include <sys/time.h>
#include <dnet.h>
#include <event.h>
-#include "queue.h"
#define PKT_BUF_LEN (ETH_HDR_LEN + ETH_MTU)
#define PKT_BUF_ALIGN 2

View File

@ -1,12 +0,0 @@
--- tun.h.orig Sat May 21 21:35:11 2005
+++ tun.h Sat May 21 21:35:34 2005
@@ -9,7 +9,9 @@
#ifndef TUN_H
#define TUN_H
+#ifndef DNET_TUN_H
typedef struct tun tun_t;
+#endif
typedef void (*tun_handler)(void *buf, size_t len, void *arg);

View File

@ -1,9 +0,0 @@
fragroute intercepts, modifies, and rewrites egress traffic destined for
a specified host, implementing most of the attacks described in the
Secure Networks "Insertion, Evasion, and Denial of Service: Eluding
Network Intrusion Detection" paper of January 1998.
It features a simple ruleset language to delay, duplicate, drop,
fragment, overlap, print, reorder, segment, source-route, or otherwise
monkey with all outbound packets destined for a target host, with
minimal support for randomized or probabilistic behaviour.

View File

@ -1,7 +0,0 @@
@man man/man8/fragroute.8
@man man/man8/fragtest.8
@bin sbin/fragroute
@bin sbin/fragtest
share/examples/fragroute/
share/examples/fragroute/fragroute.conf
@sample ${SYSCONFDIR}/fragroute.conf