Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix binwalk dependencies #348

Merged
merged 5 commits into from
Jun 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sources/assets/shells/aliases.d/binwalk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alias binwalk='binwalk --run-as=root'
15 changes: 11 additions & 4 deletions sources/install/package_forensic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,34 @@ source common.sh
function install_forensic_apt_tools() {
# CODE-CHECK-WHITELIST=add-aliases
colorecho "Installing forensic apt tools"
fapt pst-utils binwalk foremost testdisk fdisk sleuthkit
fapt pst-utils foremost testdisk fdisk sleuthkit

add-history binwalk
add-history foremost
add-history testdisk
add-history fdisk

add-test-command "pst2ldif -V" # Reads a PST and prints the tree structure to the console
add-test-command "binwalk --help" # Tool to find embedded files
add-test-command "foremost -V" # Alternative to binwalk
add-test-command "testdisk --help" # Recover lost partitions
add-test-command "fdisk --help" # Creating and manipulating disk partition table
add-test-command "blkcalc -V" # Collection of command line tools that allow you to investigate disk images

add-to-list "pst-utils,https://manpages.debian.org/jessie/pst-utils/readpst.1,pst-utils is a set of tools for working with Outlook PST files."
add-to-list "binwalk,https://github.com/ReFirmLabs/binwalk,Binwalk is a tool for analyzing / reverse engineering / and extracting firmware images."
add-to-list "foremost,https://doc.ubuntu-fr.org/foremost,Foremost is a forensic tool for recovering files based on their headers / footers / and internal data structures."
add-to-list "testdisk,https://github.com/cgsecurity/testdisk,Partition recovery and file undelete utility"
add-to-list "fdisk,https://github.com/karelzak/util-linux,Collection of basic system utilities / including fdisk partitioning tool"
add-to-list "sleuthkit,https://github.com/sleuthkit/sleuthkit,Forensic toolkit to analyze volume and file system data"
}

function install_binwalk() {
colorecho "Installing binwalk"
fapt squashfs-tools binwalk
add-aliases binwalk
add-history binwalk
add-test-command "binwalk --help"
add-to-list "binwalk,https://github.com/ReFirmLabs/binwalk,Binwalk is a tool for analyzing / reverse engineering / and extracting firmware images."
}

function install_volatility2() {
colorecho "Installing volatility"
fapt pcregrep yara libjpeg-dev zlib1g-dev
Expand Down Expand Up @@ -119,6 +125,7 @@ function package_forensic() {
local end_time
start_time=$(date +%s)
install_forensic_apt_tools
install_binwalk # Tool to find embedded files
install_volatility2 # Memory analysis tool
install_volatility3 # Memory analysis tool v2
install_trid # filetype detection tool
Expand Down
Loading