Skip to content

Instantly share code, notes, and snippets.

@boogah
Created November 12, 2012 19:41
Show Gist options
  • Save boogah/4061442 to your computer and use it in GitHub Desktop.
Save boogah/4061442 to your computer and use it in GitHub Desktop.
Check DB for malicious post insertions
SELECT * FROM wp_posts WHERE post_content LIKE '%<iframe%'
UNION
SELECT * FROM wp_posts WHERE post_content LIKE '%<noscript%'
UNION
SELECT * FROM wp_posts WHERE post_content LIKE '%display:%';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment