Server got hacked and a fair amount of files were edited. We noticed that the code that was inserted were typically done between delimiters (e.g. /*e21234*/ blah blah /*/e21234*/). What is the most efficient way to remove this from a large number of files on a linux box? (I tried using sed but couldn't quite get it. I'm open to using perl or whatever would work)
Asked
Active
Viewed 908 times
0
user40570
- 155
- 2
- 5
1 Answers
0
Did you try this:
sed 's,/\*e21234\*/.*e21234\*/,,g'
But I agree that restoring a backup is probably best!
ETL
- 6,691
- 1
- 32
- 49