Skip to content

Commit 53f7f1d

Browse files
authored
Fix RubyGems installation command in wpscan.sh
Updated installation instructions for RubyGems in the WPScan script to reflect the correct package manager command for Ubuntu/Debian.
1 parent 58167fd commit 53f7f1d

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
@@ -19,11 +19,12 @@ source /usr/local/bin/enginescript/scripts/functions/shared/enginescript-common.
1919
# Start Main Script
2020

2121
# WPScan
22-
command -v gem >/dev/null 2>&1 || { echo "Error: RubyGems (gem) is not installed or not in PATH. On Ubuntu/Debian, install with: apt-get install ruby-full. For other systems, see: https://www.ruby-lang.org/en/documentation/installation/. Then rerun this script." >&2; exit 1; }
22+
command -v gem >/dev/null 2>&1 || { echo "Error: RubyGems (gem) is not installed or not in PATH. On Ubuntu/Debian, install with: apt install ruby-full. For other systems, see: https://www.ruby-lang.org/en/documentation/installation/. Then rerun this script." >&2; exit 1; }
2323

2424
# Install Banner
2525
print_install_banner "WPScan"
2626

2727
# Always download the latest version of WPScan. Never source a specific version
2828
# No need for more verbose error messaging
29+
# Better to not use --user-install so the application has better system access to WordPress. No further changes are needed.
2930
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)