{"id":2962,"date":"2014-01-09T02:16:37","date_gmt":"2014-01-09T02:16:37","guid":{"rendered":"http:\/\/enjoyasp.net\/?p=2962"},"modified":"2014-01-09T02:16:37","modified_gmt":"2014-01-09T02:16:37","slug":"sqlserver%e8%bf%9b%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/enjoyasp.net\/index.php\/2014\/01\/09\/sqlserver%e8%bf%9b%e6%9c%8d%e5%8a%a1%e5%99%a8\/","title":{"rendered":"sqlserver\u8fdb\u670d\u52a1\u5668"},"content":{"rendered":"<p>sqlserver\u7684sa\u5bc6\u7801\u8bb0\u5f97\uff0c\u4f46windows\u7684\u5fd8\u8bb0\u4e86\uff0c\u901a\u8fc7\u5982\u4e0b\u65b9\u6cd5\u589e\u52a0windows\u6743\u9650\u8d26\u53f7\u3002<\/p>\n<pre class=\"brush:sql;first-line:1;pad-line-numbers:true;highlight:null;collapse:false;\">\r\nEXEC [sys].[sp_configure] @configname = &#39;show advanced options&#39;, -- varchar(35)\r\n@configvalue = 1 -- int\r\nRECONFIGURE WITH override\r\nGO\r\n--\u5982\u679c\u6ca1\u6709\u5c31\u5f00\u542f\r\nEXEC [sys].[sp_configure] @configname = &#39;Ole Automation Procedures&#39;, -- varchar(35)\r\n@configvalue = 1 -- int\r\nRECONFIGURE WITH override\r\nGO\r\n\r\n--\u6dfb\u52a0\u4e00\u4e2ahack\u7528\u6237\uff0c\u6240\u5c5e\u7528\u6237\u7ec4\u4e3aAdministrators\r\nDECLARE @shell INT\r\nEXEC SP_OAcreate &#39;wscript.shell&#39;,@shell out\r\nEXEC SP_OAMETHOD @shell,&#39;run&#39;,null, &#39;net user hack2 123 \/add&#39;\r\nEXEC SP_OAMETHOD @shell,&#39;run&#39;,null, &#39;net localgroup Administrators hack2 \/add&#39;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>sqlserver\u7684sa\u5bc6\u7801\u8bb0\u5f97\uff0c\u4f46windows\u7684\u5fd8\u8bb0\u4e86\uff0c\u901a\u8fc7\u5982\u4e0b\u65b9\u6cd5\u589e\u52a0windows\u6743\u9650\u8d26\u53f7\u3002 EXEC [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-2962","post","type-post","status-publish","format-standard","hentry","category-sql-server"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/2962","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/comments?post=2962"}],"version-history":[{"count":0,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/2962\/revisions"}],"wp:attachment":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/media?parent=2962"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/categories?post=2962"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/tags?post=2962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}