#!/bin/bash # # Check an argument was given then list out the users if WordPress # install is leaking them. if [ ! -z "$1" ] then curl -s https://$1/wp-json/wp/v2/users | jq . | grep name | cut -d ":" -f2 | cut -d '"' -f2 else echo "Enter a TLD (ex: wordpress.org) next time buddy!" echo "(No www, no https, no trailing slash)" fi