Starting Comprehensive State Discovery on raspberrypi at Sat Aug 23 22:26:48 EDT 2025
Output will be saved in /tmp/system_audit_raspberrypi_20250823_222648
-----------------------------------------------------

=====================================================
>= CPU Information
=====================================================
Running command: lscpu
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/1_infrastructure/cpu_info.txt
Successfully captured CPU Information.

=====================================================
>= Memory Information
=====================================================
Running command: free -h
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/1_infrastructure/memory_info.txt
Successfully captured Memory Information.

=====================================================
>= PCI Devices (including GPU)
=====================================================
Running command: lspci -v
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/1_infrastructure/pci_devices.txt
Successfully captured PCI Devices (including GPU).

=====================================================
>= USB Devices
=====================================================
Running command: lsusb -v
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/1_infrastructure/usb_devices.txt
Successfully captured USB Devices.

=====================================================
>= Block Devices & Storage
=====================================================
Running command: lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/1_infrastructure/storage_layout.txt
Successfully captured Block Devices & Storage.

=====================================================
>= Filesystem Usage
=====================================================
Running command: df -hT
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/1_infrastructure/disk_usage.txt
Successfully captured Filesystem Usage.

=====================================================
>= RAID Status
=====================================================
Running command: cat /proc/mdstat || true
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/1_infrastructure/raid_status.txt
Successfully captured RAID Status.

=====================================================
>= OS & Kernel Version
=====================================================
Running command: cat /etc/os-release && uname -a
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/1_infrastructure/os_info.txt
Successfully captured OS & Kernel Version.

=====================================================
>= Network Interfaces
=====================================================
Running command: ip -br a
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/1_infrastructure/network_interfaces.txt
Successfully captured Network Interfaces.

=====================================================
>= Routing Table
=====================================================
Running command: ip r
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/1_infrastructure/routing_table.txt
Successfully captured Routing Table.

=====================================================
>= DNS Configuration
=====================================================
Running command: cat /etc/resolv.conf
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/1_infrastructure/dns_config.txt
Successfully captured DNS Configuration.

=====================================================
>= Firewall Status (UFW)
=====================================================
Running command: sudo ufw status verbose || true
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/1_infrastructure/firewall_ufw.txt
sudo: ufw: command not found
Successfully captured Firewall Status (UFW).

=====================================================
>= Firewall Status (iptables)
=====================================================
Running command: sudo iptables -L -n -v || true
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/1_infrastructure/firewall_iptables.txt
Successfully captured Firewall Status (iptables).

=====================================================
>= Systemd Services (Enabled)
=====================================================
Running command: systemctl list-unit-files --state=enabled
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/2_services/systemd_enabled_services.txt
Successfully captured Systemd Services (Enabled).

=====================================================
>= Systemd Services (Running)
=====================================================
Running command: systemctl list-units --type=service --state=running
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/2_services/systemd_running_services.txt
Successfully captured Systemd Services (Running).

=====================================================
>= NFS Exports
=====================================================
Running command: showmount -e localhost || true
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/3_data_storage/nfs_exports.txt
Successfully captured NFS Exports.

=====================================================
>= Mounted File Systems
=====================================================
Running command: mount
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/3_data_storage/mounts.txt
Successfully captured Mounted File Systems.

=====================================================
>= Searching for critical data directories
=====================================================

=====================================================
>= User Accounts
=====================================================
Running command: cat /etc/passwd
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/4_security/users.txt
Successfully captured User Accounts.

=====================================================
>= Sudoers Configuration
=====================================================
Running command: sudo cat /etc/sudoers
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/4_security/sudoers.txt
Successfully captured Sudoers Configuration.

=====================================================
>= SSH Daemon Configuration
=====================================================
Running command: sudo cat /etc/ssh/sshd_config
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/4_security/sshd_config.txt
Successfully captured SSH Daemon Configuration.

=====================================================
>= Last Logins
=====================================================
Running command: last -a
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/4_security/last_logins.txt
Successfully captured Last Logins.

=====================================================
>= Open Ports
=====================================================
Running command: sudo ss -tuln
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/4_security/open_ports.txt
Successfully captured Open Ports.

=====================================================
>= Cron Jobs (System)
=====================================================
Running command: sudo cat /etc/crontab || true
Outputting to: /tmp/system_audit_raspberrypi_20250823_222648/discovery/4_security/crontab_system.txt
Successfully captured Cron Jobs (System).
/tmp/comprehensive_discovery.sh: line 131: user: unbound variable
