From f555d274352473f8f59d79cf982e267dd4ec206b Mon Sep 17 00:00:00 2001 From: Zawadi Date: Tue, 18 Jul 2023 11:28:27 +0200 Subject: [PATCH 1/2] Add cPanel logs --- acquire/acquire.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/acquire/acquire.py b/acquire/acquire.py index 3f754a82..bad1b329 100644 --- a/acquire/acquire.py +++ b/acquire/acquire.py @@ -1282,6 +1282,16 @@ class RemoteAccess(Module): ] +@register_module("--webhosting") +class WebHosting(Module): + DESC = "Web hosting software log files" + SPEC = [ + # cPanel + ("dir", "/usr/local/cpanel/logs"), + ("glob", ".lastlogin", from_user_home), + ] + + @register_module("--wer") class WER(Module): DESC = "WER (Windows Error Reporting) related files" @@ -1960,6 +1970,7 @@ def upload_files( History, SSH, Var, + WebHosting, ], "bsd": [ Etc, From baf12fb4348838942c2ab6f42da262a31361527c Mon Sep 17 00:00:00 2001 From: Zawadi Done Date: Tue, 18 Jul 2023 13:53:40 +0200 Subject: [PATCH 2/2] Update acquire/acquire.py Co-authored-by: Miauwkeru --- acquire/acquire.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acquire/acquire.py b/acquire/acquire.py index bad1b329..7cb51deb 100644 --- a/acquire/acquire.py +++ b/acquire/acquire.py @@ -1288,7 +1288,7 @@ class WebHosting(Module): SPEC = [ # cPanel ("dir", "/usr/local/cpanel/logs"), - ("glob", ".lastlogin", from_user_home), + ("file", ".lastlogin", from_user_home), ]