Discovering and Monitoring Viruses on a WordPress Website

My dedicated server is set up with WHM/cPanel CentOS Apache.

One of the accounts on cPanel is hosting a WordPress site that has been infected with a virus. This virus is being used to send emails and inject affiliate links without authorization.

Despite running AV scanners and manually cleaning out any malicious files, the virus keeps reappearing. Is there a way for me to track when someone uploads a file via PHP or creates/modifies a file?

I have been diligently searching through log files but always seem to miss something crucial. I am considering back-tracing to pinpoint the specific file they are using to upload the PHP files.

Answer №1

Implement the wordfence security plugin to thoroughly scan your WordPress site and prevent any form of injection attacks. Rest assured, you'll experience a trouble-free environment thereafter.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Ways to verify an array object and an array

Primary list: [VariationSpecificsSet] => SimpleXMLElement Object ( [NameValueList] => Array ( [0] => SimpleXMLElement Object ( ...

Combining PHP Variable with URL String

<td><input type="submit" onClick="window.location.href='https://www.'.$myValue.'.test.com'" value="Click!"></td> I am trying to create a button that will redirect to one of eight possible URLs based on a variable. How ...

Cleaning up database queries in MySQL without the use of prepared statements (PHP + outdated MySQL module)

Hello there! I recently came across an interesting issue regarding SQL injection in a PHP script that I downloaded called phpsimplechat. The author of the script created their own SQL layer which unfortunately turned out to be vulnerable to SQL Injection a ...

Verifying the current password and updating the hashed password

I have been struggling with creating a PHP script for updating user hashed passwords. Unfortunately, the script is not functioning as expected and no error messages are being displayed. Every time, it only shows "Your old password is incorrect" message. I ...

Extract information from an HTML table into PHP

I have an HTML table that is generated dynamically and I am looking to extract the data from it using the POST method. Is there a way to accomplish this? Are there any alternative methods you would suggest for achieving this goal? Below is a basic example ...

Using jQuery AJAX to Redirect to a 404 Page in Case the Load Method Encounters Failure

My website utilizes AJAX to load all pages using the jQuery load method. I modified this tutorial to work with Wordpress. The issue I am facing now is that when the load method encounters an error (such as a 404 due to a broken link), the AJAX transition ...

Learn the steps to update WordPress pagination URLs from sitename.com/pagename/2/ to sitename.com/pagename/?page=2 with ease

I have set my Wordpress site's permalink structure to use the Post name option, resulting in URLs like: http://sitename.com/sample-post/ However, I am encountering an issue when trying to access a page with the "page" argument, such as: http://site ...

Which is quicker: loading JSON via Ajax or loading the entire output through Ajax?

I'm interested in gathering different perspectives on this topic. Currently, I have Jquery initiating a function through ajax which loads data in two ways: The ajax script fetches JSON data from the server itself, then utilizes JavaScript to pars ...

Issue with realpath() function on Mac OS X XAMPP server falsely returning false for existing files

Currently, there seems to be an issue with a script that is unable to locate a directory on my OS X machine. This particular directory was copied from an external hard drive onto the desktop, which I suspect might be causing the problem. $path = &apos ...

Is there a way I can position my privacy alert so that it appears in front of all DIVs, RevSlider,

Have you had a chance to visit my website at ? I recently added a privacy alert in compliance with the new EU Regulation. However, I'm facing an issue where the alert is overlapping with some of my website components such as other DIVs and Revolution ...

obtain the subdomain as a query parameter

Hello everyone! I am currently in the process of configuring my web application to provide users with unique URLs like uniquename.mysite.com and anotheruniqname.mysite.com. I would like to be able to extract the subdomain section of the URL using a PHP sc ...

Searching for specific patterns using MySQL and PHP - What is the best approach?

Having just started working with MySQL and PHP, I am uncertain about how to proceed. Despite reading up on pattern matching, I still find myself struggling to apply this knowledge to my specific issue. In my database, I have a column dedicated to codes (C ...

Transfer files from flash to server using PHP

I am attempting to transfer files from Flash to a server. When the user starts, they input their username, which is then sent to PHP using the following method: var myusername:String = username.text; username.restrict = "A-Za-z0-9"; login_btn. ...

Can you explain the concept of the repeater argument used in pack?

I'm looking to transform a string into hexadecimal format. I've come across the pack function as a potential solution. Can someone clarify the distinction between the following use cases? $hexRepresentation = pack('H','I will be c ...

Invoke an unnamed function from a different context

I am encountering an issue with calling an anonymous function from another anonymous function. When I directly call the function, it works perfectly fine. However, when attempting to call it from within another anonymous function, I receive the following e ...

Transmitting PHP object through AJAX

Can anyone suggest the most effective method for passing a PHP object via AJAX? For instance: //objectClass = objectClass.php $obj = new objectClass(); <a href="javascript:getOutput("some variable", $obj); Since the other file, output.php (called thr ...

Is there a way to insert and store a personalized field in the WordPress Gutenberg (block editor) dashboard?

https://i.stack.imgur.com/FZvts.png I'm currently working on my portfolio and am looking to include a gallery field. I couldn't figure out how to add a custom field in the screenshot provided. Does anyone have any insights on how this can be ach ...

What sets Laravel 5.1's Event and Mail:queue apart?

After a user successfully registers on my registration form, I would like to send them an email. To ensure that the page's response time is not affected, I want to run the email process in the background. In order to achieve this, I came across two m ...

Transmit a data point from JavaScript to PHP

I am looking to transfer the address value to a different PHP page <script> var userAddress = place.formatted_address; document.getElementById('af').innerHTML = userAddress; </script> ...

Enhance your message inbox experience with jQuery/Javascript features inspired by Gmail, including the ability to select all messages with a checkbox and

It is truly satisfying to be here working on developing a private message inbox for my website, especially after successfully implementing a complete user signup/login and activation system. A few months ago, I never believed I had enough patience to grasp ...