Skip to content

Instantly share code, notes, and snippets.

@gitnepal
Created May 31, 2018 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gitnepal/464895d2e740b07271a1399719135b97 to your computer and use it in GitHub Desktop.
Save gitnepal/464895d2e740b07271a1399719135b97 to your computer and use it in GitHub Desktop.
WordPress Users Enumeration {/wp-json/wp/v2/users} - Short and easy , @gitnepal
#!/bin/bash
#curl"//wp-json/wp/v2/users" //rootnep.al /@___0x00
if [[ $# -eq 0 ]] ;
then
echo "Usage: ./wpuser.sh wpdomain"
exit 1
else
curl 'https://'$1'/wp-json/wp/v2/users' | jq '.[]|.slug' | tr -d '"' | sort -u > $1.txt
echo "Users:"
cat $1.txt
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment