From e001633a0714f3fec4b50dcfc8148ec00e5ff939 Mon Sep 17 00:00:00 2001 From: mivirl <> Date: Sat, 1 Jun 2024 21:56:57 -0500 Subject: [PATCH] client: add more files to log by default; include more in info message --- src/client.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'); -- 2.39.5