mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +00:00
Add chkrootkit 0.30, a tool to locally check for signs of a rootkit.
PR: 26115 Submitted by: Luiz Eduardo R. Cordeiro
This commit is contained in:
parent
a92e626ee1
commit
dfa4561877
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40977
@ -15,6 +15,7 @@
|
||||
SUBDIR += calife
|
||||
SUBDIR += cfs
|
||||
SUBDIR += checkpassword
|
||||
SUBDIR += chkrootkit
|
||||
SUBDIR += chrootuid
|
||||
SUBDIR += cksfv
|
||||
SUBDIR += cops
|
||||
|
37
security/chkrootkit/Makefile
Normal file
37
security/chkrootkit/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# Ports collection makefile for: chkrootkit
|
||||
# Date created: 13 Mar 2001
|
||||
# Whom: Luiz Eduardo R. Cordeiro
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= chkrootkit
|
||||
PORTVERSION= 0.30
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= ftp://ftp.pangeia.com.br/pub/seg/pac/
|
||||
DISTNAME= ${PORTNAME}
|
||||
|
||||
MAINTAINER= cordeiro@iqm.unicamp.br
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
ALL_TARGET= chkrootkit chklastlog chkwtmp ifpromisc
|
||||
|
||||
pre-patch:
|
||||
@${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.orig
|
||||
@${SED} -e "s/^CC/#CC/g" -e "s/^CFLAGS/#CFLAGS/g" \
|
||||
${WRKSRC}/Makefile.orig > ${WRKSRC}/Makefile
|
||||
@${MV} ${WRKSRC}/chkrootkit ${WRKSRC}/chkrootkit.orig
|
||||
@${SED} -e 's#\./chklastlog#${PREFIX}/sbin/chklastlog#' \
|
||||
-e 's#\./chkwtmp#${PREFIX}/sbin/chkwtmp#' \
|
||||
-e 's#\./ifpromisc#${PREFIX}/sbin/ifpromisc#' \
|
||||
${WRKSRC}/chkrootkit.orig > ${WRKSRC}/chkrootkit
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/chkrootkit ${PREFIX}/sbin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/chklastlog ${PREFIX}/sbin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/chkwtmp ${PREFIX}/sbin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/ifpromisc ${PREFIX}/sbin
|
||||
@${MKDIR} ${PREFIX}/share/doc/chkrootkit
|
||||
${CP} -R ${WRKSRC}/COPY* ${PREFIX}/share/doc/chkrootkit
|
||||
${CP} -R ${WRKSRC}/README* ${PREFIX}/share/doc/chkrootkit
|
||||
|
||||
.include <bsd.port.mk>
|
1
security/chkrootkit/distinfo
Normal file
1
security/chkrootkit/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (chkrootkit.tar.gz) = 2f1c9ec3c3bf62d50c70e25a52ddc1d7
|
1
security/chkrootkit/pkg-comment
Normal file
1
security/chkrootkit/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
A tool to locally check for signs of a rootkit
|
18
security/chkrootkit/pkg-descr
Normal file
18
security/chkrootkit/pkg-descr
Normal file
@ -0,0 +1,18 @@
|
||||
Chkrootkit is a tool to locally check for signs of a rootkit. It
|
||||
contains:
|
||||
|
||||
* chkrootkit: a shell script that checks system binaries for
|
||||
rootkit modification.
|
||||
* ifpromisc.c: checks if the network interface is in promiscuous
|
||||
mode.
|
||||
* chklastlog.c: checks for lastlog deletions.
|
||||
* chkwtmp.c: checks for wtmp deletions.
|
||||
|
||||
The following rootkits and worms are currently detected: Solaris
|
||||
rootkit, FreeBSD rootkit, lrk3, lrk4, lrk5, lrk6, t0rn, some lrk
|
||||
variants, Ambient's Rootkit for Linux (ARK), Ramen Worm,
|
||||
rh[67]-shaper, RSHA and Romanian rootkit.
|
||||
|
||||
Nelson Murilo <nelson@pangeia.com.br>
|
||||
|
||||
WWW: http://www.chkrootkit.org.br
|
9
security/chkrootkit/pkg-plist
Normal file
9
security/chkrootkit/pkg-plist
Normal file
@ -0,0 +1,9 @@
|
||||
sbin/chkrootkit
|
||||
sbin/chklastlog
|
||||
sbin/chkwtmp
|
||||
sbin/ifpromisc
|
||||
share/doc/chkrootkit/COPYRIGHT
|
||||
share/doc/chkrootkit/README
|
||||
share/doc/chkrootkit/README.chklastlog
|
||||
share/doc/chkrootkit/README.chkwtmp
|
||||
@dirrm share/doc/chkrootkit
|
Loading…
Reference in New Issue
Block a user