Skip to content

Instantly share code, notes, and snippets.

@Roni-Carta
Created July 29, 2022 19:52
Show Gist options
  • Save Roni-Carta/4b9849775f99977643bfb089d600272c to your computer and use it in GitHub Desktop.
Save Roni-Carta/4b9849775f99977643bfb089d600272c 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