Skip to content

About

A script for fixing the consequences of a vulnerability in WP Time Capsule

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation


Logo

WP Time Capsule Fix

A script for fixing the consequences of a vulnerability in WP Time Capsule

Table of Contents
  1. About The Script
  2. Getting Started
  3. Usage
  4. Contact

About The Scirpt

After experiencing the consequences of the vulnerability in WordPress plugin “WordPress Time Capsule” affeting version 1.22.20 and belowe, it became obvious that it was necessary to remove all the malicious code at once to prevent its further expansion

Here's a short description of what the script does:

  1. Deletes the files of the “WP Time Capsule” plugin (the script does not delete the plugin backups and settings)
  2. Recursively removes malicious files in the "wp-content" directory
  3. Recursively removes inserted malicious code in files in the "wp-content" directory
  4. Moves the important files and the wp-content directory to a temporary directory (e.g. ".htaccess", "wp-config.php" and "wp-content")
  5. Install the latest version of WordPress via WP-CLI and move files from the temporary directory to the main directory

It is also important to note that if the malicious code you encountered is different from our case, then you need to change the keywords and regular expressions in the script to remove the malicious code completely

(back to top)

Getting Started

Here are quick instructions on how to install the script

Prerequisites

  • PHP 5.4 or later
  • WordPress 3.7 or later

Installation

  1. Download the script and wp-cli.phar file (WP-CLI)
  2. Make the files executable
    $ chmod +x ./wordpress-timecapsule-fix.sh ./wp-cli.phar

(back to top)

Usage

When calling the script, it is necessary to specify the directory where the sites are located

$ ./wordpress-timecapsule-fix.sh /www/sites

If the sites are located in the same directory but in a subfolder like “public”, then you need to change the script a bit

(back to top)

Contact

If you get affected by a vulnerability of a plugin, or your Wordpress website , we can prov

File a support request

(back to top)

Disclaimer

This script comes absoulutely with no warranty

(back to top)

About

A script for fixing the consequences of a vulnerability in WP Time Capsule

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages