794f6a8b8f
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 <lx@redundancy.redundancy.org>
32 lines
744 B
Makefile
32 lines
744 B
Makefile
# 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 <bsd.port.mk>
|