Giter VIP home page Giter VIP logo

ransomware-simulator's Introduction

Ransomware-Simulator

Description: We have written two PowerShell scripts which act as the ransomware simulator. One script encrypts the data, and the other script decrypts the data using a public/private key pair. We created these as a tool, so that you can test your defenses against actual ransomware. The purpose of the decrypter, is to ensure that your files aren’t permanently destroyed.

How it works

  • The network drives are enumerated and sorted in descending order.
  • The lowest drive letter will be attacked. This gives you the ability to control what shares are affected. Its recommended to only have one drive (Z:) mapped while you run the scripts.
  • Each file on the share(s) will be encrypted with the Public key of the certificate.
  • You will need a certificate for this to work. Your computer probably has one already, and we've included all the necessary steps below.
  • After all the files have been encrypted, the script exits.

Running The Simulation

These scripts will encrypt and decrypt files using a certificate installed on the computer from which they are run.

To check if you have a certificate installed run this command from an administrative powershell prompt: get-childitem cert:\currentuser\my

The thumbprint id of the cert is needed in both scripts. Copy the thumbprint id to each script as outlined in the script. Example: $Cert = $(Get-ChildItem Cert:\CurrentUser\My\THUMBPRINTGOESHERE)

DISCLAIMER

The script will encrypt files so make sure you have a backup of the files before running. These scripts are meant for testing purposes only and should not be used in any unethical or malicious manner.

ransomware-simulator's People

Contributors

pablogarciaarevalo avatar

Watchers

James Cloos avatar

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.