wordpress - Hacked WP, regex link removal -


i working on wordpress website got hacked "pharmahack". have done multiple scans , checked multiple files seem fine.

my task remove of spam links , text, @ moment i'm doing manually db dump there 300 instances of offending content.

it contained within <div style="position:absolute; left:-3841px; top:-3137px;"> left , top variable.

does know regex remove content within div?

thanks help.

assuming width , height negative, , content within offending <div/> snippets don't have inner <div/> snippets:

s/<div style="position:absolute; left:-\d*px; top:-\d*px;">.*?<\/div>//g 

here's regex in play: https://regex101.com/r/ev1kn7/1


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -