path: chkrootkit_0.58b-6/debian/patches/chkrootkit-chk_pidof.patch STATUS=${NOT_INFECTED} TOP_INFECTED_LABEL="/dev/pty[pqrs]" - CMD=`loc pidof pidof $pth` + CMD=$(loc pidof pidof "$pth") path: chkrootkit_0.58b-6/debian/patches/chkrootkit-chk_pidof.patch if [ "${EXPERT}" = "t" ]; then @@ -1925,11 +1924,11 @@ chk_pidof () { return 5 fi path: chkrootkit_0.58b-6/debian/patches/chkrootkit-chk_pidof.patch TOP_INFECTED_LABEL="/dev/pty[pqrs]" - CMD=`loc pidof pidof $pth` + CMD=$(loc pidof pidof "$pth") - if [ "${?}" -ne 0 ] path: chkrootkit_0.58b-6/debian/patches/chkrootkit-chk_pidof.patch From: Richard Lewis Date: Thu, 17 Oct 2024 22:17:41 +0100 Subject: chkrootkit: chk_pidof Forwarded: yes path: chkrootkit_0.58b-6/debian/patches/chkrootkit-chk_pidof.patch +++ b/chkrootkit @@ -1913,11 +1913,10 @@ chk_top () { chk_pidof () { STATUS=${NOT_INFECTED} TOP_INFECTED_LABEL="/dev/pty[pqrs]" path: chkrootkit_0.58b-6/chkrootkit } chk_pidof () { STATUS=${NOT_INFECTED} TOP_INFECTED_LABEL="/dev/pty[pqrs]" path: chkrootkit_0.58b-6/chkrootkit TROJAN="amd basename biff chfn chsh cron crontab date du dirname echo egrep \ env find fingerd gpm grep hdparm su ifconfig inetd inetdconf identd init \ killall ldsopreload login ls lsof mail mingetty netstat named passwd pidof \ pop2 pop3 ps pstree rpcinfo rlogind rshd slogin sendmail sshd syslogd tar tcpd \ tcpdump top telnetd timed traceroute vdir w write" path: chkrootkit_0.58b-6/chkrootkit STATUS=${NOT_INFECTED} TOP_INFECTED_LABEL="/dev/pty[pqrs]" CMD=$(loc pidof pidof "$pth") if [ "${?}" -ne 0 ]; then path: chkrootkit_0.58b-6/debian/patches/chkrootkit-chk_killall.patch --- a/chkrootkit +++ b/chkrootkit @@ -1934,11 +1934,9 @@ chk_pidof () { chk_killall () { STATUS=${NOT_INFECTED} path: chkrootkit_0.58b-6/README echo egrep env find fingerd gpm grep hdparm su ifconfig inetd inetdconf identd init killall ldsopreload login ls lsof mail mingetty netstat named passwd pidof pop2 pop3 ps pstree rpcinfo rlogind rshd slogin sendmail sshd syslogd tar tcpd tcpdump top telnetd timed traceroute vdir w write path: chkrootkit_0.58b-6/debian/tests/find-debs-that-are-enhanced echo "* Starting tests of 'Enhances' field" echo "Enhances: <$enhances>" for test in chfn chsh login ssh sshd passwd inetd syslogd hdparm gpm mingetty sendmail ls du named netstat ps pstree crontab top pidof killall basename dirname traceroute rpcinfo date echo env timed in.timed in.identd init in.pop2d in.pop3d write w vdir tar mail biff egrep grep find rlogind lsof slogin cron ifconfig rshd tcpd su fingerd telnetd; do pkgs="$(command-not-found --ignore-installed "$test" 2>&1 \ | command grep 'apt install' \ path: chkrootkit_0.58b-6/debian/tests/all-tests-can-find-something-02-quiet.expected ^Checking `named'\.\.\. INFECTED$ ^Checking `passwd'\.\.\. INFECTED$ ^Checking `pidof'\.\.\. INFECTED$ ^Checking `pop2'\.\.\. INFECTED$ ^Checking `pop3'\.\.\. INFECTED$ path: chkrootkit_0.58b-6/debian/patches/chkrootkit-top-level.patch env find fingerd gpm grep hdparm su ifconfig inetd inetdconf identd init \ -killall ldsopreload login ls lsof mail mingetty netstat named passwd pidof \ +killall ldsopreload login ls lsof mail mingetty netstat named passwd pidof \ pop2 pop3 ps pstree rpcinfo rlogind rshd slogin sendmail sshd syslogd tar tcpd \ tcpdump top telnetd timed traceroute vdir w write" path: chkrootkit_0.58b-6/debian/patches/chkrootkit-top-level.patch TROJAN="amd basename biff chfn chsh cron crontab date du dirname echo egrep \ env find fingerd gpm grep hdparm su ifconfig inetd inetdconf identd init \ -killall ldsopreload login ls lsof mail mingetty netstat named passwd pidof \ +killall ldsopreload login ls lsof mail mingetty netstat named passwd pidof \ pop2 pop3 ps pstree rpcinfo rlogind rshd slogin sendmail sshd syslogd tar tcpd \ path: chkrootkit_0.58b-6/debian/tests/chkrootkit-1-full.expected ^Checking `named'\.\.\. not infected$ ^Checking `passwd'\.\.\. not infected$ ^Checking `pidof'\.\.\. not infected$ ^Checking `pop2'\.\.\. not infected$ ^Checking `pop3'\.\.\. not infected$ path: chkrootkit_0.58b-6/debian/tests/chkrootkit-0-full.expected ^Checking `named'\.\.\. not infected$ ^Checking `passwd'\.\.\. not infected$ ^Checking `pidof'\.\.\. not infected$ ^Checking `pop2'\.\.\. not infected$ ^Checking `pop3'\.\.\. not infected$ path: chkrootkit_0.58b-6/debian/tests/cron-no-diff-mode-02-full-filter-and-ignore.expected ^Checking `named'\.\.\. not infected$ ^Checking `passwd'\.\.\. not infected$ ^Checking `pidof'\.\.\. not infected$ ^Checking `pop2'\.\.\. not infected$ ^Checking `pop3'\.\.\. not infected$ path: chkrootkit_0.58b-6/debian/patches/chkrootkit-chk_top.patch } chk_pidof () { path: chkrootkit_0.58b-6/debian/tests/all-tests-can-find-something-01.expected ^Checking `named'\.\.\. INFECTED$ ^Checking `passwd'\.\.\. INFECTED$ ^Checking `pidof'\.\.\. INFECTED$ ^Checking `pop2'\.\.\. INFECTED$ ^Checking `pop3'\.\.\. INFECTED$ path: chkrootkit_0.58b-6/debian/patches/series chkrootkit-chk_crontab.patch chkrootkit-chk_top.patch chkrootkit-chk_pidof.patch chkrootkit-chk_killall.patch chkrootkit-chk_ldsopreload.patch path: chkrootkit_0.58b-6/debian/tests/setting-rootdir.expected ^Checking `named'\.\.\. INFECTED$ ^Checking `passwd'\.\.\. INFECTED$ ^Checking `pidof'\.\.\. INFECTED$ ^Checking `pop2'\.\.\. INFECTED$ ^Checking `pop3'\.\.\. INFECTED$ path: chkrootkit_0.58b-6/debian/tests/test-chkrootkit for binary in amd basename biff chfn chsh cron date du dirname echo egrep \ env find fingerd gpm grep hdparm su ifconfig inetd in.identd init \ killall login ls lsof mail mingetty netstat named passwd pidof \ in.pop2d in.pop3d ps pstree rpcinfo in.rlogind slogin sendmail sshd syslogd tar tcpd \ top telnetd timed traceroute vdir w write \ path: chkrootkit_0.58b-6/debian/tests/test-chkrootkit env find in.fingerd gpm grep hdparm su inetd in.identd inetdconf init killall ldsopreload login ls lsof mail mingetty netstat named passwd pidof in.pop2d in.pop3d ps write pstree rpcinfo rlogind in.rshd slogin sendmail sshd syslogd tar tcpd tcpdump telnetd timed traceroute path: chkrootkit_0.58b-6/debian/tests/cron-with-diff-mode-01-full.expected ^Checking `named'\.\.\. not infected$ ^Checking `passwd'\.\.\. not infected$ ^Checking `pidof'\.\.\. not infected$ ^Checking `pop2'\.\.\. not infected$ ^Checking `pop3'\.\.\. not infected$