├── README.md └── enumerateWordpressPlugins.sh /README.md: -------------------------------------------------------------------------------- 1 | # Wordpress Plugin Enumeration - by Not Lucken 2 | 3 | ## How to use it 4 | 5 | ```bash 6 | git clone https://github.com/notlucken/enumWordpressPlugins 7 | 8 | chmod +x enumWordpressPlugins.sh 9 | 10 | ./enumWordpressPlugins -u URL 11 | 12 | ``` 13 | 14 | 15 | -------------------------------------------------------------------------------- /enumerateWordpressPlugins.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | function ctrl_c(){ 4 | echo -e "[!] Exiting..." 5 | exit 1 6 | } 7 | 8 | 9 | #Ctrl + C 10 | trap ctrl_c INT 11 | 12 | declare -i c=0 13 | 14 | function readPlugins(){ 15 | 16 | url=$1 17 | echo -e "\n[!] These are the plugins of $1:\n" 18 | echo -n "[+] "; curl -s -X GET "$url" | grep -oP '/plugins/\K[^.*/]+' | sort -u 19 | } 20 | 21 | function helPanel(){ 22 | echo -e "\n[i] Use\n" 23 | echo -e "\nh) Show this panel\n" 24 | echo -e "\nf) URL\n" 25 | } 26 | 27 | while getopts "hf:" arg; do 28 | case $arg in 29 | h) ;; 30 | f) url=$OPTARG; let c+=1;; 31 | esac 32 | done 33 | 34 | if [ $c -eq 1 ]; then 35 | readPlugins "$url" 36 | else 37 | helPanel 38 | fi 39 | 40 | 41 | --------------------------------------------------------------------------------