audit-labs/audit-tools
A collection of scripts, queries, and other goodies you can use in an audit.
clone: git clone https://gitbay.org/audit-labs/audit-tools.git
main: os/linux/README.md · raw
1# `report/linux.sh`
2
3``` shell
4./report/linux.sh
5```
6
7 _ ___ _ _ _ ___ __ ___ ____ ____ _____ ____ ___ ____ _____
8 | | |_ _| \ | | | | \ \/ / / _ \/ ___| | _ \| ____| _ \ / _ \| _ \_ _|
9 | | | || \| | | | |\ / | | | \___ \ | |_) | _| | |_) | | | | |_) || |
10 | |___ | || |\ | |_| |/ \ | |_| |___) | | _ <| |___| __/| |_| | _ < | |
11 |_____|___|_| \_|\___//_/\_\ \___/|____/ |_| \_\_____|_| \___/|_| \_\|_|
12
13
14
15 ==========================================
16 # SECTION 00: Script Info
17 ==========================================
18 Execution Date and Time: Wed May 7 11:35:52 AM CDT 2025
19 Script Name: ./linux.sh
20 User Running the Script: root (called by: cmc)
21
22
23
24 ==========================================
25 # SECTION 01: System Info
26 ==========================================
27 ## Hostname
28 hera
29 ## Kernel Version
30 6.14.4-400.asahi.fc42.aarch64+16k
31 ## os-release
32 NAME="Fedora Linux Asahi Remix"
33 VERSION="42 (Forty Two [Adams])"
34 RELEASE_TYPE=stable
35 ID=fedora-asahi-remix
36 ID_LIKE=fedora
37
38# `ssh_root_login.sh`
39
40``` shell
41./ssh_root_login.sh
42```
43
44 PermitRootLogin no
45
46# `passwords.sh`
47
48``` shell
49./passwords.sh
50```
51
52 Starting analysis of authentication and login parameters...
53 Checking /etc/pam.d/system-auth for password parameters...
54 /etc/pam.d/system-auth file not found.
55 Analyzing /etc/login.defs...
56 Contents of /etc/login.defs: