Search Results

Search: Posts Made By: dhasbro
2,722
Posted By dhasbro
Hello, Thanks much for the replies! ...
Hello,

Thanks much for the replies!

Here is the sample of the data in hundreds of files, this is the end of one of the files
</html><script>^M
function vdch() {^M
...
2,722
Posted By dhasbro
Hello, Had another situation occur that was...
Hello,

Had another situation occur that was about the same as this one, except the javascript is across multiple lines (vs all on the same line like my first issue). I did get those files cleaned...
2,722
Posted By dhasbro
Hello, I think that did the trick! I used: ...
Hello,

I think that did the trick! I used:
grep -rl 646f63756d6 * | sed 's/ /\ /g' | xargs sed -i 's#\(.*\)<script>\(.*\)</script>\(.*\)#\1\3#'

to replace a number of files in a test...
2,722
Posted By dhasbro
Hello, The entire statement needs to be...
Hello,

The entire statement needs to be removed, including the <script> and </script>.

Thanks,
David
2,722
Posted By dhasbro
Remove java code from multiple files
Hello,

We have a client who has had an FTP injection attack on their account. Over 600 files have this code added to the files:

<script>var t="";var...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 07:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy