Skip to content

Instantly share code, notes, and snippets.

@ScreamingDev
Created October 26, 2013 08:09
Show Gist options
  • Select an option

  • Save ScreamingDev/7166633 to your computer and use it in GitHub Desktop.

Select an option

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.
#!/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