From e7393bad3919c1f98541df7ffa6a800a89c9df54 Mon Sep 17 00:00:00 2001 From: lapinou Date: Sat, 20 Apr 2024 04:00:04 +0200 Subject: [PATCH 1/4] Removed unused file in package_base.sh --- sources/install/package_base.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sources/install/package_base.sh b/sources/install/package_base.sh index 90479ea12..ee56370b8 100644 --- a/sources/install/package_base.sh +++ b/sources/install/package_base.sh @@ -36,6 +36,7 @@ function install_rust_cargo() { curl https://sh.rustup.rs -sSf -o /tmp/rustup.sh sh /tmp/rustup.sh -y source "$HOME/.cargo/env" + rm /tmp/rustup.sh add-test-command "cargo --version" } @@ -114,6 +115,7 @@ function install_pyenv() { fapt git curl build-essential curl -o /tmp/pyenv.run https://pyenv.run bash /tmp/pyenv.run + rm /tmp/pyenv.run local v # add pyenv to PATH export PATH="/root/.pyenv/bin:$PATH" @@ -180,6 +182,7 @@ function install_rvm() { rvm install ruby-3.1.2 rvm get head gem update + rm /tmp/rvm.sh add-test-command "rvm --version" } @@ -210,6 +213,7 @@ function install_ohmyzsh() { git -C ~/.oh-my-zsh/custom/plugins/ clone --depth 1 https://github.com/agkozak/zsh-z git -C ~/.oh-my-zsh/custom/plugins/ clone --depth 1 https://github.com/lukechilds/zsh-nvm zsh -c "source ~/.oh-my-zsh/custom/plugins/zsh-nvm/zsh-nvm.plugin.zsh" # this is needed to start an instance of zsh to have the plugin set up + rm /tmp/ohmyzsh.sh } function install_pipx() { @@ -230,6 +234,7 @@ function install_yarn() { echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list apt-get update fapt yarn + rm /tmp/yarn.gpg.armored add-test-command "yarn --help" } @@ -326,6 +331,7 @@ function install_java11() { tar -xzf /tmp/openjdk11-jdk.tar.gz --directory /tmp mkdir -p "/usr/lib/jvm" mv /tmp/jdk-11* /usr/lib/jvm/java-11-openjdk + rm /tmp/openjdk11-jdk.tar.gz add-test-command "/usr/lib/jvm/java-11-openjdk/bin/java --version" } @@ -345,6 +351,7 @@ function install_java21() { tar -xzf /tmp/openjdk21-jdk.tar.gz --directory /tmp mkdir -p "/usr/lib/jvm" mv /tmp/jdk-21* /usr/lib/jvm/java-21-openjdk + rm /tmp/openjdk21-jdk.tar.gz add-test-command "/usr/lib/jvm/java-21-openjdk/bin/java --version" } @@ -416,6 +423,7 @@ function package_base() { # splitting curl | bash to avoid having additional logs put in curl output being executed because of catch_and_retry curl -sL https://git.io/vokNn -o /tmp/apt-fast-install.sh bash /tmp/apt-fast-install.sh + rm /tmp/apt-fast-install.sh deploy_exegol install_exegol-history fapt software-properties-common From f20d8320fb1178981272a4fc7bed45eddf846c2d Mon Sep 17 00:00:00 2001 From: lapinou Date: Sat, 20 Apr 2024 04:01:05 +0200 Subject: [PATCH 2/4] Removed unused files in package_web.sh --- sources/install/package_web.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sources/install/package_web.sh b/sources/install/package_web.sh index e4ac5b625..ec4fd0e37 100644 --- a/sources/install/package_web.sh +++ b/sources/install/package_web.sh @@ -634,6 +634,7 @@ function install_feroxbuster() { bash /tmp/install-feroxbuster.sh # Adding a symbolic link in order for autorecon to be able to find the Feroxbuster binary ln -v -s /opt/tools/feroxbuster/feroxbuster /opt/tools/bin/feroxbuster + rm /tmp/install-feroxbuster.sh add-aliases feroxbuster add-history feroxbuster add-test-command "feroxbuster --help" @@ -818,6 +819,7 @@ function install_soapui() { mkdir -p /opt/tools/SoapUI/ wget https://dl.eviware.com/soapuios/5.7.0/SoapUI-5.7.0-linux-bin.tar.gz -O /tmp/SoapUI.tar.gz tar xvf /tmp/SoapUI.tar.gz -C /opt/tools/SoapUI/ --strip=1 + rm /tmp/SoapUI.tar.gz add-aliases soapui add-history soapui add-test-command "/opt/tools/SoapUI/bin/testrunner.sh" From d505e762974c5a917fb630fc440c87cf9fbaee37 Mon Sep 17 00:00:00 2001 From: lapinou Date: Sat, 20 Apr 2024 04:01:54 +0200 Subject: [PATCH 3/4] Removed unused files in package_misc.sh --- sources/install/package_misc.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/install/package_misc.sh b/sources/install/package_misc.sh index 22ee44c8d..fb1305a3f 100644 --- a/sources/install/package_misc.sh +++ b/sources/install/package_misc.sh @@ -123,6 +123,7 @@ function install_ngrok() { criticalecho-noexit "This installation function doesn't support architecture $(uname -m)" && return fi tar xvzf /tmp/ngrok.tgz -C /opt/tools/bin + rm /tmp/ngrok.tgz add-history ngrok add-test-command "ngrok version" add-to-list "ngrok,https://github.com/inconshreveable/ngrok,Expose a local server behind a NAT or firewall to the internet" From 2e27893c2acb4496595e749a65fd7d66b615ad51 Mon Sep 17 00:00:00 2001 From: lapinou Date: Sat, 20 Apr 2024 04:02:39 +0200 Subject: [PATCH 4/4] Removed unused files in package_osint.sh --- sources/install/package_osint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/install/package_osint.sh b/sources/install/package_osint.sh index 3ffa8510b..9a9e80514 100644 --- a/sources/install/package_osint.sh +++ b/sources/install/package_osint.sh @@ -312,6 +312,7 @@ function install_maltego() { colorecho "Installing Maltego" wget https://maltego-downloads.s3.us-east-2.amazonaws.com/linux/Maltego.v4.3.0.deb -O /tmp/maltegov4.3_package.deb dpkg -i /tmp/maltegov4.3_package.deb + rm /tmp/maltegov4.3_package.deb add-history maltego add-test-command "file /usr/share/maltego/bin/maltego" add-to-list "maltego,https://www.paterva.com/web7/downloads.php,A tool used for open-source intelligence and forensics"