zoukankan      html  css  js  c++  java
  • 暂时放下

    _declspec (naked )
    void fake_my_native_api(PKAPC Apc, PVOID SystemArgument1,  PVOID SystemArgument2, KPRIORITY Increment  )
    {

    /* ULONG  ptarget_thread;
     ULONG  ptarget_process;

     ULONG  pcurrent_process;
     
     PUCHAR  ptarget_process_name;
     PUCHAR  pcurrent_process_name;

     __asm
     {
      push ebp;
      mov  ebp, esp;
      pushad;
     }


     ptarget_thread   = (ULONG)(Apc->Thread);
     ptarget_process   = *(PULONG)(ptarget_thread + 0x220);
     
     ptarget_process_name = (PUCHAR)(ptarget_process + 0x174);


        pcurrent_process  = *(PULONG)PsGetCurrentProcess(); 
     pcurrent_process_name   = (PUCHAR)(pcurrent_process + 0x174);


     if( _stricmp( ptarget_process_name, "notepad.exe") == 0 )
     {
      if( _stricmp(pcurrent_process_name, "notepad.exe") != 0 )
      {
       __asm
       {
        mov eax, 0x0;
        popad;
        pop ebp;
        ret;
       }
      }
     }

     else
     {
      __asm
      {
       popad;
       pop ebp;
       jmp fake_proxy_my_native_api;   
      }
     }
    */

     __asm
     {
      jmp fake_proxy_my_native_api;
     }

    }

  • 相关阅读:
    谈谈近两年维护的一个最最坑爹项目
    LintCode 丑数
    nova 配置文件
    python 网络编程
    python
    python
    cocos2d-js导弹跟踪算法(一边追着目标移动一边旋转角度)
    nginx和apache
    Service绑定模式
    类对象作为成员
  • 原文地址:https://www.cnblogs.com/herso/p/1439375.html
Copyright © 2011-2022 走看看