linux - Find and Replace Shell Commands -


I have WordPress installation that is infected. Mostly theme files and plugin files ..

I 3 commands are required and I will use putty:

1- Inner root and recursive sub-directory folders change all 200 permissions in 644 (for some reason I changed it manually to 200 back Come minute)

2- Inner root and recursive sub-directory folders index.php To replace the contents of <3> - Delete all php.ini files inside root and recursive sub-directories.

0 backup!

1 If the permissions of each minute change, maybe you are in a situation that is a script running every moment

  search-type d -exec chmod 755 {} \; // Search for directories- type f -exec chmod 644 {} \; // To change the code for  

2, you have to use SAL or Embeddance according to the string.

3

  Find. -name "php.ini" -exec rm -fv {} \;  

4 Call an expert and find out how your WordPress installation has been hacked.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -