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. # ###################################################################### # # Helper program to generate specific details such as host IDs # ###################################################################### # # How to use: # ------------ # Run: lynis generate <option> # ###################################################################### SAVEFILE=0 GENERATE_ARGS="hostids systemd-units" if [ $# -gt 0 ]; then case $1 in "hostids") if [ $# -gt 1 ]; then shift if [ $1 = "--save" ]; then SAVEFILE=1 fi fi # Generate random host IDs case "${OS}" in "AIX") # hexdump does not exist on AIX HOSTID=$(head -c20 < /dev/urandom | xxd -c 20 -p) HOSTID2=$(head -c32 < /dev/urandom | xxd -c 32 -p) ;; *) # xxd does not exist on FreeBSD # Note: hexdump may omit leading or trailing zeroes. # Take 100 characters as input, turn to hex, then take first 40/64. HOSTID=$(head -c100 < /dev/urandom | hexdump -ve '"%.2x"' | head -c40) HOSTID2=$(head -c100 < /dev/urandom | hexdump -ve '"%.2x"' | head -c64) ;; esac ${ECHOCMD} "Generated host identifiers" ${ECHOCMD} "- hostid: ${HOSTID}" ${ECHOCMD} "- hostid2: ${HOSTID2}" if [ ${SAVEFILE} -eq 1 ]; then FILE="${ROOTDIR}etc/lynis/hostids" if [ -f ${FILE} ]; then ${ECHOCMD} "Error: hostids file already exists (${FILE})" ${ECHOCMD} "Remove the file first and rerun command" ExitFatal else OUTPUT=$(touch ${FILE} 2> /dev/null) if [ $? -eq 0 ]; then ${ECHOCMD} "Created hostids file (${FILE})" echo "# generated using 'lynis generate hostids --save'" > ${FILE} echo "hostid=${HOSTID}" >> ${FILE} echo "hostid2=${HOSTID2}" >> ${FILE} else ExitFatal "Error: could not created hostids file (${FILE}). Issue with permissions?" fi fi fi ExitClean ;; "cronjob") ${ECHOCMD} "Not implemented yet" ;; "systemd-units") ${ECHOCMD} "" ${ECHOCMD} "${BG_BLUE}Step 1: create service unit (/etc/systemd/system/lynis.service)${NORMAL}" ${ECHOCMD} "" ${ECHOCMD} "#################################################################################" ${ECHOCMD} "#" ${ECHOCMD} "# Lynis service file for systemd" ${ECHOCMD} "#" ${ECHOCMD} "#################################################################################" ${ECHOCMD} "# Do not remove, so Lynis can provide a hint when a newer unit is available" ${ECHOCMD} "# Generator=lynis" ${ECHOCMD} "# Version=1" ${ECHOCMD} "#################################################################################" ${ECHOCMD} "" ${ECHOCMD} "[Unit]" ${ECHOCMD} "Description=Security audit and vulnerability scanner" ${ECHOCMD} "Documentation=https://cisofy.com/docs/" ${ECHOCMD} "" ${ECHOCMD} "[Service]" ${ECHOCMD} "Nice=19" ${ECHOCMD} "IOSchedulingClass=best-effort" ${ECHOCMD} "IOSchedulingPriority=7" ${ECHOCMD} "Type=simple" MYBINARY=$(which lynis 2>/dev/null) MOREOPTIONS="" if [ -n "${LICENSE_KEY}" ]; then MOREOPTIONS=" --upload" fi ${ECHOCMD} "ExecStart=${MYBINARY:-/path/to/lynis} audit system --cronjob${MOREOPTIONS}" ${ECHOCMD} "" ${ECHOCMD} "[Install]" ${ECHOCMD} "WantedBy=multi-user.target" ${ECHOCMD} "" ${ECHOCMD} "#################################################################################" ${ECHOCMD} "" ${ECHOCMD} "" ${ECHOCMD} "${BG_BLUE}Step 2: create timer unit (/etc/systemd/system/lynis.timer)${NORMAL}" ${ECHOCMD} "" ${ECHOCMD} "#################################################################################" ${ECHOCMD} "#" ${ECHOCMD} "# Lynis timer file for systemd" ${ECHOCMD} "#" ${ECHOCMD} "#################################################################################" ${ECHOCMD} "# Do not remove, so Lynis can provide a hint when a newer unit is available" ${ECHOCMD} "# Generator=lynis" ${ECHOCMD} "# Version=1" ${ECHOCMD} "#################################################################################" ${ECHOCMD} "" ${ECHOCMD} "[Unit]" ${ECHOCMD} "Description=Daily timer for the Lynis security audit and vulnerability scanner" ${ECHOCMD} "" ${ECHOCMD} "[Timer]" ${ECHOCMD} "OnCalendar=daily" ${ECHOCMD} "RandomizedDelaySec=1800" ${ECHOCMD} "Persistent=false" ${ECHOCMD} "" ${ECHOCMD} "[Install]" ${ECHOCMD} "WantedBy=timers.target" ${ECHOCMD} "" ${ECHOCMD} "#################################################################################" ${ECHOCMD} "" ${ECHOCMD} "" ${ECHOCMD} "${BG_BLUE}Step 3 - Enable the timer${NORMAL}" ${ECHOCMD} "" ${ECHOCMD} "Tell systemd you made changes: systemctl daemon-reload" ${ECHOCMD} "" ${ECHOCMD} "Enable and start the timer (so no reboot is needed): systemctl enable --now lynis.timer" ${ECHOCMD} "" ${ECHOCMD} "" ${ECHOCMD} "${BG_BLUE}Optional - Customize${NORMAL}" ${ECHOCMD} "" ${ECHOCMD} "Want to override the timer? Run: systemctl edit lynis.timer" ${ECHOCMD} "Note: set the timer by first resetting it, then set the preferred value" ${ECHOCMD} "" ${ECHOCMD} "[Timer]" ${ECHOCMD} "OnCalendar=" ${ECHOCMD} "OnCalendar=*-*-* 03:00:00" ${ECHOCMD} "" ;; *) ${ECHOCMD} "Unknown argument '${RED}$1${NORMAL}' for lynis generate" ;; esac else ${ECHOCMD} "\n ${WHITE}Provide an additional argument${NORMAL}\n\n" for ITEM in ${GENERATE_ARGS}; do ${ECHOCMD} " lynis generate ${BROWN}${ITEM}${NORMAL}" done ${ECHOCMD} "\n" ${ECHOCMD} "" ${ECHOCMD} "Extended help about the generate command can be provided with: $0 show commands generate" fi ExitClean # EOF