gocryptor

command module
v0.0.0-...-8723d13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2022 License: MIT Imports: 30 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL