به وسیله این کد که به زبان سی نوشته شده میتونید به راحتی برای رمزگشایی فایلهای آلوده به باج افزار Ransomware 777 اقدام کنید
کد:
//CODE BY E1.CODERS
#include <iostream>
#include <fstream>
#include <string>
#include <windows.h>
using namespace std;
bool MyDecryptFile(
LPTSTR pszSource,
LPTSTR szDestination,
LPTSTR szPassword)
{
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
ZeroMemory(&pi, sizeof(pi));
string command = "STOPDecrypter.exe -s " + string(pszSource) + " -d " + string(szDestination) + " -k " + string(szPassword);
if (!CreateProcess(NULL,
const_cast<char*>(command.c_str()),
NULL,
NULL,
FALSE,
0,
NULL,
NULL,
&si,
&pi)
)
{
cout << "CreateProcess failed (" << GetLastError() << ").\n";
return false;
}
WaitForSingleObject(pi.hProcess, INFINITE);s.
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
return true;
}
void MyHandleError(
LPTSTR psz,
int nErrorNumber)
{
_ftprintf(stderr, TEXT("An error occurred: %s\n"), psz);
_ftprintf(stderr, TEXT("Error code: %d\n"), nErrorNumber);
ExitProcess(1);
}
int _tmain(int argc, _TCHAR* argv[])
{
if (argc != 3)
{
cout << "Usage: decrypt.exe <encrypted file> <decrypted file>\n";
return 1;
}
LPTSTR pszSource = argv[1]; // The encrypted file
LPTSTR szDestination = argv[2]; // The decrypted file
system("STOPDecrypter.exe -b");
ifstream keyFile("found_key.txt");
if (!keyFile.is_open())
{
MyHandleError(TEXT("Could not open the key file"), 2);
}
string key;
getline(keyFile, key);
keyFile.close();
if (key.empty() || key == "No key found!")
{
MyHandleError(TEXT("Could not find the key"), 3);
}
wstring wkey(key.begin(), key.end());
LPTSTR szPassword = const_cast<wchar_t*>(wkey.c_str());
if (MyDecryptFile(pszSource, szDestination, szPassword))
{
cout << "The file was successfully decrypted.\n";
}
else
{
cout << "The file could not be decrypted.\n";
}
return 0;
}


نظر