From 11168c8129fc240e336b6056f7f720ede7d32c41 Mon Sep 17 00:00:00 2001 From: Kaj Forney Date: Mon, 3 Feb 2020 13:43:06 -0700 Subject: [PATCH] Add post-install scripts for Autopsy 4 and Resilio. --- config/pentest-distro-builder.chroot | 22 ------------- .../etc/skel/post-install/install-autopsy.sh | 31 +++++++++++++++++++ .../etc/skel/post-install/install-resilio.sh | 4 +++ 3 files changed, 35 insertions(+), 22 deletions(-) create mode 100644 filesystem/etc/skel/post-install/install-autopsy.sh create mode 100644 filesystem/etc/skel/post-install/install-resilio.sh diff --git a/config/pentest-distro-builder.chroot b/config/pentest-distro-builder.chroot index f2e81a01..6d236344 100644 --- a/config/pentest-distro-builder.chroot +++ b/config/pentest-distro-builder.chroot @@ -52,28 +52,6 @@ sudo apt update && sudo apt install codium -y #Make Nemo the defualt file manager xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search -#Install the REAL Autopsy for Linux. -apt remove sleuthkit autopsy libtsk13 -y -apt install testdisk -y -wget -q -O - https://download.bell-sw.com/pki/GPG-KEY-bellsoft | sudo apt-key add - -echo "deb [arch=amd64] https://apt.bell-sw.com/ stable main" | sudo tee /etc/apt/sources.list.d/bellsoft.list -apt update -apt install bellsoft-java8 -y -export JAVA_HOME=/usr/lib/jvm/bellsoft-java8-amd64/ -echo "JAVA_HOME=/usr/lib/jvm/bellsoft-java8-amd64/" >> /etc/environment -wget https://github.com/sleuthkit/sleuthkit/releases/download/sleuthkit-4.7.0/sleuthkit-java_4.7.0-1_amd64.deb -apt install ./sleuthkit-java_4.7.0-1_amd64.deb -y -rm sleuthkit-java_4.7.0-1_amd64.deb -wget https://github.com/sleuthkit/autopsy/releases/download/autopsy-4.13.0/autopsy-4.13.0.zip -unzip autopsy-4.13.0.zip -rm autopsy-4.13.0.zip -mv autopsy-4.13.0 /opt/autopsy -cd /opt/autopsy -chmod +x unix_setup.sh -./unix_setup.sh -cd /usr/bin -ln -s /opt/autopsy/bin/autopsy autopsy - #Distro-specific stuff DISTRO=$(cat /etc/lsb-release | grep DISTRIB_ID | cut -c 12-30) diff --git a/filesystem/etc/skel/post-install/install-autopsy.sh b/filesystem/etc/skel/post-install/install-autopsy.sh new file mode 100644 index 00000000..f3cf2a91 --- /dev/null +++ b/filesystem/etc/skel/post-install/install-autopsy.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +#Root check! +if [ "$EUID" -ne 0 ] +then + echo "You are not root. Please re-run this script with sudo." + exit 1 +fi + +apt remove sleuthkit autopsy libtsk13 -y +apt install testdisk -y +wget -q -O - https://download.bell-sw.com/pki/GPG-KEY-bellsoft | sudo apt-key add - +echo "deb [arch=amd64] https://apt.bell-sw.com/ stable main" | sudo tee /etc/apt/sources.list.d/bellsoft.list +apt update +apt install bellsoft-java8 -y +export JAVA_HOME=/usr/lib/jvm/bellsoft-java8-amd64/ +echo "JAVA_HOME=/usr/lib/jvm/bellsoft-java8-amd64/" >> /etc/environment +wget https://github.com/sleuthkit/sleuthkit/releases/download/sleuthkit-4.8.0/sleuthkit-java_4.8.0-1_amd64.deb +apt install ./sleuthkit-java_4.8.0-1_amd64.deb -y +rm sleuthkit-java_4.8.0-1_amd64.deb +wget https://github.com/sleuthkit/autopsy/releases/download/autopsy-4.14.0/autopsy-4.14.0.zip +unzip autopsy-4.14.0.zip +rm autopsy-4.14.0.zip +mv autopsy-4.14.0 /opt/autopsy +cd /opt/autopsy +chmod +x unix_setup.sh +./unix_setup.sh +cd /usr/bin +ln -s /opt/autopsy/bin/autopsy autopsy + +echo "Done! Autopsy 4 should be installed." \ No newline at end of file diff --git a/filesystem/etc/skel/post-install/install-resilio.sh b/filesystem/etc/skel/post-install/install-resilio.sh new file mode 100644 index 00000000..78653180 --- /dev/null +++ b/filesystem/etc/skel/post-install/install-resilio.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +wget https://download-cdn.resilio.com/2.6.4.1344/Debian/resilio-sync_2.6.4.1344-1_amd64.deb +apt install ./resilio-sync_2.6.4.1344-1_amd64.deb -y \ No newline at end of file