Linux srv25.usacloudserver.us 5.14.0-570.39.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Sep 4 05:08:52 EDT 2025 x86_64
LiteSpeed
Server IP : 23.137.84.82 & Your IP : 216.73.216.127
Domains :
Cant Read [ /etc/named.conf ]
User : epicgamerzoneco
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
cpguard /
3rdparty /
lynis /
include /
Delete
Unzip
Name
Size
Permission
Date
Action
binaries
38.55
KB
-rw-r--r--
2025-04-01 06:33
consts
10.62
KB
-rw-r--r--
2025-04-01 06:33
data_upload
13.46
KB
-rw-r--r--
2025-04-01 06:33
functions
159.25
KB
-rw-r--r--
2025-04-01 06:33
helper_audit_dockerfile
7.81
KB
-rw-r--r--
2025-04-01 06:33
helper_configure
3.66
KB
-rw-r--r--
2025-04-01 06:33
helper_generate
7.38
KB
-rw-r--r--
2025-04-01 06:33
helper_show
22.29
KB
-rw-r--r--
2025-04-01 06:33
helper_system_remote_scan
3.54
KB
-rw-r--r--
2025-04-01 06:33
helper_update
3.58
KB
-rw-r--r--
2025-04-01 06:33
osdetection
44.8
KB
-rw-r--r--
2025-04-01 06:33
parameters
16.48
KB
-rw-r--r--
2025-04-01 06:33
profiles
26.89
KB
-rw-r--r--
2025-04-01 06:33
report
17.25
KB
-rw-r--r--
2025-04-01 06:33
tests_accounting
25.33
KB
-rw-r--r--
2025-04-01 06:33
tests_authentication
84.05
KB
-rw-r--r--
2025-04-01 06:33
tests_banners
8.36
KB
-rw-r--r--
2025-04-01 06:33
tests_boot_services
54.72
KB
-rw-r--r--
2025-04-01 06:33
tests_containers
11.17
KB
-rw-r--r--
2025-04-01 06:33
tests_crypto
19
KB
-rw-r--r--
2025-04-01 06:33
tests_custom.template
6.78
KB
-rw-r--r--
2025-04-01 06:33
tests_databases
24.28
KB
-rw-r--r--
2025-04-01 06:33
tests_dns
3.39
KB
-rw-r--r--
2025-04-01 06:33
tests_file_integrity
22.18
KB
-rw-r--r--
2025-04-01 06:33
tests_file_permissions
3.11
KB
-rw-r--r--
2025-04-01 06:33
tests_filesystems
49.8
KB
-rw-r--r--
2025-04-01 06:33
tests_firewalls
31.51
KB
-rw-r--r--
2025-04-01 06:33
tests_hardening
7.02
KB
-rw-r--r--
2025-04-01 06:33
tests_homedirs
9.17
KB
-rw-r--r--
2025-04-01 06:33
tests_insecure_services
26.88
KB
-rw-r--r--
2025-04-01 06:33
tests_kerberos
7.87
KB
-rw-r--r--
2025-04-01 06:33
tests_kernel
59.96
KB
-rw-r--r--
2025-04-01 06:33
tests_kernel_hardening
5.62
KB
-rw-r--r--
2025-04-01 06:33
tests_ldap
3.96
KB
-rw-r--r--
2025-04-01 06:33
tests_logging
32.93
KB
-rw-r--r--
2025-04-01 06:33
tests_mac_frameworks
14.71
KB
-rw-r--r--
2025-04-01 06:33
tests_mail_messaging
21.45
KB
-rw-r--r--
2025-04-01 06:33
tests_malware
20.56
KB
-rw-r--r--
2025-04-01 06:33
tests_memory_processes
7.16
KB
-rw-r--r--
2025-04-01 06:33
tests_nameservices
34.53
KB
-rw-r--r--
2025-04-01 06:33
tests_networking
40.73
KB
-rw-r--r--
2025-04-01 06:33
tests_php
29.07
KB
-rw-r--r--
2025-04-01 06:33
tests_ports_packages
81.71
KB
-rw-r--r--
2025-04-01 06:33
tests_printers_spoolers
13.86
KB
-rw-r--r--
2025-04-01 06:33
tests_scheduling
15.75
KB
-rw-r--r--
2025-04-01 06:33
tests_shells
13.32
KB
-rw-r--r--
2025-04-01 06:33
tests_snmp
4.17
KB
-rw-r--r--
2025-04-01 06:33
tests_squid
16.75
KB
-rw-r--r--
2025-04-01 06:33
tests_ssh
17.6
KB
-rw-r--r--
2025-04-01 06:33
tests_storage
3.59
KB
-rw-r--r--
2025-04-01 06:33
tests_storage_nfs
8.4
KB
-rw-r--r--
2025-04-01 06:33
tests_system_integrity
2.05
KB
-rw-r--r--
2025-04-01 06:33
tests_time
32.63
KB
-rw-r--r--
2025-04-01 06:33
tests_tooling
22.09
KB
-rw-r--r--
2025-04-01 06:33
tests_usb
21.05
KB
-rw-r--r--
2025-04-01 06:33
tests_virtualization
1.95
KB
-rw-r--r--
2025-04-01 06:33
tests_webservers
33.18
KB
-rw-r--r--
2025-04-01 06:33
tool_tips
2.15
KB
-rw-r--r--
2025-04-01 06:33
Save
Rename
#!/bin/sh ################################################################################# # # Lynis # ------------------ # # Copyright (c) Michael Boelen, CISOfy, and many contributors. # # Website : https://cisofy.com # Blog : https://linux-audit.com/ # GitHub : https://github.com/CISOfy/lynis # # Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are # welcome to redistribute it under the terms of the GNU General Public License. # See LICENSE file for usage of this software. # ################################################################################# # # NFS # ################################################################################# # InsertSection "NFS" # ################################################################################# # NFS_DAEMON_RUNNING=0 NFS_EXPORTS_EMPTY=0 # ################################################################################# # # Test : STRG-1902 # Description : Check rpcinfo if [ -n "${RPCINFOBINARY}" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi Register --test-no STRG-1902 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check rpcinfo registered programs" if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: Checking rpcinfo registered programs" FIND=$(${RPCINFOBINARY} -p 2> /dev/null | ${TRBINARY} -s ' ' ',') for I in ${FIND}; do LogText "rpcinfo: ${I}" done Display --indent 2 --text "- Query rpc registered programs" --result "${STATUS_DONE}" --color GREEN fi # ################################################################################# # # Test : STRG-1904 # Description : Check nfs versions in rpcinfo if [ -n "${RPCINFOBINARY}" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi Register --test-no STRG-1904 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check nfs rpc" if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: Checking NFS registered versions" FIND=$(${RPCINFOBINARY} -p 2> /dev/null | ${AWKBINARY} '{ if ($5=="nfs") { print $2 } }' | uniq | sort) for I in ${FIND}; do LogText "Found version: ${I}" done Display --indent 2 --text "- Query NFS versions" --result "${STATUS_DONE}" --color GREEN fi # ################################################################################# # # Test : STRG-1906 # Description : Check nfs protocols (TCP/UDP) and port in rpcinfo if [ -n "${RPCINFOBINARY}" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi Register --test-no STRG-1906 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check nfs rpc" if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: Checking NFS registered protocols" FIND=$(${RPCINFOBINARY} -p 2> /dev/null | ${AWKBINARY} '{ if ($5=="nfs") { print $3 } }' | uniq | sort) for I in ${FIND}; do LogText "Found protocol: ${I}" done if [ -z "${FIND}" ]; then LogText "Output: no NFS protocols found" fi # Check port number LogText "Test: Checking NFS registered ports" FIND=$(${RPCINFOBINARY} -p 2> /dev/null | ${AWKBINARY} '{ if ($5=="nfs") { print $3 } }' | uniq | sort) for I in ${FIND}; do LogText "Found port: ${I}" done if [ -z "${FIND}" ]; then LogText "Output: no NFS port number found" fi Display --indent 2 --text "- Query NFS protocols" --result "${STATUS_DONE}" --color GREEN fi # ################################################################################# # # Test : STRG-1920 # Description : Check for running NFS daemons Register --test-no STRG-1920 --weight L --network NO --category security --description "Checking NFS daemon" if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: Checking running NFS daemon" FIND=$(${PSBINARY} ax | ${GREPBINARY} "nfsd" | ${GREPBINARY} -v "grep") if [ -z "${FIND}" ]; then LogText "Output: NFS daemon is not running" Display --indent 2 --text "- Check running NFS daemon" --result "${STATUS_NOT_FOUND}" --color WHITE else LogText "Output: NFS daemon is running" Display --indent 2 --text "- Check running NFS daemon" --result "${STATUS_FOUND}" --color GREEN NFS_DAEMON_RUNNING=1 fi fi # ################################################################################# # # Test : STRG-1924 # Description : Check missing nfs in rpcinfo while NFS is running #Register --test-no STRG-1924 --weight L --network NO --category security --description "Checking NFS daemon" #if [ ${SKIPTEST} -eq 0 ]; then # ################################################################################# # # Test : STRG-1926 # Description : Check NFS exports if [ ${NFS_DAEMON_RUNNING} -eq 1 ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi Register --test-no STRG-1926 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Checking NFS exports" if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: check /etc/exports" if [ -f ${ROOTDIR}etc/exports ]; then LogText "Result: ${ROOTDIR}etc/exports exists" FIND=$(${GREPBINARY} -v "^$" ${ROOTDIR}etc/exports | ${GREPBINARY} -v "^#" | ${SEDBINARY} 's/ /!space!/g') if [ -n "${FIND}" ]; then for I in ${FIND}; do I=$(echo ${I} | ${SEDBINARY} 's/!space!/ /g') LogText "Found line: ${I}" done else LogText "Result: ${ROOTDIR}etc/exports does not contain exported file systems" NFS_EXPORTS_EMPTY=1 fi Display --indent 4 --text "- Checking ${ROOTDIR}etc/exports" --result "${STATUS_FOUND}" --color GREEN else LogText "Result: file /etc/exports does not exist" Display --indent 4 --text "- Checking ${ROOTDIR}etc/exports" --result "${STATUS_NOT_FOUND}" --color WHITE fi fi # ################################################################################# # # Test : STRG-1928 # Description : Check for empty exports file while NFS is running if [ ${NFS_DAEMON_RUNNING} -eq 1 ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi Register --test-no STRG-1928 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Checking empty /etc/exports" if [ ${SKIPTEST} -eq 0 ]; then if [ ${NFS_EXPORTS_EMPTY} -eq 1 ]; then Display --indent 6 --text "- Checking empty /etc/exports" --result "${STATUS_SUGGESTION}" --color YELLOW LogText "Result: ${ROOTDIR}etc/exports seems to have no exported file systems" ReportSuggestion "${TEST_NO}" "/etc/exports has no exported file systems, while NFS daemon is running. Check if NFS needs to run on this system" fi fi # ################################################################################# # # Test : STRG-1930 # Description : Check client access to nfs share if [ ${NFS_DAEMON_RUNNING} -eq 1 -a ${NFS_EXPORTS_EMPTY} -eq 0 -a ! "${SHOWMOUNTBINARY}" = "" ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi Register --test-no STRG-1930 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Check client access to nfs share" if [ ${SKIPTEST} -eq 0 ]; then sFIND=$(${SHOWMOUNTBINARY} -e | ${AWKBINARY} '{ print $2 }' | ${SEDBINARY} '1d' | ${GREPBINARY} "\*") if [ -n "${sFIND}" ]; then LogText "Result: all client are allowed to access a NFS share in /etc/exports" Display --indent 4 --text "- Checking NFS client access" --result "ALL CLIENTS" --color YELLOW ReportSuggestion "${TEST_NO}" "Specify clients that are allowed to access a NFS share /etc/exports" AddHP 2 3 else LogText "Result: only some clients are allowed to access a NFS share" Display --indent 4 --text "- Checking NFS client access" --result "${STATUS_OK}" --color GREEN AddHP 3 3 fi fi # ################################################################################# # WaitForKeyPress # #================================================================================ # Lynis - Security Auditing and System Hardening for Linux and UNIX - https://cisofy.com