createhashes.sh

来自「在网络安全中经常会遇到rootkit」· Shell 代码 · 共 63 行

SH
63
字号
#!/bin/sh# Temporary file for sorting the resultsTMPFILE="`mktemp /tmp/rkhunter.createhashes.XXXXXX`" || exit 1DIRS="/sbin /bin /usr/bin /usr/sbin"FILES="findcronifconfigwatchwwhoamiwhousersstatsha1sumkillfindfilepstreekillalllsattrmountnetstategrepfgrepgrepcatchmodchownenvlssupsdmesgkillloginchkconfigdepmodinsmodmodinfosysctlsyslogdinitrunlevelgroupsip"for I in ${FILES}; do	for J in ${DIRS}; do		FILE="${J}/${I}"		if [ -f ${FILE} ]; then			./createfilehashes.pl ${FILE} >> ${TMPFILE}		fi	donedonesort ${TMPFILE}rm -f ${TMPFILE}exit 0

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?