검사 결과 업데이트

This commit is contained in:
ByeonJungHun
2024-01-10 14:37:12 +09:00
parent a85ce91982
commit eadbe72498

View File

@@ -143,6 +143,7 @@ U_01() {
do do
sshd_permitrootlogin_no_count=`grep -vE '^#|^\s#' ${sshd_config_file[$i]} | grep -i 'permitrootlogin' | grep -i 'no' | wc -l` sshd_permitrootlogin_no_count=`grep -vE '^#|^\s#' ${sshd_config_file[$i]} | grep -i 'permitrootlogin' | grep -i 'no' | wc -l`
if [ $sshd_permitrootlogin_no_count -eq 0 ]; then if [ $sshd_permitrootlogin_no_count -eq 0 ]; then
echo $sshd_permitrootlogin_no_count >> $resultfile 2>&1
echo "※ U-01 결과 : 취약(Vulnerable)" >> $resultfile 2>&1 echo "※ U-01 결과 : 취약(Vulnerable)" >> $resultfile 2>&1
echo " ssh 서비스를 사용하고, sshd_config 파일에서 root 계정의 원격 접속이 허용되어 있습니다.3" >> $resultfile 2>&1 echo " ssh 서비스를 사용하고, sshd_config 파일에서 root 계정의 원격 접속이 허용되어 있습니다.3" >> $resultfile 2>&1
return 0 return 0