Skip to content

Commit 6d83266

Browse files
authored
Modify WPScan installation to always fetch latest version
Ensure the latest version of WPScan is always downloaded.
1 parent 3def54c commit 6d83266

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/install/tools/security/wpscan.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ source /usr/local/bin/enginescript/scripts/functions/shared/enginescript-common.
2020

2121
# WPScan
2222
command -v gem >/dev/null 2>&1 || { echo "Error: RubyGems (gem) is not installed or not in PATH. Please install Ruby/RubyGems before installing WPScan." >&2; exit 1; }
23-
gem install wpscan || { echo "Error: Failed to install WPScan via gem. For troubleshooting, rerun with 'gem install wpscan --verbose' and consult the official RubyGems or WPScan documentation." >&2; exit 1; }
2423

2524
print_install_banner "WPScan"
25+
# Always download the latest version of WPScan. Never source a specific version
26+
gem install wpscan || { echo "Error: Failed to install WPScan via gem. For troubleshooting, rerun with 'gem install wpscan --verbose' and consult the official RubyGems or WPScan documentation." >&2; exit 1; }

0 commit comments

Comments
 (0)