-2

I can see same code under all php files.

Starting from

<?php $rfghoh = '*f%)sfxpmpusut)tpqssu6

And end

$rfghoh=$yuoopi-1; ?>

I am just looking for script using which only first line of php code get remove not the entire php file.

I tried find -name '*.php' -exec sed -i '/<?php $rfghoh/,/?>/d' '{}' \;

But its removing all content under files though I need to remove just under those tags.

Thanks

1 Answers1

0

use Dreamweaver to find and replace using the folder settings instead of file. (search and replace in all files in a folder)

you can use regex to match the lines you need to replace if the middle of each is different, if the lines are identical its not needed.

but thats just going to get your site back to where it was before being hacked. once cleaned you will need to secure your code.