Title: Malware redirection
Last modified: November 20, 2019

---

# Malware redirection

 *  [sohc](https://wordpress.org/support/users/sohc/)
 * (@sohc)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/malware-redirection/)
 * The website is redirecting and I found that the posts table has been modified.
   Almost all columns in the post_content ended with this script:
 * _[ Deleted ]_
 * Anyone can share the mysql code to delete only this data?
    -  This topic was modified 6 years, 5 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 5 months ago](https://wordpress.org/support/topic/malware-redirection/#post-12109582)
 * I’d use the plugin “better search replace” and just copy the above as the target
   and a blank as the result.
 *  [vlasi](https://wordpress.org/support/users/vlasi/)
 * (@vlasi)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/malware-redirection/#post-12113482)
 * Hi, the SQL code is:
 * `UPDATE wp_posts SET post_content = REPLACE(post_content, “<script src=\’https://
   scripts.trasnaltemyrecords.com/pixel.js?track=r&subid=043\’ type=\’text/javascript\’
   ></script>”, “”) WHERE post_content LIKE “%<script src=\’https://scripts.trasnaltemyrecords.
   com/pixel.js?track=r&subid=043\’ type=\’text/javascript\’></script>%”`
 * But check also another tables, for sure 🙂
 *  [kasunova](https://wordpress.org/support/users/kasunova/)
 * (@kasunova)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/malware-redirection/#post-12153061)
 * Hi,
    I have been trying to get rid of this malware for a few days now. At the
   beginning, I couldn’t even login to the WP dashboard.
 * I replace the core wordpress folders with fresh ones and used “better search &
   replace” as well as scan with grepwin to no results. It still redirects to the
   spam site.
 * Please help.
    Thanks in advance.
 *  Thread Starter [sohc](https://wordpress.org/support/users/sohc/)
 * (@sohc)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/malware-redirection/#post-12153199)
 * Hi Kasunova,
    I ended up purchasing malcare pro. They helped me clean the site
   and also acts as a management of updating plugins and wordpress version.
 * I have tried doing it manually but it is just all over the place.
 * Kind regards,
 * Ron
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 4 months ago](https://wordpress.org/support/topic/malware-redirection/#post-12153294)
 * [@kasunova](https://wordpress.org/support/users/kasunova/), If you need support
   then per the forum guidelines please start your own topic.
 * A lot more people will see your post, and that way you stand a good chance of
   getting the assistance you want. Despite any similarity in symptoms, your issue
   is likely to be completely different because of possible differences in physical
   servers, accounts, hosts, plugins, theme, configurations, etc. Thus one problem,
   on one setup is not indicative of the functionality and reliability of an application
   as a whole.
 * [https://wordpress.org/support/forum-user-guide/faq/#i-have-the-same-problem-can-i-just-reply-to-someone-elses-post-with-me-too](https://wordpress.org/support/forum-user-guide/faq/#i-have-the-same-problem-can-i-just-reply-to-someone-elses-post-with-me-too)
 * [https://wordpress.org/support/guidelines/#post-in-the-best-place](https://wordpress.org/support/guidelines/#post-in-the-best-place)
 * You can do so here:
 * [https://wordpress.org/support/forum/how-to-and-troubleshooting/#new-post](https://wordpress.org/support/forum/how-to-and-troubleshooting/#new-post)
 * I’ll be archiving your post and mine to not spam the original poster and detract
   from their question.
 * Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Malware redirection’ is closed to new replies.

## Tags

 * [malicious script](https://wordpress.org/support/topic-tag/malicious-script/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/malware-redirection/#post-12153294)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
