Skip to content

Instantly share code, notes, and snippets.

@madmuffin1
Created July 23, 2014 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madmuffin1/ce9a9933b5c4da60fcc2 to your computer and use it in GitHub Desktop.
Save madmuffin1/ce9a9933b5c4da60fcc2 to your computer and use it in GitHub Desktop.
Remove malicious code from scripts affected by mailpoet/wysija vulnerability
grep -l yhvobwawyd * -R | xargs -i sh -c "echo {} && sed -i '1 s/^.*$/<?php/' \"{}\";"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment