=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== lynis-3.0.1/include/tests_networking-331- else lynis-3.0.1/include/tests_networking:332: ReportException "${TEST_NO}:1" "No interfaces found on this system (OS=${OS})" lynis-3.0.1/include/tests_networking-333- fi ############################################## lynis-3.0.1/include/tests_databases-88- # "plugin = 'mysql_native_password' AND authentication_string = ''" avoids false positives when secure plugins are used lynis-3.0.1/include/tests_databases:89: FIND=$(${MYSQLCLIENTBINARY} --no-defaults -u root --password= --silent --batch --execute="SELECT count(*) FROM mysql.user WHERE user = 'root' AND plugin = 'mysql_native_password' AND authentication_string = ''" mysql 2>/dev/null; echo $?) lynis-3.0.1/include/tests_databases-90- if [ "${FIND}" = "0" ]; then ############################################## lynis-3.0.1/include/tests_kernel-398- LogText "Result: ${ROOTDIR}vmlinuz missing due to Raspbian" lynis-3.0.1/include/tests_kernel:399: elif `${EGREPBINARY} -q 'do_symlinks.*=.*No' ${ROOTDIR}etc/kernel-img.conf`; then lynis-3.0.1/include/tests_kernel-400- FINDKERNEL=linux-image-$(uname -r) ############################################## lynis-3.0.1/debian/plugin_debian_phase1-52- LogText "Directory ${SCANDIR} exists. Starting directory scanning..." lynis-3.0.1/debian/plugin_debian_phase1:53: FIND=`ls ${SCANDIR}` lynis-3.0.1/debian/plugin_debian_phase1-54- for I in ${FIND}; do lynis-3.0.1/debian/plugin_debian_phase1:55: N=`expr ${N} + 1` lynis-3.0.1/debian/plugin_debian_phase1-56- BINARY="${SCANDIR}/${I}" ############################################## lynis-3.0.1/debian/plugin_debian_phase1-79-done lynis-3.0.1/debian/plugin_debian_phase1:80:SCANNEDPATHS=`echo ${SCANNEDPATHS} | sed 's/^, //g'` lynis-3.0.1/debian/plugin_debian_phase1-81-LogText "Discovered directories: ${SCANNEDPATHS}" ############################################## lynis-3.0.1/debian/plugin_debian_phase1-137- LogText "Test: Checking file system mount points" lynis-3.0.1/debian/plugin_debian_phase1:138: FIND=`${MOUNTBINARY} 2> /dev/null | grep -v "^[binfmt_misc|devpts|fusectl|hugetlbfs|none|proc|sysfs|systemd|tmpfs|udev]" | grep -v ecryptfs | awk '{ print $1 ":" $3 }'` lynis-3.0.1/debian/plugin_debian_phase1-139- TESTED_LIST="" ############################################## lynis-3.0.1/debian/plugin_debian_phase1-176- /dev/mapper/*) lynis-3.0.1/debian/plugin_debian_phase1:177: TEST_DEVICE=`${LVDISPLAYBINARY} -m ${PDEV} 2>/dev/null` lynis-3.0.1/debian/plugin_debian_phase1-178- exitstatus=$? ############################################## lynis-3.0.1/debian/plugin_debian_phase1-187- # then get the DEVICE from its output lynis-3.0.1/debian/plugin_debian_phase1:188: DEVICE=`echo ${TEST_DEVICE} | sed -e 's/.*Physical volume \(.*\) Physical.*/\1/'` lynis-3.0.1/debian/plugin_debian_phase1-189- fi ############################################## lynis-3.0.1/debian/plugin_debian_phase1-194- esac lynis-3.0.1/debian/plugin_debian_phase1:195: CRYPT=`${CRYPTSETUPBINARY} status ${DEVICE} 2>/dev/null` lynis-3.0.1/debian/plugin_debian_phase1-196- exitstatus=$? ############################################## lynis-3.0.1/debian/plugin_debian_phase1-207- if [ ${exitstatus} -eq 0 ]; then lynis-3.0.1/debian/plugin_debian_phase1:208: TYPE=`echo ${CRYPT} | grep "type:" | sed -e 's/.*type: \(.*\) cipher.*/\1/'` lynis-3.0.1/debian/plugin_debian_phase1-209- if [ "a${TYPE}a" = "an/aa" ]; then ############################################## lynis-3.0.1/debian/plugin_debian_phase1-217- # cryptsetup's output. lynis-3.0.1/debian/plugin_debian_phase1:218: CIPHER=`echo ${CRYPT} | grep "cipher:" | sed -e 's/.*cipher: \(.*\) keysize.*/\1/'` lynis-3.0.1/debian/plugin_debian_phase1-219- Display --indent 6 --text "- Checking ${MOUNTPOINT} on ${DEVICE}" --result "Cryptmount? [Cipher: ${CIPHER}]" --color GREEN ############################################## lynis-3.0.1/debian/plugin_debian_phase1-284- LogText "Test: If user home directories are configured to use Ecryptfs" lynis-3.0.1/debian/plugin_debian_phase1:285: USERLIST=`awk -F: '($3 > 500) && ($3 != 65534) { print $1","$6 }' /etc/passwd` lynis-3.0.1/debian/plugin_debian_phase1-286- for U in ${USERLIST}; do lynis-3.0.1/debian/plugin_debian_phase1-287- ECRYPTFSHOME=1 lynis-3.0.1/debian/plugin_debian_phase1:288: USER=`echo ${U} | sed -e 's/,.*//'` lynis-3.0.1/debian/plugin_debian_phase1:289: HOMEDIR=`echo ${U} | sed -e 's/^[^,]*,//'` lynis-3.0.1/debian/plugin_debian_phase1-290- LogText "USER: ${USER}" ############################################## lynis-3.0.1/debian/plugin_debian_phase1-292- if [ -d /home/.ecryptfs/${USER} -a -f /home/.ecryptfs/${USER}/.ecryptfs/auto-mount -a -f /home/.ecryptfs/${USER}/.ecryptfs/Private.mnt ]; then lynis-3.0.1/debian/plugin_debian_phase1:293: PRIVDIR=`cat /home/.ecryptfs/${USER}/.ecryptfs/Private.mnt` lynis-3.0.1/debian/plugin_debian_phase1-294- LogText "PRIVATE DIR: ${PRIVDIR}"