From: mivirl <> Date: Sun, 2 Jun 2024 02:56:57 +0000 (-0500) Subject: client: add more files to log by default; include more in info message X-Git-Url: http://mivirl.dev/git/?a=commitdiff_plain;h=e001633a0714f3fec4b50dcfc8148ec00e5ff939;p=remote-logging.git client: add more files to log by default; include more in info message --- diff --git a/src/client.pl b/src/client.pl index 8e20377..7b17fba 100644 --- a/src/client.pl +++ b/src/client.pl @@ -132,7 +132,7 @@ sub login { sub send_info { my $socket = login($clientName, $clientKey); - my $info = join "", ns_system('./busybox', 'sh', '-c', 'hostname; date; uname -a; lspci; lsusb; ifconfig'); + my $info = join "", ns_system('./busybox', 'sh', '-c', 'hostname; date; uname -a; cat /etc/os-release; lspci; lsusb; ifconfig'); $socket->send("info\n"); $socket->send($info); @@ -310,7 +310,9 @@ send_processes(); # These files will have their contents sent as they are updated send_log('/var/log/secure'); send_log('/var/log/auth.log'); +send_log('/var/log/audit/audit.log'); send_log('/var/log/cron'); +send_log('/var/log/sudo.log'); send_log('/var/log/messages'); send_log('/var/log/syslog');