Created
October 26, 2013 08:09
-
-
Save ScreamingDev/7166633 to your computer and use it in GitHub Desktop.
Find all WordPress Plugins Are you worried about the plugins that run in your wordpress? Did you read about some issues, bugs or hacks in a WP plugin?
Fetch all you got installed and check whether they are infected or a security issue.
This file contains hidden or 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 | |
| ### | |
| # Run this from your document root | |
| # It will search for "*/wp-content/plugins" folder and list everything in it. | |
| ### | |
| # temporary file for found plugins | |
| TFILE="/tmp/$(basename $0).$$.tmp" | |
| echo "Fetch all plugin folder..."; | |
| for D in `find -P -maxdepth 4 -type d -path "*/wp-content/plugins"`; do | |
| ls -1 ${D} >> $TFILE | |
| echo -n "."; | |
| done; | |
| echo ""; | |
| echo "Stored in wp_plugins.log"; | |
| $(cat $TFILE | sort | uniq) > wp_plugins.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment