From 248789f24c7ece8719eb414f43aa113be1dbc258 Mon Sep 17 00:00:00 2001 From: moozzi Date: Sun, 23 Feb 2025 17:29:58 +0100 Subject: [PATCH] Add security tools repository to install masscan on OpenSUSE --- ronin-install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ronin-install.sh b/ronin-install.sh index 6f0342a..e6bc37a 100755 --- a/ronin-install.sh +++ b/ronin-install.sh @@ -450,6 +450,14 @@ function auto_install_masscan() { if ! command -v masscan >/dev/null; then log "Installing masscan ..." + log $os_platform + log $(( -f /etc/SuSE-release )) + if [[ "$os_platform" == "Linux" ]] && [[ -f /etc/SuSE-release ]]; then + log $os_platform + $sudo zypper addrepo https://download.opensuse.org/repositories/security/openSUSE_Tumbleweed/security.repo || return $? + $sudo zypper refresh || return $? + fi + install_packages masscan || \ warn "Failed to install masscan. Proceeding anyways ..." fi