Created
May 31, 2018 16:06
-
-
Save gitnepal/464895d2e740b07271a1399719135b97 to your computer and use it in GitHub Desktop.
WordPress Users Enumeration {/wp-json/wp/v2/users} - Short and easy , @gitnepal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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