Skip to content

Instantly share code, notes, and snippets.

@saturn99
Forked from Roni-Carta/wp-wordlist.sh
Created July 30, 2022 08:28
Show Gist options
  • Save saturn99/2510532e837c7df71debb17eee9f6b69 to your computer and use it in GitHub Desktop.
Save saturn99/2510532e837c7df71debb17eee9f6b69 to your computer and use it in GitHub Desktop.
wp-wordlist helps you create wordlist of all the Wordpress' Themes and Plugins available
wp-wordlist()
{
option="$1"
if [[ "$option" == *"plugin"* ]]; then
curl -s https://plugins.svn.wordpress.org/ | tail -n +5 | sed -e 's/<[^>]*>//g' -e 's/\///' -e 's/ \+//gp' | grep -v "Powered by Apache" | sort -u
elif [[ "$option" == *"theme"* ]]; then
curl -s https://themes.svn.wordpress.org/ | tail -n +5 | sed -e 's/<[^>]*>//g' -e 's/\///' -e 's/ \+//gp' | grep -v "Powered by Apache" | sort -u
fi
}
wp-wordlist "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment