WPScan Bash Script
#!/bin/bash
# Check if URL is provided as an argument
if [ -z "$1" ]; then
echo "Usage: $0 <url>"
exit 1
fi
# Store the URL in a variable
URL=$1
# Execute the docker command with the provided URL
# the api-token is obtained for free from the wpscan.com website (registration required)
sudo docker run -it --rm wpscanteam/wpscan --enumerate u --api-token <token-value> --url "$URL"



