Skip to content

Commit 9cec5e4

Browse files
CopilotPDowney
andauthored
Add gem prerequisite check and improve WPScan error messages
Agent-Logs-Url: https://github.com/EngineScript/EngineScript/sessions/a89a56b0-59f6-4948-be10-d575617f71bc Co-authored-by: PDowney <[email protected]>
1 parent 6304823 commit 9cec5e4

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ Changes are organized by date, with the most recent changes listed first.
66

77
## 2026-04-10
88

9+
### 🔒 WPSCAN PREREQUISITE CHECK AND ERROR MESSAGE IMPROVEMENTS
10+
11+
- Added a prerequisite check for the `gem` command availability in `scripts/install/tools/security/wpscan.sh` to provide a clearer error message if Ruby/RubyGems is not installed or not in PATH.
12+
- Updated the `gem install wpscan` failure error message to include specific troubleshooting steps: rerunning with `--verbose` flag and links to RubyGems command reference and issue tracker.
13+
14+
## 2026-04-10
15+
916
### 🐛 VHOST IMPORT LOGGING / EXTRACTION FLOW FIXES
1017

1118
- Removed a duplicate WordPress extraction block in `scripts/functions/vhost/vhost-import.sh` that re-ran archive extraction and wp-config path detection after those steps had already completed.

scripts/install/tools/security/wpscan.sh

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

2121
# WPScan
22-
gem install wpscan || { echo "Error: Failed to install WPScan via gem. Check logs or documentation for troubleshooting." >&2; exit 1; }
22+
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 see https://guides.rubygems.org/command-reference/ and https://github.com/rubygems/rubygems/issues." >&2; exit 1; }
2324

2425
print_install_banner "WPScan"

0 commit comments

Comments
 (0)