{"id":40,"date":"2013-10-02T18:18:27","date_gmt":"2013-10-02T18:18:27","guid":{"rendered":""},"modified":"2013-10-02T18:18:27","modified_gmt":"2013-10-02T18:18:27","slug":"","status":"publish","type":"post","link":"http:\/\/weizn.net\/?p=40","title":{"rendered":"\u8fdc\u7a0b\u7ebf\u7a0b\u6ce8\u5165"},"content":{"rendered":"<p>\u4e3b\u7a0b\u5e8f\u4ee3\u7801:<\/p>\n<p>#include &lt;stdio.h&gt;<br \/>\n#include &lt;stdlib.h&gt;<br \/>\n#include &lt;string.h&gt;<br \/>\n#include &lt;conio.h&gt;<br \/>\n#include &lt;windows.h&gt;<br \/>\n#include &lt;tlhelp32.h&gt;<\/p>\n<p>bool Privilege()<br \/>\n{<br \/>\n&nbsp;&nbsp;&nbsp; \/\/\u63d0\u5347\u5f53\u524d\u8fdb\u7a0b\u7684\u8bbf\u95ee\u4ee4\u724c<br \/>\n&nbsp;&nbsp;&nbsp; HANDLE hToken=NULL;<br \/>\n&nbsp;&nbsp;&nbsp; <br \/>\n&nbsp;&nbsp;&nbsp; if(OpenProcessToken(GetCurrentProcess(),TOKEN_ALL_ACCESS,&amp;hToken)!=TRUE) return false;<br \/>\n&nbsp;&nbsp;&nbsp; TOKEN_PRIVILEGES tp;<br \/>\n&nbsp;&nbsp;&nbsp; tp.PrivilegeCount=1;<br \/>\n&nbsp;&nbsp;&nbsp; LookupPrivilegeValue(NULL,SE_DEBUG_NAME,&amp;tp.Privileges[0].Luid);<br \/>\n&nbsp;&nbsp;&nbsp; tp.Privileges[0].Attributes=SE_PRIVILEGE_ENABLED;<br \/>\n&nbsp;&nbsp;&nbsp; AdjustTokenPrivileges(hToken,FALSE,&amp;tp,sizeof(tp),NULL,NULL);<br \/>\n&nbsp;&nbsp;&nbsp; <br \/>\n&nbsp;&nbsp;&nbsp; CloseHandle(hToken);<br \/>\n&nbsp;&nbsp;&nbsp; return true;<br \/>\n}<\/p>\n<p>bool ListProcess()<br \/>\n{<br \/>\n&nbsp;&nbsp;&nbsp; HANDLE hProcessSnapshot=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,NULL);&nbsp;&nbsp; \/\/\u83b7\u53d6\u8fdb\u7a0b\u5feb\u7167<br \/>\n&nbsp;&nbsp;&nbsp; if(hProcessSnapshot==INVALID_HANDLE_VALUE)<br \/>\n&nbsp;&nbsp;&nbsp; {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf(&#8220;\u521b\u5efa\u8fdb\u7a0b\u5feb\u7167\u5931\u8d25!\\n&#8221;);<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return false;<br \/>\n&nbsp;&nbsp;&nbsp; }<br \/>\n&nbsp;&nbsp;&nbsp; Privilege();&nbsp;&nbsp;&nbsp; \/\/\u63d0\u5347\u4ee4\u724c\u6743\u9650<br \/>\n&nbsp;&nbsp;&nbsp; PROCESSENTRY32 pe32;&nbsp;&nbsp;&nbsp; \/\/\u7528\u6765\u5b58\u653e\u5feb\u7167\u8fdb\u7a0b\u4fe1\u606f\u7684\u7ed3\u6784\u4f53<br \/>\n&nbsp;&nbsp;&nbsp; \/*<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; typedef struct tagPROCESSENTRY32<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DWORD dwSize;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DWORD cntUsage;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DWORD th32ProcessID;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ULONG_PTR th32DefaultHeapID;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DWORD th32ModuleID;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DWORD cntThreads;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DWORD th32ParentProcessID;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LONG pcPriClassBase;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DWORD dwFlags;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TCHAR szExeFile[MAX_PATH];<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } PROCESSENTRY32, *PPROCESSENTRY32;<br \/>\n&nbsp;&nbsp;&nbsp; *\/<br \/>\n&nbsp;&nbsp;&nbsp; pe32.dwSize=sizeof(PROCESSENTRY32);&nbsp;&nbsp; \/\/\u5b58\u653e\u7ed3\u6784\u4f53\u5927\u5c0f<br \/>\n&nbsp;&nbsp;&nbsp; if(!Process32First(hProcessSnapshot,&amp;pe32))<br \/>\n&nbsp;&nbsp;&nbsp; {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf(&#8220;\u5217\u4e3e\u7b2c\u4e00\u4e2a\u8fdb\u7a0b\u5931\u8d25\u3002\\n&#8221;);<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return false;<br \/>\n&nbsp;&nbsp;&nbsp; }<br \/>\n&nbsp;&nbsp;&nbsp; do<br \/>\n&nbsp;&nbsp;&nbsp; {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf(&#8220;FileName:%s\\t\\t\\tPID:%d\\n&#8221;,pe32.szExeFile,pe32.th32ProcessID);<br \/>\n&nbsp;&nbsp;&nbsp; }<br \/>\n&nbsp;&nbsp;&nbsp; while(Process32Next(hProcessSnapshot,&amp;pe32));<\/p>\n<p>&nbsp;&nbsp;&nbsp; return true;<br \/>\n}<\/p>\n<p>int main(int argc,char *argv[])<br \/>\n{<br \/>\n&nbsp;&nbsp;&nbsp; HANDLE hRemoteProcess;<br \/>\n&nbsp;&nbsp;&nbsp; HANDLE hRemoteThread;<br \/>\n&nbsp;&nbsp;&nbsp; DWORD dwRemoteProcess;<br \/>\n&nbsp;&nbsp;&nbsp; char DllPath[260];<br \/>\n&nbsp;&nbsp;&nbsp; DWORD size;<\/p>\n<p>&nbsp;&nbsp;&nbsp; ListProcess();<br \/>\n&nbsp;&nbsp;&nbsp; printf(&#8220;\u8bf7\u8f93\u5165\u8981\u6ce8\u5165\u8fdb\u7a0b\u7684ID:&#8221;);<br \/>\n&nbsp;&nbsp;&nbsp; if(scanf(&#8220;%d&#8221;,&amp;dwRemoteProcess)!=1) return -1;<\/p>\n<p>&nbsp;&nbsp;&nbsp; hRemoteProcess=OpenProcess(PROCESS_ALL_ACCESS,false,dwRemoteProcess);&nbsp;&nbsp; \/\/\u6253\u5f00\u8fdc\u7a0b\u8fdb\u7a0b<br \/>\n&nbsp;&nbsp;&nbsp; if(hRemoteProcess==0)<br \/>\n&nbsp;&nbsp;&nbsp; {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf(&#8220;\u6253\u5f00\u8fdb\u7a0b\u5931\u8d25\u3002\\n&#8221;);<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getch();<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;<br \/>\n&nbsp;&nbsp;&nbsp; }<\/p>\n<p>&nbsp;&nbsp;&nbsp; memset(DllPath,NULL,sizeof(DllPath));<br \/>\n&nbsp;&nbsp;&nbsp; GetCurrentDirectoryA(sizeof(DllPath)-1,DllPath);<br \/>\n&nbsp;&nbsp;&nbsp; strcat(DllPath,&#8221;\\\\DLL.dll&#8221;);<br \/>\n&nbsp;&nbsp;&nbsp; LPVOID pRemoteDllPath=VirtualAllocEx(hRemoteProcess,NULL,strlen(DllPath)+1,MEM_COMMIT,PAGE_READWRITE);&nbsp; \/\/\u5728\u8fdb\u7a0b\u4e2d\u5f00\u8f9f\u7a7a\u95f4<br \/>\n&nbsp;&nbsp;&nbsp; if(pRemoteDllPath==NULL)<br \/>\n&nbsp;&nbsp;&nbsp; {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf(&#8220;VirtualAlloc Error!\\n&#8221;);<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getch();<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;<br \/>\n&nbsp;&nbsp;&nbsp; }<\/p>\n<p>&nbsp;&nbsp;&nbsp; if(WriteProcessMemory(hRemoteProcess,pRemoteDllPath,DllPath,strlen(DllPath)+1,&amp;size)==0)&nbsp;&nbsp; \/\/\u5411\u8fdb\u7a0b\u7a7a\u95f4\u4e2d\u5199\u5165\u6570\u636e<br \/>\n&nbsp;&nbsp;&nbsp; {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf(&#8220;WriteProcessMemory Error!\\n&#8221;);<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getch();<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;<br \/>\n&nbsp;&nbsp;&nbsp; }<\/p>\n<p>&nbsp;&nbsp;&nbsp; \/\/\u83b7\u5f97\u8fdc\u7a0b\u8fdb\u7a0b\u4e2dLoadLibrary()\u7684\u5730\u5740<br \/>\n&nbsp;&nbsp;&nbsp; LPTHREAD_START_ROUTINE pLoadLibrary = (LPTHREAD_START_ROUTINE)GetProcAddress(GetModuleHandle(TEXT(&#8220;kernel32.dll&#8221;)), \\<br \/>\n&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#8220;LoadLibraryA&#8221;);<br \/>\n&nbsp;&nbsp;&nbsp; if (pLoadLibrary == NULL)<br \/>\n&nbsp;&nbsp;&nbsp; {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf(&#8220;GetProcAddress error\\n&#8221;);<br \/>\n&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; getch();<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;<br \/>\n&nbsp;&nbsp;&nbsp; }<br \/>\n&nbsp;&nbsp;&nbsp; if((hRemoteThread=CreateRemoteThread(hRemoteProcess,NULL,0,pLoadLibrary,pRemoteDllPath,0,NULL))==NULL)<br \/>\n&nbsp;&nbsp;&nbsp; {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; printf(&#8220;\u521b\u5efa\u7ebf\u7a0b\u5931\u8d25\u3002\\n&#8221;);<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; getch();<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;<br \/>\n&nbsp;&nbsp;&nbsp; }<br \/>\n&nbsp;&nbsp;&nbsp; WaitForSingleObject(hRemoteThread,INFINITE);<br \/>\n&nbsp;&nbsp;&nbsp; \/\/\u91ca\u653e\u5360\u7528\u7684\u5185\u5b58<br \/>\n&nbsp;&nbsp;&nbsp; if(VirtualFreeEx(hRemoteProcess,pRemoteDllPath,0,MEM_RELEASE)==NULL)<br \/>\n&nbsp;&nbsp;&nbsp; {<br \/>\n&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; printf(&#8220;VirtualFreeEx Error!\\n&#8221;);<br \/>\n&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; getch();<br \/>\n&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;<br \/>\n&nbsp;&nbsp;&nbsp; }<br \/>\n&nbsp;&nbsp;&nbsp; CloseHandle(hRemoteProcess);<br \/>\n&nbsp;&nbsp;&nbsp; CloseHandle(hRemoteThread);<br \/>\n&nbsp;&nbsp;&nbsp; printf(&#8220;\u7a0b\u5e8f\u7ed3\u675f\u3002\\n&#8221;);<br \/>\n&nbsp;&nbsp;&nbsp; getch();<\/p>\n<p>&nbsp;&nbsp;&nbsp; return 0;<br \/>\n}<\/p>\n<p>DLL\u6d4b\u8bd5\u4ee3\u7801:<\/p>\n<p>#include &lt;windows.h&gt;<br \/>\n#include &lt;stdio.h&gt;<\/p>\n<p>BOOL APIENTRY DllMain(HINSTANCE hInstDll, DWORD fdwReason, PVOID fImpLoad)<br \/>\n{<br \/>\n&nbsp;&nbsp;&nbsp; switch (fdwReason)<br \/>\n&nbsp;&nbsp;&nbsp; {<br \/>\n&nbsp;&nbsp;&nbsp; case DLL_PROCESS_ATTACH :&nbsp;&nbsp;&nbsp; \/\/DLL\u6587\u4ef6\u6620\u88ab\u5c04\u5230\u8fdb\u7a0b\u7684\u5730\u5740\u7a7a\u95f4<br \/>\n&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MessageBox(NULL, &#8220;DLL has been mapped!&#8221;, NULL, MB_OK);<br \/>\n&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br \/>\n&nbsp;&nbsp;&nbsp; case DLL_THREAD_ATTACH:&nbsp;&nbsp; \/\/\u8fdb\u7a0b\u4e2d\u6709\u7ebf\u7a0b\u88ab\u521b\u5efa\uff0c\u53ea\u6709\u5f53\u6240\u6709\u7684DLL\u90fd\u5904\u7406\u5b8c\u8fd9\u4e00\u901a\u77e5\u540e\uff0c\u7cfb\u7edf\u624d\u5141\u8bb8\u8fdb\u7a0b\u5f00\u59cb\u6267\u884c\u5b83\u7684\u7ebf\u7a0b\u51fd\u6570\u3002<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBox(NULL, &#8220;RemoteThread has been created!&#8221;, NULL, MB_OK);<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br \/>\n&nbsp;&nbsp;&nbsp; case DLL_THREAD_DETACH:&nbsp;&nbsp;&nbsp; \/\/\u7ebf\u7a0b\u8c03\u7528\u4e86ExitThread\u6765\u7ed3\u675f\u7ebf\u7a0b<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBox(NULL, &#8220;RemoteThread exit!&#8221;, NULL, MB_OK);<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br \/>\n&nbsp;&nbsp;&nbsp; case DLL_PROCESS_DETACH:&nbsp;&nbsp;&nbsp; \/\/DLL\u6587\u4ef6\u5728\u8fdb\u7a0b\u7a7a\u95f4\u5185\u88ab\u89e3\u9664\u6620\u5c04<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageBox(NULL, &#8220;DLL has been unmapped!&#8221;, NULL, MB_OK);<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br \/>\n&nbsp;&nbsp;&nbsp; }<br \/>\n&nbsp;&nbsp;&nbsp; return TRUE; <br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3b\u7a0b\u5e8f\u4ee3\u7801:<\/p>\n<p>#include &lt;stdio.h&gt;<br \/>\n#include &lt;stdlib.h&gt;<br \/>\n#include &lt;string.h&gt;<br \/>\n#include &lt;conio.h&gt;<br \/>\n#include &lt;windows.h&gt;<br \/>\n#include &lt;tlhelp32.h&gt;<\/p>\n<p>bool Privilege()<br \/>\n{<br \/>\n&nbsp;&#038;nbs&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[324],"tags":[],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u8fdc\u7a0b\u7ebf\u7a0b\u6ce8\u5165 - Wayne&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/weizn.net\/?p=40\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u8fdc\u7a0b\u7ebf\u7a0b\u6ce8\u5165 - Wayne&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"\u4e3b\u7a0b\u5e8f\u4ee3\u7801:#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;string.h&gt; #include &lt;conio.h&gt; #include &lt;windows.h&gt; #include &lt;tlhelp32.h&gt; bool Privilege() { &nbsp;&amp;nbs...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/weizn.net\/?p=40\" \/>\n<meta property=\"og:site_name\" content=\"Wayne&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2013-10-02T18:18:27+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"zinan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/weizn.net\/#website\",\"url\":\"http:\/\/weizn.net\/\",\"name\":\"Wayne&#039;s Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/weizn.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/weizn.net\/?p=40#webpage\",\"url\":\"http:\/\/weizn.net\/?p=40\",\"name\":\"\\u8fdc\\u7a0b\\u7ebf\\u7a0b\\u6ce8\\u5165 - Wayne&#039;s Blog\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/#website\"},\"datePublished\":\"2013-10-02T18:18:27+00:00\",\"dateModified\":\"2013-10-02T18:18:27+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/weizn.net\/?p=40#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/weizn.net\/?p=40\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/weizn.net\/?p=40#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"http:\/\/weizn.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\\u8fdc\\u7a0b\\u7ebf\\u7a0b\\u6ce8\\u5165\"}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/weizn.net\/?p=40#article\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/?p=40#webpage\"},\"author\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"headline\":\"\\u8fdc\\u7a0b\\u7ebf\\u7a0b\\u6ce8\\u5165\",\"datePublished\":\"2013-10-02T18:18:27+00:00\",\"dateModified\":\"2013-10-02T18:18:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=40#webpage\"},\"wordCount\":1010,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"articleSection\":[\"C\/C++\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/weizn.net\/?p=40#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\",\"name\":\"zinan\",\"logo\":{\"@id\":\"http:\/\/weizn.net\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u8fdc\u7a0b\u7ebf\u7a0b\u6ce8\u5165 - Wayne&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/weizn.net\/?p=40","og_locale":"zh_CN","og_type":"article","og_title":"\u8fdc\u7a0b\u7ebf\u7a0b\u6ce8\u5165 - Wayne&#039;s Blog","og_description":"\u4e3b\u7a0b\u5e8f\u4ee3\u7801:#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;string.h&gt; #include &lt;conio.h&gt; #include &lt;windows.h&gt; #include &lt;tlhelp32.h&gt; bool Privilege() { &nbsp;&nbs...","og_url":"http:\/\/weizn.net\/?p=40","og_site_name":"Wayne&#039;s Blog","article_published_time":"2013-10-02T18:18:27+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"zinan","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/weizn.net\/#website","url":"http:\/\/weizn.net\/","name":"Wayne&#039;s Blog","description":"","publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/weizn.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"http:\/\/weizn.net\/?p=40#webpage","url":"http:\/\/weizn.net\/?p=40","name":"\u8fdc\u7a0b\u7ebf\u7a0b\u6ce8\u5165 - Wayne&#039;s Blog","isPartOf":{"@id":"http:\/\/weizn.net\/#website"},"datePublished":"2013-10-02T18:18:27+00:00","dateModified":"2013-10-02T18:18:27+00:00","breadcrumb":{"@id":"http:\/\/weizn.net\/?p=40#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/weizn.net\/?p=40"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/weizn.net\/?p=40#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/weizn.net\/"},{"@type":"ListItem","position":2,"name":"\u8fdc\u7a0b\u7ebf\u7a0b\u6ce8\u5165"}]},{"@type":"Article","@id":"http:\/\/weizn.net\/?p=40#article","isPartOf":{"@id":"http:\/\/weizn.net\/?p=40#webpage"},"author":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"headline":"\u8fdc\u7a0b\u7ebf\u7a0b\u6ce8\u5165","datePublished":"2013-10-02T18:18:27+00:00","dateModified":"2013-10-02T18:18:27+00:00","mainEntityOfPage":{"@id":"http:\/\/weizn.net\/?p=40#webpage"},"wordCount":1010,"commentCount":0,"publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"articleSection":["C\/C++"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/weizn.net\/?p=40#respond"]}]},{"@type":["Person","Organization"],"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264","name":"zinan","logo":{"@id":"http:\/\/weizn.net\/#personlogo"}}]}},"_links":{"self":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":0,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"wp:attachment":[{"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}