Last active
June 29, 2017 15:10
-
-
Save vmanyushin/329df2d376591283a1d7 to your computer and use it in GitHub Desktop.
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
find ./ -name '*.php' -exec grep -l '^<?php.*eval' {} \; | xargs sed -i '1s/.*/<?php/' | |
find ./ -name '*.php' -o -name '*.html' -exec grep -l '<script id="data:text/javascript;charset=utf-8;base64' {} \; | xargs sed -i 's#^<script id="data:text/javascript;charset=utf-8;base64.*$##g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment