-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added collection of which installed package owns a specific file or command. Note that this artifact is resource-intensive and time-consuming to execute, so it is disabled by default in all profiles
- Loading branch information
Showing
6 changed files
with
105 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
version: 1.0 | ||
condition: command_exists "dpkg" || command_exists "pacman" || command_exists "rpm" | ||
output_directory: /live_response/packages | ||
artifacts: | ||
- | ||
description: List filenames under /bin/. | ||
supported_os: [linux] | ||
collector: find | ||
path: /bin/* | ||
file_type: [f, l] | ||
output_directory: /%temp_directory%/live_response/packages | ||
output_file: binary_files.txt | ||
- | ||
description: List filenames under /sbin/. | ||
supported_os: [linux] | ||
collector: find | ||
path: /sbin/* | ||
file_type: [f, l] | ||
output_directory: /%temp_directory%/live_response/packages | ||
output_file: binary_files.txt | ||
- | ||
description: List filenames under /usr/bin/. | ||
supported_os: [linux] | ||
collector: find | ||
path: /usr/bin/* | ||
file_type: [f, l] | ||
output_directory: /%temp_directory%/live_response/packages | ||
output_file: binary_files.txt | ||
- | ||
description: List filenames under /usr/sbin/. | ||
supported_os: [linux] | ||
collector: find | ||
path: /usr/sbin/* | ||
file_type: [f, l] | ||
output_directory: /%temp_directory%/live_response/packages | ||
output_file: binary_files.txt | ||
- | ||
description: List filenames under /usr/local/bin/. | ||
supported_os: [linux] | ||
collector: find | ||
path: /usr/local/bin/* | ||
file_type: [f, l] | ||
output_directory: /%temp_directory%/live_response/packages | ||
output_file: binary_files.txt | ||
- | ||
description: List filenames under /usr/local/sbin/. | ||
supported_os: [linux] | ||
collector: find | ||
path: /usr/local/sbin/* | ||
file_type: [f, l] | ||
output_directory: /%temp_directory%/live_response/packages | ||
output_file: binary_files.txt | ||
- | ||
description: List filenames under /opt/bin/. | ||
supported_os: [linux] | ||
collector: find | ||
path: /opt/bin/* | ||
file_type: [f, l] | ||
output_directory: /%temp_directory%/live_response/packages | ||
output_file: binary_files.txt | ||
- | ||
description: List filenames under /opt/sbin/. | ||
supported_os: [linux] | ||
collector: find | ||
path: /opt/sbin/* | ||
file_type: [f, l] | ||
output_directory: /%temp_directory%/live_response/packages | ||
output_file: binary_files.txt | ||
- | ||
description: Determine which installed package owns a specific file or command. | ||
supported_os: [linux] | ||
collector: command | ||
condition: command_exists "dpkg" | ||
foreach: sort -u /%temp_directory%/live_response/packages/binary_files.txt | ||
command: dpkg -S "%line%" | ||
output_directory: /live_response/packages | ||
output_file: dpkg_-S.txt | ||
redirect_stderr_to_stdout: true | ||
- | ||
description: Determine which installed package owns a specific file or command. | ||
supported_os: [linux] | ||
collector: command | ||
condition: command_exists "pacman" | ||
foreach: sort -u /%temp_directory%/live_response/packages/binary_files.txt | ||
command: pacman -Q -o "%line%" | ||
output_directory: /live_response/packages | ||
output_file: pacman_-Q_-o.txt | ||
redirect_stderr_to_stdout: true | ||
- | ||
description: Determine which installed package owns a specific file or command. | ||
supported_os: [linux] | ||
collector: command | ||
condition: command_exists "rpm" | ||
foreach: sort -u /%temp_directory%/live_response/packages/binary_files.txt | ||
command: rpm -q -f "%line%" | sed -e "s|$|: %line%|" | ||
output_directory: /live_response/packages | ||
output_file: rpm_-q_-f.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters