Git Product home page Git Product logo

gocryptor's Introduction

GoCryptor (GoCrypt)

badmath badmath

Description

The project is a proof-of-concept ransomware written in GoLang that I developed to better understand GoLang executables.

The cryptor is inspired by ransomwares written in C/C++ that I have analyzed. It contains simple malware tricks such as string hashing, process termination, service killing, and, of course, file encryption.

For file encryption, GoCryptor uses a hybrid cryptosystem of ChaCha20 and Curve25519 to encrypt files and protect its key. It uses a pretty bad DFS recursive algorithm to traverse to the file system. Maybe I'll implement multithreading for that sometime in the future.

The project strictly as serves as a proof-of-concept created for educational purposes only. Please be mindful when installing and running this malware.

As the author, I am not to be held responsible for any damage as a direct or indirect result of this software.

Table of Content

Installation

To install the project, make sure you have GoLang installed on your machine.

Below is a list of external GoLang libraries from GitHub that the project uses.

To install the dependencies, run the following command:

go get github.com/pierrec/lz4
go get golang.org/x/crypto
go get github.com/rodolfoag/gow32
go get golang.org/x/sys/windows
go get github.com/go-ole/go-ole
go get github.com/jaypipes/ghw
go get github.com/jeandeaual/go-locale

To clone and build the project, run the following commands:

git clone https://github.com/cdong1012/GoCryptor
go build GoCryptor

This will produce a Windows executable that you can run.

Usage

The executable requires some parameter to run.

./GoCryptor.exe --pass <password to run>
./GoCryptor.exe --pass <password to run> --path <path to encrypt>

alt text

I will unfortunately not provide the password, so cracking the hash is left as an exercise for the user.

Credits

Huge thanks to the devs of the following repositories that allows the development of this project.

gocryptor's People

Contributors

cdong1012 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

alpinelu

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.