/etc/chkrootkit.conf

Rund um die Sicherheit des Systems und die Applikationen
Post Reply
timejunky
Posts: 14
Joined: 2006-12-09 15:29
 

/etc/chkrootkit.conf

Post by timejunky »

hallo,
ich habe chkrootkit unter debian 4 installiert.

Das Prog meldet:
The following suspicious files and directories were found:
/lib/init/rw/.mdadm
/lib/init/rw/.ramfs
/lib/init/rw/.mdadm
Um diese Meldung zu umgehen, habe ich versucht die Config nach der Anleitung
http://stereo.lu/chkrootkit.diff.html
zu modifizieren.

Code: Select all

-   files=`${find} ${DIR} -name ".[A-Za-z]*" -o -name "...*" -o -name ".. *"`
+   files=`${find} ${DIR} ( -name ".[A-Za-z]*" -o -name "...*" -o -name ".. *" ) -and -not -wholename /lib/init/rw/.ramfs`
    dirs=`${find} ${DIR} -type d -name ".*"`
    if [ "${files}" = "" -a "${dirs}" = "" ]
       then
Leider erscheinen hiernach diverse Fehler. wie kann ich sie beheben bitte?
/etc/chkrootkit.conf: line 7: -name: command not found
/etc/chkrootkit.conf: line 7: -: command not found
-name ist doch bestandteil der optionen des find-commandos :roll:
timejunky
Posts: 14
Joined: 2006-12-09 15:29
 

Re: /etc/chkrootkit.conf

Post by timejunky »

anybody out there, who can help me?
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: /etc/chkrootkit.conf

Post by Joe User »

Versuche es mal ohne die Escapes im Patch...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
timejunky
Posts: 14
Joined: 2006-12-09 15:29
 

Re: /etc/chkrootkit.conf

Post by timejunky »

Hallo Joe,

ich nehme an du meinst derlei:

Code: Select all

#   files=`${find} ${DIR} -name ".[A-Za-z]*" -o -name "...*" -o -name ".. *"`
   files=`${find} ${DIR} ( -name ".[A-Za-z]*" -o -name "...*" -o -name ".. *" ) -and -not -wholename /lib/init/rw/.ramfs`
    dirs=`${find} ${DIR} -type d -name ".*"`
    if [ "${files}" = "" -a "${dirs}" = "" ]
       then
Komme aber leider damit auch nicht weiter.

Installiert ist im übrigen bei mir die Version chkrootkit 0.47-1.1
Post Reply