-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathwpscan.sh
More file actions
31 lines (24 loc) · 2.01 KB
/
wpscan.sh
File metadata and controls
31 lines (24 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
#----------------------------------------------------------------------------------
# EngineScript - A High-Performance WordPress Server Built on Ubuntu and Cloudflare
#----------------------------------------------------------------------------------
# Website: https://EngineScript.com
# GitHub: https://github.com/Enginescript/EngineScript
# License: GPL v3.0
#----------------------------------------------------------------------------------
# EngineScript Variables
source /usr/local/bin/enginescript/enginescript-variables.txt || { echo "Error: Failed to source /usr/local/bin/enginescript/enginescript-variables.txt" >&2; exit 1; }
source /home/EngineScript/enginescript-install-options.txt || { echo "Error: Failed to source /home/EngineScript/enginescript-install-options.txt" >&2; exit 1; }
# Source shared functions library
source /usr/local/bin/enginescript/scripts/functions/shared/enginescript-common.sh || { echo "Error: Failed to source /usr/local/bin/enginescript/scripts/functions/shared/enginescript-common.sh" >&2; exit 1; }
#----------------------------------------------------------------------------------
# Start Main Script
# WPScan
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; }
# Install Banner
print_install_banner "WPScan"
# Always download the latest version of WPScan. Never source a specific version
# No need for more verbose error messaging
# We do not use --user-install so that wpscan has better access to the wordpress filesystem.
# Always install the latest release of WPScan. No need to track the version installed or implement logging.
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; }