From 794f6a8b8fe3b1015e36eae17154690be4718b18 Mon Sep 17 00:00:00 2001 From: Sergei Kolobov Date: Tue, 9 Nov 2004 16:43:18 +0000 Subject: [PATCH] Add dns/dnshijacker: dnshijacker is a libnet/libpcap based packet sniffer & spoofer. a versatile tool, dnshijacker supports tcpdump style filters that allow you to specifically target victims. dns answers are forged based on entries in a "fabrication table" or by simply forging one answer to all requests. a print only mode is also supported, allowing one to simply monitor dns traffic. dns hijacker is an excellent tool for network level ad blocking / removal. WWW: http://pedram.redhive.com/projects.php PR: ports/72898 Submitted by: David Thiel --- dns/Makefile | 1 + dns/dnshijacker/Makefile | 32 ++++++++++++++++++++++++++++++++ dns/dnshijacker/distinfo | 2 ++ dns/dnshijacker/pkg-descr | 9 +++++++++ 4 files changed, 44 insertions(+) create mode 100644 dns/dnshijacker/Makefile create mode 100644 dns/dnshijacker/distinfo create mode 100644 dns/dnshijacker/pkg-descr diff --git a/dns/Makefile b/dns/Makefile index 2e9c0e21fa94..14ae543e0046 100644 --- a/dns/Makefile +++ b/dns/Makefile @@ -21,6 +21,7 @@ SUBDIR += dns_balance SUBDIR += dnsdoctor SUBDIR += dnsflood + SUBDIR += dnshijacker SUBDIR += dnsmasq SUBDIR += dnsproxy SUBDIR += dnssecwalker diff --git a/dns/dnshijacker/Makefile b/dns/dnshijacker/Makefile new file mode 100644 index 000000000000..d77c6a8af574 --- /dev/null +++ b/dns/dnshijacker/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: dnshijacker +# Date created: 2004-10-19 +# Whom: lx@redundancy.redundancy.org +# +# $FreeBSD$ +# + +PORTNAME= dnshijacker +PORTVERSION= 1.3 +CATEGORIES= dns security +MASTER_SITES= http://pedram.redhive.com/downloads/ + +MAINTAINER= lx@redundancy.redundancy.org +COMMENT= A tool to hijack DNS requests + +BUILD_DEPENDS= ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet + +LDFLAGS+= -lpcap -lnet + +PLIST_FILES= bin/dnshijacker +PORTDOCS= README + +do-build: + cd ${WRKSRC} && \ + ${CC} ${PORTNAME}.c ${CFLAGS} -I${LOCALBASE}/include \ + -L${LOCALBASE}/lib ${LDFLAGS} `libnet-config --defines` \ + `libnet-config --cflags` -o ${PORTNAME} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/dnshijacker ${PREFIX}/bin + +.include diff --git a/dns/dnshijacker/distinfo b/dns/dnshijacker/distinfo new file mode 100644 index 000000000000..76d2cad5bae7 --- /dev/null +++ b/dns/dnshijacker/distinfo @@ -0,0 +1,2 @@ +MD5 (dnshijacker-1.3.tar.gz) = 6b99d105fc78d84e963661ae7bf4c06d +SIZE (dnshijacker-1.3.tar.gz) = 23561 diff --git a/dns/dnshijacker/pkg-descr b/dns/dnshijacker/pkg-descr new file mode 100644 index 000000000000..3527159ea98c --- /dev/null +++ b/dns/dnshijacker/pkg-descr @@ -0,0 +1,9 @@ +dnshijacker is a libnet/libpcap based packet sniffer & spoofer. a +versatile tool, dnshijacker supports tcpdump style filters that allow +you to specifically target victims. dns answers are forged based on +entries in a "fabrication table" or by simply forging one answer to all +requests. a print only mode is also supported, allowing one to simply +monitor dns traffic. dns hijacker is an excellent tool for network level +ad blocking / removal. + +WWW: http://pedram.redhive.com/projects.php