在线看毛片网站电影-亚洲国产欧美日韩精品一区二区三区,国产欧美乱夫不卡无乱码,国产精品欧美久久久天天影视,精品一区二区三区视频在线观看,亚洲国产精品人成乱码天天看,日韩久久久一区,91精品国产91免费

<menu id="6qfwx"><li id="6qfwx"></li></menu>
    1. <menu id="6qfwx"><dl id="6qfwx"></dl></menu>

      <label id="6qfwx"><ol id="6qfwx"></ol></label><menu id="6qfwx"></menu><object id="6qfwx"><strike id="6qfwx"><noscript id="6qfwx"></noscript></strike></object>
        1. <center id="6qfwx"><dl id="6qfwx"></dl></center>

            新聞中心

            EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 木馬/后門程序在WINNT中進(jìn)程隱藏和查找的方法

            木馬/后門程序在WINNT中進(jìn)程隱藏和查找的方法

            作者: 時(shí)間:2010-09-16 來源:網(wǎng)絡(luò) 收藏

              // 計(jì)算目前有多少, aProcesses[]用來存放有效的PIDs

              if ( !EnumProcesses( aProcesses, sizeof(aProcesses), cbNeeded ) ) return 0;

              cProcesses = cbNeeded / sizeof(DWORD);

              // 按有效的PID遍歷所有的

              for ( i = 0; i cProcesses; i++ )

              {

              // 打開特定PID的進(jìn)程

              hProcess = OpenProcess( PROCESS_QUERY_INFORMATION |

              PROCESS_VM_READ,

              FALSE, aProcesses[i]);

              // 取得特定PID的進(jìn)程名

              if ( hProcess )

              {

              if ( EnumProcessModules( hProcess, hMod, sizeof(hMod), cbNeeded) )

              {

              GetModuleBaseName( hProcess, hMod,

              szProcessName, sizeof(szProcessName) );

              //將取得的進(jìn)程名與輸入的進(jìn)程名比較,如相同則返回進(jìn)程PID

              if(!_stricmp(szProcessName, InputProcessName)){

              CloseHandle( hProcess );

              return aProcesses[i];

              }

              }

              }//end of if ( hProcess )

              }//end of for

              //沒有找到相應(yīng)的進(jìn)程名,返回0

              CloseHandle( hProcess );

              return 0;

              }//end of ProcessToPID

              //錯(cuò)誤處理函數(shù)CheckError()

              //如果iReturnCode等于iErrorCode,則輸出pErrorMsg并退出

              void CheckError(int iReturnCode, int iErrorCode, char *pErrorMsg)

              {

              if(iReturnCode==iErrorCode) {

              printf(%s Error:%dnn, pErrorMsg, GetLastError());

              //清場(chǎng)處理

              if (pszLibFileRemote != NULL)

              VirtualFreeEx(hRemoteProcess, pszLibFileRemote, 0, MEM_RELEASE);

              if (hRemoteThread != NULL) CloseHandle(hRemoteThread );

              if (hRemoteProcess!= NULL) CloseHandle(hRemoteProcess);

              exit(0);

              }

              }//end of CheckError()

              //使用說明函數(shù)usage()

              void usage(char * pErrorMsg)

              {

              printf(%snn,pErrorMsg);

              printf(ttRemote Process DLL by Shotgunn);

              printf(tThis program can inject a DLL into remote processn);

              printf(Email:n);

              printf([email protected]);

              printf(HomePage:n);

              printf(thttp://It.Xici.Netn);

              printf(thttp://www.Patching.Netn);

              printf(USAGE:n);

              printf(tRmtDLL.exe PID[|ProcessName] DLLFullPathNamen);

              printf(Example:n);

              printf(tRmtDLL.exe 1024 C:System32MyDLL.dlln);

              printf(tRmtDLL.exe Explorer.exe C:MyDLL.dlln);

              exit(0);

              }//end of usage()


            上一頁(yè) 1 2 3 下一頁(yè)

            評(píng)論


            相關(guān)推薦

            技術(shù)專區(qū)

            關(guān)閉