针对字符串免杀的变形

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sunjikui1255326447/article/details/89361672

针对杀毒软件对于文件查杀(字符串查杀的处理) 五种方式:

源码如下:

// strtest.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "stdio.h"
#include <Windows.h>

void fun1();
void fun2();
void fun3();
void fun4();
void fun5();
int main(int argc, char* argv[])
{
	// 用定义数字隐藏字符串
	fun1();
	//用定义数组方式隐藏
	fun2();
    //wsprintf连接字符串
	fun3();
    // strcat 字符串黏贴
	fun4();
    // 字符串的反转
	fun5();
	return 0;
}


// 用定义数字隐藏字符串
void fun1(){
	char a[]={'s','u','n','\0'};
	MessageBox(NULL,a,"方式一",NULL);
}

//用定义数组方式隐藏
void fun2(){
	char a[10]= "Youdon";
	a[0]='s';
	a[1]='u';
	a[2]='n';
	a[3]='\0';
	MessageBox(NULL,a,"方式二",NULL);
}

//wsprintf连接字符串
void fun3(){
	char str1[]="su";
	char str2[]="n";
	char sum[20];
	wsprintf(sum,"%s%s",str1,str2);
	MessageBox(NULL,sum,"方式三",NULL);
}

// strcat 字符串黏贴
void fun4(){
	char str1[10]="sunji";
	char str2[10]="kui";
	strcat(str1,str2);
	MessageBox(NULL,str1,"方式四",NULL);
}

// 字符串的反转
void fun5(){
	 char a[]="iuknus";
	 strrev(a);
     MessageBox(NULL,a,"方式五",NULL);
}

运行结果:

最后,大家可以尝试使用不用的方法生成exe,在C32工具中查看字符串变化。

猜你喜欢

转载自blog.csdn.net/sunjikui1255326447/article/details/89361672