锘??xml version="1.0" encoding="utf-8" standalone="yes"?>C++鍗氬-<table border="0" cellspacing="0" cellpadding="0" style="margin- left:0px;display:inline;height:30px;"><tr><td style="font-weight:bold; font-size:16px; line- height:30px;">涓骞?#37719;?#27996;屾湀&nbsp璋?#28051;?#37828;?#32457;?lt;/td><td style="font-size:14px; line-height:30px;"></td></tr></table>http://www.2676208.com/qinqing1984/鍏虫敞锛氭搷浣滅郴缁熴佺綉缁溿佹暟鎹簱鍜屽畨鍏?/description>zh-cnWed, 21 Aug 2019 07:07:11 GMTWed, 21 Aug 2019 07:07:11 GMT60浣跨敤CString GetBuffer鑷?#38315;傚簲鑾峰彇璁$畻鏈哄悕绉?/title><link>http://www.2676208.com/qinqing1984/archive/2019/07/31/216616.html</link><dc:creator>鏄?#32457;?#37719;?#27996;屾湀</dc:creator><author>鏄?#32457;?#37719;?#27996;屾湀</author><pubDate>Wed, 31 Jul 2019 04:51:00 GMT</pubDate><guid>http://www.2676208.com/qinqing1984/archive/2019/07/31/216616.html</guid><wfw:comment>http://www.2676208.com/qinqing1984/comments/216616.html</wfw:comment><comments>http://www.2676208.com/qinqing1984/archive/2019/07/31/216616.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.2676208.com/qinqing1984/comments/commentRss/216616.html</wfw:commentRss><trackback:ping>http://www.2676208.com/qinqing1984/services/trackbacks/216616.html</trackback:ping><description><![CDATA[   涓?#27996;?#37713;忓皯绋嬪簭涓殑纭紪鐮?#38171;?#37903;垫椿鎸夐渶绠$悊瀛楃涓茬┖闂?#38171;?#28003;跨敤浜咥TL涓殑CString绫?#38171;?#28000;?#37934;?#28641;?#28051;?br /> <div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #008080; "> 1</span>         CString bstrComPathName;<br /> <span style="color: #008080; "> 2</span>         WCHAR componentPathName[1];<br /> <span style="color: #008080; "> 3</span>         DWORD dwNameLen = 1;    <br /> <span style="color: #008080; "> 4</span> <br /> <span style="color: #008080; "> 5</span>         <span style="color: #0000FF; ">if</span> (!GetComputerNameEx(<span style="color: #ff00ff;">ComputerNamePhysicalDnsFullyQualified</span>, componentPathName, &dwNameLen))<br /> <span style="color: #008080; "> 6</span>         { <br /> <span style="color: #008080; "> 7</span>             DWORD dwErr = GetLastError();<br /> <span style="color: #008080; "> 8</span>             <span style="color: #0000FF; ">if</span>(<span style="color: #ff0000;">ERROR_MORE_DATA</span>==dwErr)<br /> <span style="color: #008080; "> 9</span>             {            <br /> <span style="color: #008080; ">10</span>                 <span style="color: #0000FF; ">if</span> (!GetComputerNameEx(ComputerNamePhysicalDnsFullyQualified, bstrComPathName.<span style="color: #993366;"><strong>GetBuffer</strong></span>(dwNameLen), &dwNameLen))<br /> <span style="color: #008080; ">11</span>                 { <br /> <span style="color: #008080; ">12</span>                     zlog_error(g_zc, "GetComputerNameEx with ComputerNamePhysicalDnsFullyQualified fail: %d", GetLastError());<br /> <span style="color: #008080; ">13</span>                     <span style="color: #0000FF; ">return</span> -1;<br /> <span style="color: #008080; ">14</span>                 }<br /> <span style="color: #008080; ">15</span>             }<br /> <span style="color: #008080; ">16</span>             <span style="color: #0000FF; ">else</span><br /> <span style="color: #008080; ">17</span>             {<br /> <span style="color: #008080; ">18</span>                 zlog_error(g_zc, "GetComputerNameEx with ComputerNamePhysicalDnsFullyQualified for fail: %d", dwErr);<br /> <span style="color: #008080; ">19</span>                 <span style="color: #0000FF; ">return</span> -1;<br /> <span style="color: #008080; ">20</span>             }<br /> <span style="color: #008080; ">21</span>         }                <br /> <span style="color: #008080; ">22</span>         bstrComPathName.<span style="color: #993366;"><strong>ReleaseBuffer</strong></span>(); </div>     ?#28214;瑕佹敞鎰忕殑鏄?#38171;孏etBuffer鏂规硶铏芥彁渚?#37826;?#28186;?#27996;?#37929;存帴淇敼CString瀵硅薄?#27537;?#21812;閮ㄧ紦鍐插尯锛?#28003;?#26473;濊儗浜嗛潰鍚?#28725;硅薄璁?#29825;$殑鍘熷垯锛堢敱鍏紑鏂规硶淇敼?#21812;閮ㄦ暟鎹?#38171;?#38171;屽?#29363;涓?#28103;濊瘉瀵硅薄?#27537;瀹屾?#23384;?#38171;屽湪?#25655;浣?#28729;屾垚鍚?#28051;瀹?#29781;?#29835;冪敤ReleaseBuffer<img src ="http://www.2676208.com/qinqing1984/aggbug/216616.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.2676208.com/qinqing1984/" target="_blank">鏄?#32457;?#37719;?#27996;屾湀</a> 2019-07-31 12:51 <a href="http://www.2676208.com/qinqing1984/archive/2019/07/31/216616.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇?#29825;?/a></div>]]></description></item><item><title>鍏?#27996;巑ake渚濊禆鏂?#28000;剁殑鑷?#37716;ㄧ敓鎴?/title><link>http://www.2676208.com/qinqing1984/archive/2018/11/16/216067.html</link><dc:creator>鏄?#32457;?#37719;?#27996;屾湀</dc:creator><author>鏄?#32457;?#37719;?#27996;屾湀</author><pubDate>Fri, 16 Nov 2018 04:08:00 GMT</pubDate><guid>http://www.2676208.com/qinqing1984/archive/2018/11/16/216067.html</guid><wfw:comment>http://www.2676208.com/qinqing1984/comments/216067.html</wfw:comment><comments>http://www.2676208.com/qinqing1984/archive/2018/11/16/216067.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.2676208.com/qinqing1984/comments/commentRss/216067.html</wfw:commentRss><trackback:ping>http://www.2676208.com/qinqing1984/services/trackbacks/216067.html</trackback:ping><description><![CDATA[<div>  鍦℅NU make涓?#37826;?#37813;嬪唽杩?#37832;?#28052;?#28051;?#38171;?.14鑺?#29825;插埌浜?#28186;濊禆鏂?#28000;剁殑鑷?#37716;ㄧ敓鎴?#38171;屽涓嬪浘<hr /><img src="http://www.2676208.com/images/cppblog_com/qinqing1984/gnu-make-314.png" width="1419" height="657" alt="" /><br /><br /><div>  鍥?#28051;殑瑙勫垯瀵笴婧?#37826;?#28000;?#37724;孧akefile鍦?#37722;?#28051;鐩綍锛屾槸姝?#32429;殑銆?#28003;?#37828;?#28051;?#37734;?#37722;?#28051;鐩綍?#27537;鍙?#29999;屾湜渚濊禆鏂?#28000;?#37734;?#28725;瑰簲?#27537;鐩綍涓?#38171;屾瘮濡俿rc/log/log_file.c锛屽?#23678;湜渚濊禆鏂?#28000;秎og_file.d?#25939;鎴?#37734;╯rc/log/涓嬨傚洜涓篻cc锛坅ix骞?#37721;皒lc?#32042;璇戝櫒浜?#28641;?#23005;?#38171;夌敓鎴愮殑渚濊禆鏂?#28000;跺唴瀹?#28051;?#37929;?#37837;?#37826;?#28000;跺悕娌?#37832;?#29999;﹁矾寰?#38171;?#28186;嬪涓?#37813;绀?/div><div><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #800000;"><strong>log_file.o</strong></span>: src/log/log_file.c src/log/log_file.h src/log/log_type.h \<br /> src/log/../base/io_ext.h</div><div><br />  鎵浠ed灏?#37813;?#28051;?#37714;皊rc/log/log_file.o鑰屾浛鎹?#27996;?#38171;屾?#35268;鍚庣殑瑙勫垯濡?#28051;?br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->%.d: %.c<br />    $(CC) $(CFLAGS) $(INCS) $< $(MFLAGS) $@.$$$$<span style="color: #008000; ">;</span><span style="color: #008000; ">\</span><span style="color: #008000; "><br /></span>    sed 's,<span style="color: #ff0000;">$(*F)</span>.o<span>[</span><span> :</span><span>]</span>*,<span style="color: #ff0000;">$*</span>.o $@: ,g' < $@.$$$$ > $@<span style="color: #008000; ">;</span><span style="color: #008000; ">\</span><span style="color: #008000; "><br /></span>    $(RM) $@.$$$$</div><div><br />  璇?#29785;勫垯瀵笴婧?#37826;?#28000;?#37724;孧akefile鍦?#37722;?#28051;鐩綍涔熼傚悎锛岀敓鎴?#37722;庣殑渚濊禆鏂?#28000;跺唴瀹?#28641;?#28051;?br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><strong style="color: #800000;">src/log/log_file.o src/log/log_file.d</strong>: src/log/log_file.c src/log/log_file.h src/log/log_type.h \<br /> src/log/../base/io_ext.h</div></div></div></div></div><img src ="http://www.2676208.com/qinqing1984/aggbug/216067.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.2676208.com/qinqing1984/" target="_blank">鏄?#32457;?#37719;?#27996;屾湀</a> 2018-11-16 12:08 <a href="http://www.2676208.com/qinqing1984/archive/2018/11/16/216067.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇?#29825;?/a></div>]]></description></item><item><title>鎬?#32513;撶綉缁滆矾?#25969;璧?#37722;?#29831;?#37826;?#37826;规硶http://www.2676208.com/qinqing1984/archive/2017/12/29/215452.html鏄?#32457;?#37719;?#27996;屾湀鏄?#32457;?#37719;?#27996;屾湀Fri, 29 Dec 2017 09:24:00 GMThttp://www.2676208.com/qinqing1984/archive/2017/12/29/215452.htmlhttp://www.2676208.com/qinqing1984/comments/215452.htmlhttp://www.2676208.com/qinqing1984/archive/2017/12/29/215452.html#Feedback0http://www.2676208.com/qinqing1984/comments/commentRss/215452.htmlhttp://www.2676208.com/qinqing1984/services/trackbacks/215452.html?#25969;浜巘raceroute鍙兘璇?#37826;璘DP閫?#28103;$殑?#23512;?#30718;?#25969;锛?#28051;嶈兘纭?#28729;歍CP閫?#28103;$殑瀹?#38340;呰矾?#25969;锛?#37721;兘鍙?#37817;?#38171;?#38171;屽?#29363;?#32042;鍐?#27996;?#37832;?#37826;囥?#28051;?#37826;?#28186;?#37819;?#26473;?#38171;?#28051;嬮潰?#27537;IP銆丮AC鍜岀鍙e潎涓?#32448;轰緥锛屽疄闄?#29831;?#37826;?#28051;?#37721;?#37831;?#37817;?#28051;?#37711;?#28003;撶殑鍊?/div>

1. 濡?#28003;?#37714;?#37826;?#28729;?#37812;?#32468;?#37714;?#37832;?#37716;?#37731;ㄧ殑TCP?#23512;锛屾槸鍚?#32513;?#26473;?#27996;嗙綉鍏?/strong>
     鍦?#28729;?#37812;?#32468;?#37813;?#29723;?tcpdump -i eno16777728 ether dst b0:b9:8a:69:65:3e and host 192.168.0.26 and tcp port 80  鎶撳彇缁?#26473;囩綉鍏?#28051;斿線杩?#37832;?#37716;?#37731;ㄧ殑TCP绔?#37721;?#28051;?0?#27537;?#23512;
     eno16777728 ?#24116;鍙e悕绉?#38171;沞ther 浠?#28598;綉?#25724;?#30718;锛宒st 鐩?#37837;?#38171;坰rc琛?#32448;?#23143;?#38171;?#38171;沚0:b9:8a:69:65:3e ?#32137;鍏矼AC鍦板潃锛?92.168.0.26 鏈?#37716;?#37731;↖P鍦板潃锛?0 鐩?#37722;?#32468;?#37721;?/div>

     杈?#37713;?#32513;撴?#28355;?#21976;瀽
       ● 鏈?#26440;?#37713;?#38171;屽垯琛?#32448;?#32513;?#26473;?#27996;嗙綉鍏?/div>
       ● 鏈夐儴鍒?#26440;?#37713;?#38000;孴CP閫?#28103;?#26473;?#37734;?#26473;?#29723;?#38171;屽垯琛?#32448;?#37711;堝?#23943;殑?#23512;缁?#26473;?#27996;嗙綉鍏?#38171;屽悗?#28533;?#30718;?#25969;琛?#26916;圭紦瀛?#29722;噸瀹氬悜鏇?#37826;?#38171;屾病缁?#26473;囩綉鍏?#27996;?/div>
       ● 涓?#37826;?#26440;?#37713;?#38171;屽垯琛?#32448;?#28051;鐩?#32513;?#26473;囩綉鍏?/div>

2. 濡?#28003;?#37714;?#37826;矾?#25969;琛?#26916;圭紦瀛?#29722;噸瀹氬悜鏇?#37826;?/strong>
     鍦?#28729;?#37812;?#32468;?#37813;?#29723;?tcpdump -i eno16777728 src 192.168.1.1 and dst 192.168.1.45 and icmp  鎶撳彇?#28533;鑷綉鍏?#37724;屽埌杈?#28729;?#37812;?#32468;殑鎵鏈塱cmp?#23512;
     192.168.1.1 ?#32137;鍏矷P锛?92.168.1.45 瀹?#37812;?#32468;?#38171;?#37713;哄彛锛塈P

     杈?#37713;?#32513;撴?#28355;?#21976;瀽
       ● 娌?#37832;?#26440;?#37713;?#38171;屽垯琛?#32448;?#23052;?#37832;?#37824;?#37714;皉erdirect?#23512;锛岃矾?#25969;琛?#26916;圭紦瀛?#28051;?#37721;?/div>
       ● 鏈?#26440;?#37713;?#32491;?#28028;?span style="color: #ff0000;">ICMP redirect 192.168.0.26 to host 192.168.0.26锛堝墠?#28528;涓涓狪P琛?#32448;哄埌杈?#37832;?#37716;?#37731;ㄧ殑鐩存帴?#30718;?#25969;IP锛屽悗涓涓?#29723;?#32448;?#37832;?#37716;?#37731;↖P锛?/div>
       ● ?#22447;琛?#32448;?#37824;?#37714;?#27996;咺CMP?#22136;瀹氬?#25117;寘锛屽唴鏍?#28028;氭洿鏂拌矾?#25969;琛?#26916;?#37721;婄紦瀛樼綉鍏?#28051;?92.168.0.26锛?#28051;嬫閫?#28103;?#37827;跺氨鐩存帴鍙戝線192.168.0.26浜?/div>

3. 濡?#28003;?#37818;?#37714;舵帴鏀禝CMP?#22136;瀹氬悜
      ● echo 0 | tee /proc/sys/net/ipv4/conf/*/accept_redirects    绂佹鎵鏈夌綉鍗℃帴鏀?#38171;屽彲?#20265;鍏嶈矾?#25969;琛?#26916;圭紦瀛?#29722;?#28103;敼
      ● echo 1 | tee /proc/sys/net/ipv4/conf/*/accept_redirects    鍚敤鎵鏈夌綉鍗℃帴鏀禝CMP?#22136;瀹氬悜?#31223;鎭?/div>

4. 鏌?#37930;嬨佸埛鏂拌矾?#25969;琛?#26916;圭紦瀛?/strong>
      ● ip route get 192.168.0.26    鍙?#28000;?#28000;?#26440;?#37713;?#28051;?#37930;嬪埌閫?#28003;忕洰鏍嘔P?#27537;瀹?#38340;呰矾?#25969;
      ● ip route flush cache             娓呯?#40511;矾?#25969;琛?#26916;圭紦瀛?#38171;?#28051;嬫閫?#28103;?#37827;跺唴鏍?#28028;氭煡main琛?#38171;?#37719;冲懡浠oute杈?#37713;虹殑琛?#38171;?#28000;?#32429;?#28729;氳矾?#25969;


]]>娣?#37711;ョ悊瑙SL/TLS鎶鏈唴骞?/title><link>http://www.2676208.com/qinqing1984/archive/2016/12/15/214491.html</link><dc:creator>鏄?#32457;?#37719;?#27996;屾湀</dc:creator><author>鏄?#32457;?#37719;?#27996;屾湀</author><pubDate>Thu, 15 Dec 2016 09:16:00 GMT</pubDate><guid>http://www.2676208.com/qinqing1984/archive/2016/12/15/214491.html</guid><wfw:comment>http://www.2676208.com/qinqing1984/comments/214491.html</wfw:comment><comments>http://www.2676208.com/qinqing1984/archive/2016/12/15/214491.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.2676208.com/qinqing1984/comments/commentRss/214491.html</wfw:commentRss><trackback:ping>http://www.2676208.com/qinqing1984/services/trackbacks/214491.html</trackback:ping><description><![CDATA[<strong style="font-size: 12pt">?#22688;璦</strong><br />    杩?#37832;?#37832;?#37832;轰細锛屾繁鍏?#27996;哠SL/TLS鍗?#29825;?#37720;熺悊涓?#32513;?#38010;?#38171;?#39582;?#37714;嗘瀽浜?#37929;?#37711;?#28725;?#37934;?#28699;﹀唴瀹?#38171;屽績寰?#26864;囧锛屽巻缁?#37719;婃湀锛?#32513;?#27996;?#37712;?#37812;?#27996;?#26473;?#28000;?#37826;囨。銆?br />    鏈?#27996;烘按骞冲?#27693;?#22800;檺锛?#38335;?#29831;?#38341;?#37711;?#38171;屾杩?#37816;?#23005;?#38171;?#28051;?#38003;?#37808;熸縺銆?br /> <br /> <strong style="font-size: 12pt">鐩綍</strong><br />          <img border="0" alt="" src="http://www.2676208.com/images/cppblog_com/qinqing1984/deep-ssl-tls-catalogue.png" /><strong><br /> <br /> </strong><strong style="font-size: 12pt">閮?#37714;?#32468;?#38010;?#26864;勮</strong><br /> <strong>   绗?绔?/strong><br /> <div align="center"><img border="0" alt="" src="http://www.2676208.com/images/cppblog_com/qinqing1984/ssl-tls-protocol-stack.png" /></div> <br /> <br />    <strong>绗?绔?#32471;?鑺?/strong><br /> <div align="center"><img border="0" alt="" src="http://www.2676208.com/images/cppblog_com/qinqing1984/ssl-tls-block-cipher.png" /></div> <br /> <br />    <strong>绗?1绔?#32471;?鑺?br /> </strong> <div align="center"><img border="0" alt="" src="http://www.2676208.com/images/cppblog_com/qinqing1984/ssl-tls-freak-attack.png" /></div> <br /> <strong style="font-size: 12pt">鍏?#37826;?/strong><br />    涓嬭浇鍦板潃锛?a href="/Files/qinqing1984/娣?#37711;ョ悊瑙SL-TLS鎶鏈唴骞?zip">娣?#37711;ョ悊瑙SL/TLS鎶鏈唴骞?/a> <img src ="http://www.2676208.com/qinqing1984/aggbug/214491.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.2676208.com/qinqing1984/" target="_blank">鏄?#32457;?#37719;?#27996;屾湀</a> 2016-12-15 17:16 <a href="http://www.2676208.com/qinqing1984/archive/2016/12/15/214491.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇?#29825;?/a></div>]]></description></item><item><title>DSA?#26271;瀛楃?#24807;悕?#27537;鎺?#28725;?/title><link>http://www.2676208.com/qinqing1984/archive/2016/11/24/214439.html</link><dc:creator>鏄?#32457;?#37719;?#27996;屾湀</dc:creator><author>鏄?#32457;?#37719;?#27996;屾湀</author><pubDate>Thu, 24 Nov 2016 11:39:00 GMT</pubDate><guid>http://www.2676208.com/qinqing1984/archive/2016/11/24/214439.html</guid><wfw:comment>http://www.2676208.com/qinqing1984/comments/214439.html</wfw:comment><comments>http://www.2676208.com/qinqing1984/archive/2016/11/24/214439.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.2676208.com/qinqing1984/comments/commentRss/214439.html</wfw:commentRss><trackback:ping>http://www.2676208.com/qinqing1984/services/trackbacks/214439.html</trackback:ping><description><![CDATA[<strong style="font-size: 12pt;">?#30075;?#30838;鎻?#26473;?/strong><br /> 銆?#37711;紑瀵嗛挜銆?   <br />    p鏄?12鍒?024浣嶇殑绱犳暟<br />    q鏄?60浣嶉暱锛?#39582;?#28051;巔-1浜?#32497;犵殑鍥?#28699;?br />    g = h^((p-1)/q) mod p锛?#37711;?#28051;環<p-1涓攇>1 <p-1涓攇><br />    y = g^x mod p<br /> 銆?#32457;佹湁瀵嗛挜銆?br />    x<q锛岄暱160浣?br /> < q锛岄暱160浣?br /> 銆愮?#24807;悕銆?br />    k涓哄皬浜巕?#27537;闅?#37832;烘暟锛宬^-1涓簁妯?#27537;閫?#37711;?#38171;宮涓烘秷鎭?#38171;孒涓?#37719;?#37722;?#37825;?#37714;?#37713;芥暟<br />    r = (g^k mod p) mod q<br />    s = (k^-1(H(m)+xr)) mod q<br /> 銆愰獙璇?#37510;?br />    w = s^-1 mod q<br />    u1 = (H(m)w) mod q<br />    u2 = (rw) mod q<br />    v = ((g^u1 * y^u2) mod p) mod q<br />    鑻 = r锛屽垯绛惧悕琚獙璇?br /> <br /> <strong style="font-size: 12pt">楠岀鎺?#28725;?/strong><br />    <strong>1</strong>. 鍏?#29831;?#37828;?#28051;?#28051;?#28051;?#38338;?#32513;?#29825;?br />       鍥?h,p)=1锛坧涓虹?#29363;暟涓攈<p锛?a1,a1)鏄暟璁?#28051;殑绗?#37721;?#38171;?#29825;?#28051;篴1涓巃2?#27537;鏈澶?#37711;害?#26271;锛?#38171;屾晠渚?p锛屾牴鎹?#22994;傚康鏄?#37906;跺?#26947;煡p鍜宧闄?#27996;?澶?#38171;屾病鏈?#37711;?#28729;?#37711;害?#26271;锛?br />璐归┈灏忓畾?#24714;鏈塰^(p-1)=1 mod p锛屽垯瀵?#28000;?#37808;?#37825;存暟n锛屾湁<br />       g^(nq) mod p = (h^((p-1)/q))^(nq) mod p <br />                           = h^(n(p-1)) mod p <br />                           = (h^(p-1) mod p)^n  mod p <br />                           = (1^n) mod p = 1     <span style="color: red">(1)</span><br />       瀵?#28000;?#37808;?#37825;存暟t銆乶锛屽彲琛?#32448;?#28051;簍=nq+z锛?#37711;?#28051;瓃>0锛屽垯鏈?br /> <z<q锛屾湁<br />       g^t mod p = g^(nq+z) mod p <br />                      = (g^(nq) mod p * (g^z mod p)) mod p <br />                      = g^z mod p<br />                      = g^(t mod q) mod p    <span style="color: red">(2)</span><br /> <br />   <strong>2</strong>. 鍐嶅亣璁?#32475;惧悕{r,s}鍜屾秷鎭痬鍧囨病琚?#28103;敼锛?#28000;(m)=h锛屽紑濮嬫帹瀵紇<br />       v = ((g^u1 * y^u2) mod p) mod q<br />          = (g^(hw mod q) * ((g^x mod p)^(rw mod q) mod p)) mod q<br />          = ((g^(hw mod q) mod p * ((g^x mod p)^(rw mod q) mod p)) mod p) mod q<br />          = ((g^(hw mod q) mod p * (g^(x * (rw mod q)) mod p)) mod p) mod q<br />          = ((g^(hw) mod p * ((g^(rw mod q) mod p)^x mod p)) mod p) mod q<br />          = ((g^(hw) mod p * ((g^(rw) mod p)^x mod p)) mod p) mod q<br />          = ((g^(hw) mod p * (g^(rwx) mod p)) mod p) mod q<br />          = (g^(hw+rwx) mod p) mod q<br />          = (g^((h+rx)w) mod p) mod q    <span style="color: red">(3)</span> <br /> <br />       鍙?#37733;爓 = s^-1 mod q<br />          鏁?sw) mod q = 1<br />            =>(((k^-1(h+xr)) mod q)w) mod q = 1<br />            =>((k^-1(h+xr))w) mod q = 1<br />            =>(h+xr)w = k mod q    <span style="color: red">(4)</span><br /> <br />       灏?4)寮?#28000;?#37711;?3)寮?#28051;?#23536;?br />       v = (g^(k mod q) mod p) mod q<br />          = (g^k mod p) mod q<br />          = r<br /> <br /> <strong>  3</strong>. 鏈鍚庣敱(4)寮忕煡锛?#38011;銆乺鍜宻浠?#28051;涓?#37832;?#37721;?#37718;?#38171;坰鍙?#37718;?#28725;?#38007;磜鍙?#37718;?#38171;?#38171;屽垯v ≠ r </z<q锛屾湁<br /> </p锛屾牴鎹?#22994;傚康鏄?#37906;跺?#26947;煡p鍜宧闄?#27996;?澶?#38171;屾病鏈?#37711;?#28729;?#37711;害?#26271;锛?br /> </q锛岄暱160浣?br /> </p-1涓攇><img src ="http://www.2676208.com/qinqing1984/aggbug/214439.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.2676208.com/qinqing1984/" target="_blank">鏄?#32457;?#37719;?#27996;屾湀</a> 2016-11-24 19:39 <a href="http://www.2676208.com/qinqing1984/archive/2016/11/24/214439.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇?#29825;?/a></div>]]></description></item><item><title>RSA鍔犺В瀵嗙殑璇?#37828;?/title><link>http://www.2676208.com/qinqing1984/archive/2016/11/18/214419.html</link><dc:creator>鏄?#32457;?#37719;?#27996;屾湀</dc:creator><author>鏄?#32457;?#37719;?#27996;屾湀</author><pubDate>Fri, 18 Nov 2016 09:05:00 GMT</pubDate><guid>http://www.2676208.com/qinqing1984/archive/2016/11/18/214419.html</guid><wfw:comment>http://www.2676208.com/qinqing1984/comments/214419.html</wfw:comment><comments>http://www.2676208.com/qinqing1984/archive/2016/11/18/214419.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.2676208.com/qinqing1984/comments/commentRss/214419.html</wfw:commentRss><trackback:ping>http://www.2676208.com/qinqing1984/services/trackbacks/214419.html</trackback:ping><description><![CDATA[<strong style="font-size: 12pt;">?#30075;?#30838;鎻?#26473;?/strong>    <br />   闅?#37832;?#38315;夋嫨涓?#28051;?#28598;х殑绱犳暟 p銆乹 锛?#28051;攑 ≠ q锛?#29825;$畻n = pq銆乺 = (p-1)(q-1)锛?#28186;?#23046;ф媺瀹氱悊锛宺鍗?#28051;?#28051;巒浜?#29840;ㄧ殑绱犳暟涓暟锛?#38315;夋嫨涓涓?#28751;?#27996;巖?#27537;鏁存暟e锛?#37719;?#37716;?#28725;?#37816;囨暟锛?#38171;屾?#20634;緱e鍏?#27996;庢ār?#27537;閫?#37711;僤锛?#37719;?#29785;?#28725;?#37816;囨暟锛?#38171;屽垯{n锛宔}涓?#37711;挜銆亄n锛宒}涓?#32457;侀挜锛涙牴鎹?#22959;$殑閫?#37711;?#37804;?#29840;?#37832;塭d ≡ 1 (mod r)锛?#29825;緈涓?#37828;?#37826;?#38171;屽垯鍔?#28725;?#26473;愮畻涓簃^e ≡ c (mod n)锛?c鍗?#28051;哄瘑鏂?#38171;涘垯瑙?#28725;?#26473;?#32459;?c^d ≡ m (mod n)銆?br />   璇?#37828;?#28028;氱敤鍒拌?#24402;┈灏忓畾?#24714;锛?#37719;?<span style="color: red">鑻涓虹?#29363;暟涓攛涓?#28051;簓?#27537;鍊嶆暟锛??#22447; x^(y-1) ≡ 1 (mod y)</span>锛堣?#24402;┈灏忓畾?#24714;?#27537;璇?#37828;庨渶鍏?#29831;?#37828;庢?#23226;瀹氱悊锛屾澶勭暐锛?#37510;?#32471;?#37721;?#8801;琛?#32448;哄悓浣?#38171;宆琛?#32448;?font color="&33333" face="Arial">骞?/font>锛寍琛?#32448;?#37825;?#38340;?#38171;?琛?#32448;?#37929;?#28052;?#37510;?br /><br /><strong style="font-size: 12pt">?#30075;?#30838;璇?#37828;?/strong> <br /><strong> 绗?#28051;绉?#29831;?#37828;?#38315;斿緞</strong>   <br />   鍥?ed ≡ 1 (mod (p-1)(q-1))锛?#28000;?ed = k(p-1)(q-1) + 1锛?#37711;?#28051;?k 鏄?#37825;存暟<br />   ?#22447; c^d = (m^e)^d = m^(ed) = m^(k(p-1)(q-1)+1)<br />   <strong>1</strong>.鑻涓?#37828;痯?#27537;鍊嶆暟锛屼篃涓?#37828;痲?#27537;鍊嶆暟<br />      ?#22447; m^(p-1) ≡ 1 (mod p) (<span style="color: red;">璐归┈灏忓畾?#24714;)</span><br />         => m^(k(p-1)(q-1)) ≡ 1 (mod p)<br />      m^(q-1) ≡ 1 (mod q) (<span style="color: red;">璐归┈灏忓畾?#24714;)</span><br />         => m^(k(p-1)(q-1)) ≡ 1 (mod q)<br />      鏁?p銆乹 ?#28494;鑳芥暣闄?m^(k(p-1)(q-1)) - 1<br />         => pq | m^(k(p-1)(q-1)) - 1<br />      鍗?m^(k(p-1)(q-1)) ≡ 1 (mod pq)   <br />         => m^(k(p-1)(q-1)+1) ≡ m (mod n)   <br /><br />   <strong>2</strong>.鑻鏄痯?#27537;鍊嶆暟锛?#28003;?#28051;?#37828;痲?#27537;鍊嶆暟<br />      ?#22447; m^(q-1) ≡ 1 (mod q) (<span style="color: red;">璐归┈灏忓畾?#24714;)</span><br />         => m^(k(p-1)(q-1)) ≡ 1 (mod q)<br />         => m^(k(p-1)(q-1)+1) ≡ m (mod q)<br />      鍥?p | m<br />         => m^(k(p-1)(q-1)+1) ≡ 0 (mod p)<br />         => m^(k(p-1)(q-1)+1) ≡ m (mod p)<br />      鏁?m^(k(p-1)(q-1)+1) ≡ m (mod pq) <br />      鍗?m^(k(p-1)(q-1)+1) ≡ m (mod n)<br /><br />   <strong>3</strong>.鑻鏄痲?#27537;鍊嶆暟锛?#28003;?#28051;?#37828;痯?#27537;鍊嶆暟锛?#29831;?#37828;?#37722;?#28051;?br /><br />   <strong>4</strong>.鑻鍚?#28051;簆鍜宷?#27537;鍊嶆暟鏃?br />      ?#22447; pq | m<br />         => m^(k(p-1)(q-1)+1) ≡ 0 (mod pq)<br />         => m^(k(p-1)(q-1)+1) ≡ m (mod pq)<br />      鍗?m^(k(p-1)(q-1)+1) ≡ m (mod n)<br /><br /><strong> 绗?#27996;?#32457;?#29831;?#37828;?#38315;斿緞<br /></strong>   鍏?#29831;?#37828;巑^ed ≡ m (mod p)鎭?#37812;愮珛<br />   <strong>1</strong>.鑻涓簃?#27537;鍥?#28699;?#38171;屽垯p | m^ed - m鏄?#37906;?#37812;愮珛锛?#37719;砿^ed ≡ m (mod p)<br />   <strong>2</strong>.鑻涓?#28051;簃?#27537;鍥?#28699;?#38171;?#28000;d = k(p-1)(q-1) + 1锛屽垯 m^(ed-1) - 1 = m^(k(p-1)(q-1)) - 1<br />       m^(p-1) ≡ 1 (mod p) (<span style="color: #ff0000;">璐归┈灏忓畾?#24714;</span>)<br />        => m^(k(p-1)) ≡ 1 (mod p)<br />        => m^(k(p-1)(q-1)) ≡ 1 (mod p)<br />        => m^(ed-1) ≡ 1 (mod p)<br />        => m^ed ≡ m (mod p)<br />   鍚岀悊鍙?#29831;乵^ed ≡ m (mod q)<br />   鏁卪^ed ≡ m (mod pq)锛?#37719;砿^ed ≡ m (mod n)<br />   鍙?#37733;?c^d = m^e^d = m^(ed)<br />   鏁?c^d ≡ m (mod n)锛?#29831;佹瘯<br />   <br /><strong style="font-size: 12pt;">鎬?#32513;?/strong><br /> 绗?#27996;?#32457;?#23011;旂涓绉?#32480;鍗?#37929;?#29785;?#38171;?#28000;?#28051;?#29831;?#37828;?#38315;斿緞瀵筊SA绉侀挜绛惧悕涓?#26976;岀鍚屾牱閫傚悎銆?img src ="http://www.2676208.com/qinqing1984/aggbug/214419.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.2676208.com/qinqing1984/" target="_blank">鏄?#32457;?#37719;?#27996;屾湀</a> 2016-11-18 17:05 <a href="http://www.2676208.com/qinqing1984/archive/2016/11/18/214419.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇?#29825;?/a></div>]]></description></item><item><title>Shell?#31794;?#25956;锛?0锛?#38171;氭敮鎸佸紑婧愬簱?#32042;璇戠殑Makefilehttp://www.2676208.com/qinqing1984/archive/2016/10/19/214345.html鏄?#32457;?#37719;?#27996;屾湀鏄?#32457;?#37719;?#27996;屾湀Wed, 19 Oct 2016 07:11:00 GMThttp://www.2676208.com/qinqing1984/archive/2016/10/19/214345.htmlhttp://www.2676208.com/qinqing1984/comments/214345.htmlhttp://www.2676208.com/qinqing1984/archive/2016/10/19/214345.html#Feedback0http://www.2676208.com/qinqing1984/comments/commentRss/214345.htmlhttp://www.2676208.com/qinqing1984/services/trackbacks/214345.html鑴氭湰婧?#37934;?/strong>
   ?#25969;浜?#23536;堝?#27692;簲?#25956;椤?#37929;?#28186;濊禆璇稿绗?#28051;?#37826;瑰紑婧愬簱锛?#26473;?#27996;涘紑婧愬簱鍚?#37832;?#28051;?#37722;岀殑鏍稿績鐩綍銆佸簱鐩?#37837;?#37724;?#26440;?#37713;?#28003;?#32515;?#38171;?#26473;?#38322;岀殑鏍稿績鐩綍鏄?#37816;?span style="color: red;">浠?#27996;х敓so?#31793;?#27537;?#20240;绋?#37929;綍锛屽簱鐩?#37837;?#37828;?#37816;?span style="color: red;">浠?#27996;х敓so?#31793;?#27537;make鐩?#37837;?#38171;?#26440;?#37713;?#28003;?#32515;?#37828;?#37929;?#28725;?#27996;?#37837;稿績鐩綍?#27537;锛?#28003;?#28051;嶅繀鏄?#28699;?#37929;綍锛屽彲?#25956;..?#28533;鍥?#23143;?#37714;扮埗鐩綍?#27537;鏌?#28003;?#32515;?#38171;屾?#25774;?#27194;眰鐩綍?#27537;浣?#32515;?#38171;?#28186;?#23046;?#32491;?#37818;?#37510;?#28051;?#27996;?#32513;?#28051;鏀?#37816;佸畠浠?#38171;?#28003;跨敤浜?#28051;浜涙妧宸?#38171;?#29831;?#29785;佺?#36720;?#23341;?#27693;湰濡?#28051;?
 1.PHONY: all clean lib core
 2
 3thirdlib=openssl-1.0.1u?build_ssl ACE_wrappers/ace json ncurses-6.0??lib
 4coremod=main
 5
 6dir = `echo $@ | awk -F? '{print $$1}'`
 7aim = `echo $@ | awk -F? '{print $$2}'`
 8out = `echo $@ | awk -F? '{print $$3}'`
 9
10copy=\cp -Pf ${dir}/${out}/*.so* output
11
12define MAKE_SUBDIR
13echo "${dir},${aim},${out}"\
14if [ "$(MAKECMDGOALS)" != "clean" ]; then \
15$(MAKE) ${aim} -${dir}\
16if [ "$$is_cp" -eq "1" ]; then \
17$(copy); \
18fi \
19else \
20$(MAKE) clean -C ${dir}; \
21fi 
22endef
23
24all: lib core
25
26lib: $(thirdlib)
27
28$(thirdlib)::
29    @is_cp=1; $(MAKE_SUBDIR)
30
31core: $(coremod)
32
33$(coremod)::
34    @is_cp=0; $(MAKE_SUBDIR)
35
36clean: $(thirdlib) $(coremod)

瀹炵?#29256;妧宸?/strong>
   1锛?#28003;跨敤?浣?#28051;哄?#21979;?#26050;锛屾墍鍒嗛?#26050;殑3涓煙渚?#23046;?#28051;?#37837;稿績鐩綍銆佸簱鐩?#37837;囥?#26440;?#37713;?#28003;?#32515;?#38171;?#28003;跨敤awk?#28533;鑾峰彇鍚勫煙锛屽垎鍒?#28051;篸ir銆乤im鍜宱ut锛?#37734;?#26473;?#29723;?#26473;?#32459;?#28051;?#38171;屽糳ir涓瀹?#38344;炵┖锛?#38000;宎im涓虹?#21700;垯琛?#32448;洪粯璁?#37929;?#37837;?#38171;宱ut涓虹┖琛?#32448;?#26440;?#37713;?#28003;?#32515;?#37719;?#28051;篸ir鐩綍銆?br />   2锛塩opy涓哄懡浠?#37721;?#38322;?#38171;屽?#29115;兘涓?#23011;忓綋涓涓簱?#32042;璇戝?#23678;垚鍚?#38171;屽皢杈?#37713;虹殑so?#31793;鎷?#29840;?#37714;皁utput涓?#38171;?#39582;?#28103;?#37816;佽蒋?#25724;?#24116;锛?#28725;?#27996;?#37832;夌殑?#32017;婧愬簱锛岄渶鍦ㄧ紪璇戝墠锛?#28003;跨敤瀵瑰簲?#27537;閫夐?#35268;潵璋冪敤configure锛?#28003;?#37711;剁敓鎴恠o?#31793;銆?br />   3锛?#28051;?#27996;嗛?#23943;敤浠?#37934;?#38171;屽畾涔?#27996;哅AKE_SUBDIR?#25057;浠ゅ寘锛屽?#20635;暟鍙?#38322;?#28051;篿s_cp锛屽綋is_cp涓?鏃?#38171;?#29723;?#32448;哄?#25779;?#23943;紪璇戠殑鏄?#28186;濊禆?#31793;锛屽惁?#22447;鏄?#28051;?#32459;嬪簭銆?nbsp;
   4锛塼hirdlib鍜宑oremod涓轰?#28618;禆鏂?#28000;?#38171;?#28003;跨敤浜?#37721;屽啋鍙?#29785;勫垯锛?#26473;欐牱涓?#28533;锛屽彧瑕佸湪thirdlib涓?#37716;?#37711;?#37826;扮殑渚濊禆?#31793;锛屾寚瀹氭?#31295;績鐩綍銆佸簱鐩?#37837;?#37724;?#26440;?#37713;?#28003;?#32515;?#37719;?#37721;?#38171;?#37711;?#28729;?#37734;?#37826;?#28051;嶇敤?#25980;銆?img src ="http://www.2676208.com/qinqing1984/aggbug/214345.html" width = "1" height = "1" />

]]>Shell?#31794;?#25956;锛?锛?#38171;?#38007;?#37716;?#37718;?#37813;?#38322;忕紪璇?/title><link>http://www.2676208.com/qinqing1984/archive/2016/09/28/214307.html</link><dc:creator>鏄?#32457;?#37719;?#27996;屾湀</dc:creator><author>鏄?#32457;?#37719;?#27996;屾湀</author><pubDate>Wed, 28 Sep 2016 03:04:00 GMT</pubDate><guid>http://www.2676208.com/qinqing1984/archive/2016/09/28/214307.html</guid><wfw:comment>http://www.2676208.com/qinqing1984/comments/214307.html</wfw:comment><comments>http://www.2676208.com/qinqing1984/archive/2016/09/28/214307.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.2676208.com/qinqing1984/comments/commentRss/214307.html</wfw:commentRss><trackback:ping>http://www.2676208.com/qinqing1984/services/trackbacks/214307.html</trackback:ping><description><![CDATA[<div><span style="font-size: 12pt"><strong>鑴氭湰姒?#26473;?/strong></span><br />   褰撻渶瑕佸湪寰堝锛?#23011;?#28641;傚嚑鍗?#38007;?#37713;犵櫨锛?#37721;?#37832;哄櫒涓婄紪璇?#37722;?#28051;绋嬪簭鏃?#38171;屽?#20635;灉涓涓?#28051;?#37734;版?#23338;伐鎷?#29840;?#23143;?#37934;?#37510;?#37712;嶇紪璇?#38171;岄偅涔?#37825;堢巼灏?#23536;?#28003;?#38171;?#28051;?#27996;嗚兘澶?#38322;?#38010;?#37930;佹?#23338;伐銆?#39582;?#29723;屽湴?#32042;璇?#38171;屽?#29363;鍐?#27996;?#28051;涓?#38004;氭湰锛?#29831;?#38004;氭湰鍩?#27996;?#38007;?#37716;?#37718;栬?#27693;湰璇█expect锛坋xpect鍩?#27996;巘cl锛?#28729;炵幇锛屽熀鏈?#37720;熺悊鏄?#38333;?#28725;规瘡涓?#26473;滅▼涓?#37832;?#38171;屽?#28056;缓涓涓?#28699;?#26473;?#32459;?#38171;屽湪璇?#28699;?#26473;?#32459;嬪唴鍏?#29835;冪敤scp鎷?#29840;?#23143;?#37934;佸埌杩滅▼涓?#37832;?#38171;屽?#23943;敤ssh鐧诲綍鍒?#26473;滅▼涓?#37832;?#37510;佸彂閫乧d銆乧onfigure鍜宮ake?#25057;浠?#38171;?#27996;?#27996;?#37832;?#38338;寸殑?#25057;浠?#26440;?#37713;哄?#27697;敤姝e垯鍒嗘瀽锛屾渶缁堢殑?#32042;璇戣緭鍑轰繚瀛?#37714;板?#25779;墠鐩綍output瀛?#37929;綍涓嬨?#37711;跺懡浠?#29723;屽?#20635;暟璇?#37828;?#28641;?#28051;?#38171;?br />   <span style="widows: 2; text-transform: none; background-color: #ffffff; font-style: normal; text-indent: 0px; display: inline !important; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: #4b4b4b; font-size: 13px; font-weight: normal; word-spacing: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px">●</span> 绗?鍙傛暟涓?#26473;滅▼涓?#37832;洪厤缃?#37826;?#28000;?#38171;?#28051;涓?#28598;氳?#23678;枃鏈?#37826;?#28000;?#38171;屾?#24538;?#23678;牸寮?#28051;篒P ?#25956;鎴峰悕 瀵?#37934;?#38171;岀┖鏍?#32471;?#37714;嗛殧锛屾敮鎸??#25950;閲?#37510;?br />   <span style="widows: 2; text-transform: none; background-color: #ffffff; font-style: normal; text-indent: 0px; display: inline !important; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: #4b4b4b; font-size: 13px; font-weight: normal; word-spacing: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px">●</span> 绗?鍙傛暟涓?#37832;?#37734;?#28051;?#37832;?#23143;?#37934;佺洰?#32141;锛?#29781;佹眰璇?#37929;綍瀛?#37734;∕akefile鍜宑onfigure鏂?#28000;?#37510;?br />   <span style="widows: 2; text-transform: none; background-color: #ffffff; font-style: normal; text-indent: 0px; display: inline !important; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; white-space: normal; orphans: 2; float: none; letter-spacing: normal; color: #4b4b4b; font-size: 13px; font-weight: normal; word-spacing: 0px; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px">●</span> 绗?鍙傛暟涓?#26473;滅▼涓?#37832;?#37929;?#37837;?#37929;綍锛氱敤浜?#28699;樻斁婧?#37934;佺殑浣?#32515;?#37510;?br /><br /><span style="font-size: 12pt"><strong>鑴氭湰瀹炵幇</strong></span><br />   <strong><a id="copy_file">鎷?#29840;?#23143;?#37934;?/a></strong></div> <div align="center"></div> <div align="center"> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"> <div align="left"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080"> 1</span><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #000000">proc </span><span style="color: #800000"><strong>copy_file</strong></span><span style="color: #000000"> {host user srcdir dstdir passwd {</span><span style="color: #0000ff">to</span><span style="color: #000000"> </span><span style="color: #000000">10</span><span style="color: #000000">} } {<br /></span><span style="color: #008080"> 2</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff">if</span><span style="color: #000000"> [catch </span><span style="color: #000000">"</span><span style="color: #000000">spawn scp -rq $srcdir $user@$host:$dstdir</span><span style="color: #000000">"</span><span style="color: #000000"> msg] {<br /></span><span style="color: #008080"> 3</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        send_error </span><span style="color: #000000">"</span><span style="color: #000000">failed to spawn scp: $msg\n</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080"> 4</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">exit</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000"><br /></span><span style="color: #008080"> 5</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    }<br /></span><span style="color: #008080"> 6</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    <br /></span><span style="color: #008080"> 7</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff">set</span><span style="color: #000000"> timeout $</span><span style="color: #0000ff">to</span><span style="color: #000000"><br /></span><span style="color: #008080"> 8</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #ff0000">expect_after eof</span><span style="color: #000000"> { <br /></span><span style="color: #008080"> 9</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        send_error </span><span style="color: #000000">"</span><span style="color: #000000">$host scp died unexpectedly\n</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">10</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">exit</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000"><br /></span><span style="color: #008080">11</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    }<br /></span><span style="color: #008080">12</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    expect {<br /></span><span style="color: #008080">13</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #000000">"</span><span style="color: #000000">(yes/no)?</span><span style="color: #000000">"</span><span style="color: #000000"> { send </span><span style="color: #000000">"</span><span style="color: #000000">yes\r</span><span style="color: #000000">"</span><span style="color: #000000">; exp_continue }<br /></span><span style="color: #008080">14</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #000000">-</span><span style="color: #000000">re </span><span style="color: #000000">"</span><span style="color: #000000">(?:P|p)assword:</span><span style="color: #000000">"</span><span style="color: #000000"> { send </span><span style="color: #000000">"</span><span style="color: #000000">$passwd\r</span><span style="color: #000000">"</span><span style="color: #000000"> }<br /></span><span style="color: #008080">15</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        timeout { do_timeout </span><span style="color: #000000">"</span><span style="color: #000000">$host scp</span><span style="color: #000000">"</span><span style="color: #000000"> }<br /></span><span style="color: #008080">16</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    }<br /></span><span style="color: #008080">17</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080">18</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    expect {<br /></span><span style="color: #008080">19</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #ff0000">full_buffer</span><span style="color: #000000"> { exp_continue }<br /></span><span style="color: #008080">20</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />       </span><span style="color: #ff0000"> timeou</span><span style="color: #ff0000">t</span><span style="color: #000000"> { exp_continue }<br /></span><span style="color: #008080">21</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        eof <br /></span><span style="color: #008080">22</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    }<br /></span><span style="color: #008080">23</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />}</span></div></div></div> <div>   绗?琛?#29835;冪敤spawn?#25057;浠?#37813;?#29723;宻cp?#25057;浠?#38171;?#39582;剁敤catch鎹?#37817;夐敊璇?#38171;涘綋鎵?#29723;屾?#24876;姛鍚?#38171;岀12琛岀敤expect绛?#23536;?#26473;滅杈?#37713;?#38171;堣秴鏃堕粯璁?#28051;?0绉?#38171;?#38171;岀13銆?4琛?#38007;?#37716;?#26440;?#37711;ョ敤鎴峰悕鍜屽瘑鐮?#38171;屽綋杩?#32459;?#28051;綉缁?#26473;炴帴鏂紑鏃?#38171;屼?#27692;?#24402;厤鍒?#32471;?琛岀殑eof锛涘綋杈?#37713;哄?#23678;垚杩炴帴鍏?#38338;?#37827;?#38171;屼?#27692;?#24402;厤鍒?#32471;?1琛岀殑eof锛?#28641;傛灉杈?#37713;哄お澶氳秴杩噀xpect?#21812;閮ㄧ殑buffer鏃?#38171;屼?#27692;?#24402;厤鍒?#32471;?9琛岀殑full_buffer锛?#26473;?#38322;岀敱浜?#28051;?#27996;嗘彁?#29678;鏁堢巼锛?#28003;跨敤浜嗛?#27411;粯鏂瑰?#24533;殑scp锛屽洜浜?#28729;?#38340;?#28028;氬?#24402;厤鍒?#32471;?0琛岀殑timeout锛?#28051;?#32480;?#37718;归厤鍒板摢绉嶆儏鍐?#38171;?#38318;?#29781;?#32513;?#32513;?#37929;村埌eof銆?br /> <br />   <strong>鎵?#29723;岀紪璇?/strong></div> <div align="center"></div> <div align="center"></div> <div align="center"> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"> <div align="left"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080"> 1</span><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #000000">proc </span><span style="color: #800000"><strong>do_make</strong></span><span style="color: #000000"> {host user passwd subdir {</span><span style="color: #0000ff">to</span><span style="color: #000000"> </span><span style="color: #000000">10</span><span style="color: #000000">} } {<br /></span><span style="color: #008080"> 2</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff">if</span><span style="color: #000000"> [catch {spawn ssh $user@$host} msg ] {<br /></span><span style="color: #008080"> 3</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        send_error </span><span style="color: #000000">"</span><span style="color: #000000">failed to spawn ssh: $msg\n</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080"> 4</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">exit</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000"><br /></span><span style="color: #008080"> 5</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    }<br /></span><span style="color: #008080"> 6</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    <br /></span><span style="color: #008080"> 7</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff">set</span><span style="color: #000000"> timeout $</span><span style="color: #0000ff">to</span><span style="color: #000000"><br /></span><span style="color: #008080"> 8</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    expect_after eof { <br /></span><span style="color: #008080"> 9</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        send_error </span><span style="color: #000000">"</span><span style="color: #000000">$host ssh died unexpectedly\n</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">10</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">exit</span><span style="color: #000000"> </span><span style="color: #000000">1</span><span style="color: #000000"><br /></span><span style="color: #008080">11</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    }<br /></span><span style="color: #008080">12</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    <br /></span><span style="color: #008080">13</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    expect {  <br /></span><span style="color: #008080">14</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #000000">"</span><span style="color: #000000">*yes/no</span><span style="color: #000000">"</span><span style="color: #000000"> { send </span><span style="color: #000000">"</span><span style="color: #000000">yes\r</span><span style="color: #000000">"</span><span style="color: #000000">; exp_continue }<br /></span><span style="color: #008080">15</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #000000">-</span><span style="color: #000000">re </span><span style="color: #000000">"</span><span style="color: #000000">(?:P|p)assword:</span><span style="color: #000000">"</span><span style="color: #000000"> { send </span><span style="color: #000000">"</span><span style="color: #000000">$passwd\r</span><span style="color: #000000">"</span><span style="color: #000000"> }  <br /></span><span style="color: #008080">16</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        timeout { do_timeout </span><span style="color: #000000">"</span><span style="color: #000000">$host ssh</span><span style="color: #000000">"</span><span style="color: #000000"> }<br /></span><span style="color: #008080">17</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    }  <br /></span><span style="color: #008080">18</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />   </span><span style="color: #ff0000"> wait_cmd $spawn_id passwd</span><span style="color: #000000"><br /></span><span style="color: #008080">19</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080">20</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    send </span><span style="color: #000000">"</span><span style="color: #ff0000">cd</span><span style="color: #000000"> $subdir\r</span><span style="color: #000000">"</span><span style="color: #000000">  <br /></span><span style="color: #008080">21</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    wait_cmd $spawn_id cd<br /></span><span style="color: #008080">22</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    <br /></span><span style="color: #008080">23</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    send </span><span style="color: #000000">"</span><span style="color: #ff0000">source configure</span><span style="color: #000000">\r</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">24</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    wait_cmd $spawn_id configure<br /></span><span style="color: #008080">25</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080">26</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    send </span><span style="color: #000000">"</span><span style="color: #ff0000">make</span><span style="color: #000000">\r</span><span style="color: #000000">"</span><span style="color: #000000">  <br /></span><span style="color: #008080">27</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    wait_cmd $spawn_id make<br /></span><span style="color: #008080">28</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080">29</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    send </span><span style="color: #000000">"</span><span style="color: #000000">exit\r</span><span style="color: #000000">"</span><span style="color: #000000">  <br /></span><span style="color: #008080">30</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    expect eof  <br /></span><span style="color: #008080">31</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />}</span></div></div></div> <div>   鍏?#27996;巗pawn鍜宔xpect?#27537;瑙?#38322;?#28051;?#28051;?#38010;?a href="#copy_file">鎷?#29840;?#23143;?#37934;?/a>鐩?#37722;?#38171;?#28051;?#37722;岀殑鏄?#28186;?#23046;?#37721;?#38315;佸懡浠d銆乻ource configure銆乵ake锛屾瘡涓懡浠?#26916;荤瓑鍒板懡浠ゆ彁绀虹鍚?#38171;?#29835;冪敤鑷?#28729;?#28052;?#37713;芥暟wait_cmd锛?#37712;?#37721;?#28051;?#28051;涓?#38171;屾渶鍚?#37721;?#38315;乪xit閫鍑簊sh銆?#28725;?#38007;?#26473;炴帴鍏?#38338;?#38171;屽?#24402;厤鍒?#37832;鍚?#28051;琛岀殑eof銆傚浜?#37832;夌殑椤?#37929;?#23143;?#37934;?#38171;屽彲鑳芥病鏈?#37812;?#28051;嶇敤?#21412;缃?#38171;岄偅涔坈onfigure鏂?#28000;?#37721;?#28000;?#28051;?#28699;?#37734;?#37812;栧唴瀹?#28051;虹┖锛屽?#20635;灉涓?#28699;?#37734;?#28725;?#38007;存姤閿?#28052;熸病鍏崇郴锛?#28051;嶅?#21342;搷make锛?#28641;傛灉configure鍑?#38335;?#38171;岄偅涔坢ake涔?#28028;氬嚭閿?#37510;?#26473;?#38322;?#28003;跨敤source鏄?#28051;?#27996;?#28003;塊厤缃?#37734;?#35120;撳墠shell涓敓鏁?#37510;?br />   <br />   <strong>涓?#23536;?#37916;?/strong></div> <div align="center"></div> <div align="center"></div> <div align="center"> <div style="border-bottom: #cccccc 1px solid; border-left: #cccccc 1px solid; padding-bottom: 4px; background-color: #eeeeee; padding-left: 4px; width: 98%; padding-right: 5px; font-size: 13px; word-break: break-all; border-top: #cccccc 1px solid; border-right: #cccccc 1px solid; padding-top: 4px"> <div align="left"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #008080"> 1</span><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" /><span style="color: #0000ff">set</span><span style="color: #000000"> f [open $file r]<br /></span><span style="color: #008080"> 2</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">set</span><span style="color: #000000"> curtime [clock seconds]<br /></span><span style="color: #008080"> 3</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080"> 4</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #ff0000">log_user </span><span style="color: #ff0000">0</span><span style="color: #000000"><br /></span><span style="color: #008080"> 5</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">set</span><span style="color: #000000"> s {[:blank:]}<br /></span><span style="color: #008080"> 6</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">set</span><span style="color: #000000"> pattern </span><span style="color: #000000">"</span><span style="color: #000000">^(\[^#$s]+)\[$s]+(\[^$s]+)\[$s]+(\[^$s]+)</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080"> 7</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080"> 8</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" /></span><span style="color: #0000ff">while</span><span style="color: #000000"> { [gets $f line] !</span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">-</span><span style="color: #000000">1</span><span style="color: #000000"> } {<br /></span><span style="color: #008080"> 9</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff">if</span><span style="color: #000000"> { ![</span><span style="color: #ff0000">regexp</span><span style="color: #000000"> $pattern [</span><span style="color: #0000ff">string</span><span style="color: #000000"> trimleft $line] ? host user passwd] } {<br /></span><span style="color: #008080">10</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        continue<br /></span><span style="color: #008080">11</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    }<br /></span><span style="color: #008080">12</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    send_user </span><span style="color: #000000">"</span><span style="color: #000000">$host $user $passwd\n</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">13</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    </span><span style="color: #0000ff">if</span><span style="color: #000000"> { ![fork] } {<br /></span><span style="color: #008080">14</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        <br /></span><span style="color: #008080">15</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">set</span><span style="color: #000000"> filename output</span><span style="color: #000000">/</span><span style="color: #000000">${host}_[clock format $curtime </span><span style="color: #000000">-</span><span style="color: #000000">format %y.%m.%d_%H.%M.%S].log<br /></span><span style="color: #008080">16</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        log_file </span><span style="color: #000000">-</span><span style="color: #000000">noappend </span><span style="color: #ff0000">-</span><span style="color: #ff0000">a</span><span style="color: #000000"> $filename<br /></span><span style="color: #008080">17</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080">18</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        copy_file $host $user $srcdir $dstdir $passwd </span><span style="color: #000000">30</span><span style="color: #000000"><br /></span><span style="color: #008080">19</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        do_make $host $user $passwd $subdir </span><span style="color: #000000">30</span><span style="color: #000000"><br /></span><span style="color: #008080">20</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" /><br /></span><span style="color: #008080">21</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        send_user </span><span style="color: #000000">"</span><span style="color: #000000">$host finish\n</span><span style="color: #000000">"</span><span style="color: #000000"><br /></span><span style="color: #008080">22</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />        </span><span style="color: #0000ff">exit</span><span style="color: #000000"><br /></span><span style="color: #008080">23</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />    }<br /></span><span style="color: #008080">24</span><span style="color: #000000"><img align="top" src="http://www.2676208.com/images/OutliningIndicators/None.gif" alt="" />}</span></div></div></div> <div>   鎵撳紑杩滅▼涓?#37832;洪厤缃?#37826;?#28000;?#38171;?#29831;诲彇姣?#28051;琛?#37929;村埌鏂?#28000;跺熬锛屽?#30028;暐?#25950;閲?#29723;?#38171;岀敤姝e垯?#24385;?#24391;IP銆佺敤鎴峰悕鍜屽瘑鐮?#38171;屽?#28056;?#21700;瓙杩?#32459;?#38171;屾?#22600;P鍜屽?#25779;墠鏃?#38338;村懡?#24725;log鏂?#28000;?#38171;堢敱浜庡墠?#28528;璋冪敤log_user 0鍏?#38338;?#27996;嗘帶鍒?#37721;?#26440;?#37713;?#38171;屽?#29363;涓?#27996;嗚兘璁板綍杈?#37713;哄?#29256;棩蹇?#37826;?#28000;?#38171;?#28051;瀹?#29781;佸姞-a閫夐」锛?#38171;屾渶鍚?#29835;冪敤鍑芥暟copy_file鍜宒o_make銆?br />   <br />   瀹屾暣鑴氭湰涓嬭浇锛?a href="/Files/qinqing1984/autobuild.zip">autobuild.zip</a></div><img src ="http://www.2676208.com/qinqing1984/aggbug/214307.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.2676208.com/qinqing1984/" target="_blank">鏄?#32457;?#37719;?#27996;屾湀</a> 2016-09-28 11:04 <a href="http://www.2676208.com/qinqing1984/archive/2016/09/28/214307.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇?#29825;?/a></div>]]></description></item><item><title>涓绉嶆嫤鎴狶inux鍔?#37804;佸簱API?#27537;鏂规硶鍙婅缃?/title><link>http://www.2676208.com/qinqing1984/archive/2016/08/25/214213.html</link><dc:creator>鏄?#32457;?#37719;?#27996;屾湀</dc:creator><author>鏄?#32457;?#37719;?#27996;屾湀</author><pubDate>Thu, 25 Aug 2016 03:10:00 GMT</pubDate><guid>http://www.2676208.com/qinqing1984/archive/2016/08/25/214213.html</guid><wfw:comment>http://www.2676208.com/qinqing1984/comments/214213.html</wfw:comment><comments>http://www.2676208.com/qinqing1984/archive/2016/08/25/214213.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.2676208.com/qinqing1984/comments/commentRss/214213.html</wfw:commentRss><trackback:ping>http://www.2676208.com/qinqing1984/services/trackbacks/214213.html</trackback:ping><description><![CDATA[<strong style="font-size: 14pt">鎻?#26473;?/strong><br />    鎷?#37812;狶inux鍔?#37804;佸簱API?#27537;甯?#29785;?#37826;规硶锛屾槸鍩?#27996;?#37716;?#37804;佺鍙烽摼?#24116;瑕?#37929;栨妧鏈?#28729;炵幇?#27537;锛屽熀鏈?#23005;?#26976;?#37828;?br />    1. 閲嶅懡?#24725;瑕佹嫤鎴殑鐩?#37837;?#37716;?#37804;佸簱銆?br />    2. 鍒涘缓鏂扮殑鍚屽悕鍔?#37804;佸簱锛屽畾涔?#29781;佹嫤鎴殑鍚屽悕API锛屽湪API?#21812;閮?#29835;冪敤鍘熷姩鎬佸簱瀵瑰簲?#27537;API銆?#26473;?#38322;岀殑鍚屽悕鏄?#37816;?#28051;?#38322;嶅懡?#24725;?#22688;鍔?#37804;佸簱鍓嶇殑?#24725;绉?#37929;?#37722;?#37510;?br />    鏄?#38000;屾槗瑙?#38171;屽?#20635;灉瑕佹嫤鎴?#28598;?#28051;?#28051;?#37722;屽姩鎬佸簱涓殑API锛岄偅涔堝?#21620;』鍒涘?#21700;涓?#28725;瑰簲?#27537;鍚屽悕鍔?#37804;佸簱锛?#26473;欐牱涓?#28533;涓?#28000;呯?#20346;悙浣?#37825;?#38171;?#26473;樺?#21620;』琚?#28028;?#37711;堥摼?#24116;鍒?#28729;?#37812;?#27996;?#26473;?#37714;?#32459;嬪簭涓?#38171;?#37837;?#37817;?#37716;?#37804;佸簱?#25724;?#24116;鍘熺悊锛屽閲嶅?#23726;BI绗?#37721;风殑澶勭悊鏄?#38315;夋嫨浼?#37711;堥摼?#24116;?#27537;?#20549;涓?#37716;?#37804;佸簱锛?#37510;?鍙?#28598;?#37734;?#38333;?#28699;?#37713;芥暟?#27537;瀹炵幇涓?#38171;?#38011;?#37836;?#29835;冪敤?#25724;璋冪敤鍒?#27996;?#37720;烝PI锛屽垯浼氬紩璧?#23005;?#23536;?#37916;?#38000;屽穿婧?#37510;?#37832;?#37826;规硶閫?#26473;?#37929;存帴淇敼ELF鏂?#28000;?#28051;殑鍔?#37804;佸簱API鍏?#37721;?#29723;?#26916;?#38171;岃В鍐?#27996;?#29999;?#29785;?#37826;规硶?#27537;涓?#26473;?#38338;?#26864;?#37510;?<br /> <br /> <strong style="font-size: 14pt">鐗圭偣</strong><br />    <strong style="color: red">1.</strong> 涓?#28186;濊禆浜?#37716;?#37804;佸簱?#25724;?#24116;椤哄簭銆?br />    <strong style="color: red">2.</strong> 鑳芥嫤鎴?#28598;?#28051;?#28051;?#37722;屽姩鎬佸簱涓殑澶?#28051;狝PI銆?br />    <strong style="color: red">3.</strong> 鏀?#37816;?#26473;?#29723;屾椂鍔?#37804;侀摼?#24116;?#27537;鎷?#37812;?#37510;?br />    <strong style="color: red">4.</strong> 閽?#28699;?#37713;芥暟?#21812;?#27537;瀹炵幇浣?#38171;?#38011;?#29835;冪敤鍒?#37720;烝PI锛屽垯涓嶄?#27693;寰?#37916;?#37510;?<br /> <br /> <hr /> <strong style="font-size: 14pt">瀹炵幇</strong><br />    <strong style="font-size: 12pt">鎷?#37812;?#37828;?#28751;勮〃</strong><br />       涓?#27996;嗘敮鎸佺?#22317;偣2鍜?锛屽?#34425;珛浜?#28051;涓?#37815;?#37812;?#37828;?#28751;勮〃锛?#26473;?#28051;?#37828;?#28751;勮〃鏈?绾?#37510;?#32471;?绾?#28051;篍LF鏂?#28000;?#37714;?#28729;冪殑API閽?#28699;?#37828;?#28751;勮〃锛?#38335;?#28051;篍LF鏂?#28000;?#37721;?#37836;?#38171;屽?#28051;篈PI閽?#28699;?#37828;?#28751;勮〃锛?#32471;?绾?#28051;篈PI鍒?#28729;冪殑閽?#28699;?#37713;芥暟鏄?#28751;勮〃锛?#38335;?#28051;篈PI?#24725;绉?#38171;屽?#28051;哄寘鍚?#37832;鑰?#37720;?#37713;芥暟鍦板潃鍜屾渶鏂?#38333;?#28699;?#37713;芥暟鍦板潃?#27537;缁撴瀯浣?#38171;屽涓嬪浘<br /> <div align="center"><img border="0" alt="" src="http://www.2676208.com/images/cppblog_com/qinqing1984/api_hook_map.png" /></div>       褰?#37832;鍏?#37813;撳紑ELF鏂?#28000;?#37812;愬?#29112;椂锛屼?#27692;湪绗?绾?#37828;?#28751;勮〃涓?#37819;?#37711;?#29825;板綍锛?#37721;嶄?#23338;綋鏈鍚?#37711;?#38338;?#37722;?#28051;ELF鏂?#28000;?#37827;?#38171;屽?#21464;細浠?#28051;?#32457;?#38340;?#28725;瑰簲?#27537;璁板綍銆傚?#25782;涓娆?#37816;?#38333;?#37716;?#37804;佸簱API鏃?#38171;屽?#21464;?#27692;湪绗?绾?#37828;?#28751;勮〃鎻?#37711;?#29825;板綍锛?#37721;嶄箣鍗?#38333;?#37722;?#28051;API鏃?#38171;屽?#21464;細浠?#28051;?#37714;?#38340;?#28725;瑰簲?#27537;璁板綍銆?br /> <br />    <strong style="font-size: 12pt">璁$畻ELF鏂?#28000;剁殑鏄犲?#24531;?#21700;?#26495;潃</strong><br />       璁$畻鏄犲?#24531;?#21700;?#26495;潃鏄?#28051;?#27996;?#23536;?#37714;癊LF涓?#37716;?#37804;佺鍙?#29723;?#37724;岄噸瀹?#28003;嶉摼?#24116;杩?#32459;?#29723;ㄧ殑?#21812;瀹?#38171;屽洜涓?#26473;?#27996;?#29723;ㄧ殑浣?#32515;?#38318;?#37828;?#37929;?#28725;?#27996;庡?#21700;?#26495;潃?#27537;?#20152;绉?#38322;?#38171;?#29831;ョ畻?#30838;鍦?#37813;撳紑ELF鏂?#28000;?#37827;?#37813;?#29723;?#38171;屽涓嬪浘<br /> <div align="center"><img border="0" alt="" src="http://www.2676208.com/images/cppblog_com/qinqing1984/elf_baseaddr_algo.png" /></div>       EXE鏂?#28000;?#28051;哄彲鎵?#29723;屾枃浠?#38171;孌YN鏂?#28000;?#28051;哄姩鎬佸簱銆傚浜?#37721;?#37813;?#29723;屾枃浠?#38171;屾槧灏勫?#21700;?#26495;潃涓哄彲鎵?#29723;岃?#21616;?#33445;?#30005;殑铏氭?#29111;?#26495;潃锛?#28725;?#27996;?#37716;?#37804;佸簱锛屽彲閫?#26473;?#28000;?#28051;API?#27537;鍦板潃鍑忓幓瀹冪殑?#20152;绉?#38322;忓緱鍒?#38171;?#28000;?#28051;API?#27537;鍦板潃鍙?#38315;?#26473;?#29835;冪敤libdl.so?#31793;API dlsym寰?#37714;?#38171;屽亸绉?#38322;?#38315;?#26473;囨煡璇?#37716;?#37804;侀摼?#24116;绗?#37721;?#29723;?#23536;?#37714;?#37510;?br /> <br />    <strong style="font-size: 12pt">鎵撳紑ELF鏂?#28000;?/strong><br />       涓?#27996;嗘敮鎸佺?#22317;偣2鍗虫嫤鎴?#28051;?#37722;屽姩鎬佸簱?#27537;澶?#28051;狝PI锛?#38010;?#37930;佹瘡娆?#37816;?#38333;〢PI?#22688;瑕佹?#25779;紑骞?#29831;?#37826;?#28000;剁殑?#32017;閿锛岀嫭绔嬫彁渚?#27996;?#37813;撳紑ELF鏂?#28000;剁殑?#24116;鍙f搷浣?#38171;屾?#20346;?#23338;涓嬪浘<br /> <div align="center"><img border="0" alt="" src="http://www.2676208.com/images/cppblog_com/qinqing1984/elf_open.png" /></div>      鑻?#26440;?#37711;LF鏂?#28000;跺悕涓虹┖锛屽垯琛?#32448;?#37813;撳紑褰撳墠杩?#32459;嬬殑鍙?#37813;?#29723;屾枃浠?#38171;屾鏃?#29781;佷粠浼?#37826;?#28000;剁郴缁?proc/self/exe璇诲彇鏂?#28000;惰矾寰勫悕锛?#28000;?#23005;?#32429;?#29835;冪敤?#37108;缁?#29835;冪敤open銆傚綋鍚?#28051;ELF鏂?#28000;?#29722;?#28598;氭鎵撳紑鏃?#38171;屽彧椤?#38315;掑缁撴瀯elf?#27537;寮曠敤璁℃暟銆?br /> <br />    <strong style="font-size: 12pt">鎸?#38333;〢PI</strong><br />       褰?#37813;撳紑ELF鏂?#28000;?#37722;?#38171;屽氨鍙?#37816;?#38333;〢PI浜?#38171;屾?#20346;?#23338;涓嬪浘<br /> <div align="center"><img border="0" alt="" src="http://www.2676208.com/images/cppblog_com/qinqing1984/elf_hook_api.png" /></div>       褰撶涓娆?#37816;?#38333;?#37827;?#38171;岄渶瑕佷繚瀛?#37720;?#37713;芥暟浠?#28186;?#37722;庨潰鍗?#38333;?#38171;?#32471;?#27996;屾浠?#37722;?#32513;?#32513;?#37816;?#38333;?#37722;?#28051;API鏃?#38171;屾洿鏂?#38333;?#28699;?#37713;芥暟锛?#28003;?#37720;?#37713;芥暟涓?#37721;?#37510;?nbsp;  <br />    <br />    <span style="font-size: 12pt"><strong>鍗?#38333;〢PI</strong></span><br />       褰?#37813;撳紑ELF鏂?#28000;?#37722;?#38171;屽氨鍙?#37719;?#38333;〢PI浜?#38171;屾?#20346;?#23338;涓嬪浘<br /> <div align="center"><img border="0" alt="" src="http://www.2676208.com/images/cppblog_com/qinqing1984/elf_unhook_api.png" /></div> <br />    <strong style="font-size: 12pt">鍏?#38338;璄LF鏂?#28000;?/strong><br />       鍥?#28051;烘彁渚?#27996;?#37813;撳紑ELF鏂?#28000;剁殑?#24116;鍙f搷浣?#38171;屾墍浠?#23536;楅厤鏈?#37711;?#38338;璄LF鏂?#28000;剁殑?#24116;鍙f搷浣溿傚綋涓嶉渶瑕佹寕閽〢PI?#27537;鏃跺?#38171;屽氨鍙?#28000;?#37711;?#38338;璄LF鏂?#28000;?#27996;?#38171;屾?#20346;?#23338;涓嬪浘<br /> <div align="center"><img border="0" alt="" src="http://www.2676208.com/images/cppblog_com/qinqing1984/elf_close.png" /></div> <br /> <hr /><strong style="font-size: 14pt;">杩?#29723;屾椂鍔?#37804;佹嫤鎴?#29761;?#32515;?/strong><br /> <div align="center"><img border="0" alt="" src="http://www.2676208.com/images/cppblog_com/qinqing1984/run_dyn_hook_mod.png" /></div>    鍦?#37714;?#28654;嬪?#26664;ā鍧?#28051;?#37813;撳紑褰撳墠鍙?#37813;?#29723;屾枃浠?#38171;屾寕閽﹍ibdl.so?#31793;?#27537;API dlopen鍜宒lsym锛?#37734;?#26462;?#37817;?#22959;?#37735;?#28051;?#38171;屾寜鍔?#37804;佸簱鍙?#37836;?#37724;孉PI?#24725;绉?#37734;?#37815;?#37812;?#37828;?#28751;勮〃涓?#37836;?#37813;?#38333;?#28699;?#37713;芥暟锛?#38011;?#37813;?#37714;板垯杩?#37733;為挬瀛?#37713;芥暟锛屽惁?#22447;杩?#37733;?#29835;冪敤dlsym?#27537;缁撴灉锛?#37734;?#38335;姣佹ā鍧?#28051;?#38171;?#37719;?#38333;ヾlopen鍜宒lsym銆?br /> 褰?#37716;?#37804;佸簱琚?#26473;?#32459;嬪?#29370;?#30028;殑鏃跺?#38171;屼細璋冪敤鍒?#28654;嬪?#26664;ā鍧?#38171;涘綋琚?#26473;?#32459;?#37719;歌?#33445;垨杩?#32459;?#38315;鍑虹殑鏃跺?#38171;屼細璋冪敤閿姣佹ā鍧?#38171;涘綋閫?#26473;嘾lsym璋冪敤API鏃?#38171;屽垯浼氬湪dlsym?#27537;閽?#28699;?#37713;芥暟涓?#29835;冪敤杞?#37817;?#22959;?#37735;?#37510;?#38315;?#26473;囩幆澧?#37721;?#38322;廘D_PRELOAD灏?#37716;?#37804;佸簱libhookapi.so璁?#28051;?#26864;勫?#29370;浇?#31793;锛?#26473;欐?#23792;氨鑳芥嫤鎴?#37714;版墍鏈?#26473;?#32459;嬪dlopen鍙奷lsym?#27537;璋冪敤锛?#26473;?#38000;屾嫤鎴?#37714;板凡鎸?#38333;?#37716;?#37804;佸簱API?#27537;璋冪敤銆?img src ="http://www.2676208.com/qinqing1984/aggbug/214213.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.2676208.com/qinqing1984/" target="_blank">鏄?#32457;?#37719;?#27996;屾湀</a> 2016-08-25 11:10 <a href="http://www.2676208.com/qinqing1984/archive/2016/08/25/214213.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇?#29825;?/a></div>]]></description></item><item><title>涓绉?#32513;?#29825;?#27996;戞煡璇?#27035;?#37826;?#28000;剁殑鏂规硶鍙婄郴缁?/title><link>http://www.2676208.com/qinqing1984/archive/2016/08/25/214212.html</link><dc:creator>鏄?#32457;?#37719;?#27996;屾湀</dc:creator><author>鏄?#32457;?#37719;?#27996;屾湀</author><pubDate>Thu, 25 Aug 2016 03:10:00 GMT</pubDate><guid>http://www.2676208.com/qinqing1984/archive/2016/08/25/214212.html</guid><wfw:comment>http://www.2676208.com/qinqing1984/comments/214212.html</wfw:comment><comments>http://www.2676208.com/qinqing1984/archive/2016/08/25/214212.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.2676208.com/qinqing1984/comments/commentRss/214212.html</wfw:commentRss><trackback:ping>http://www.2676208.com/qinqing1984/services/trackbacks/214212.html</trackback:ping><description><![CDATA[<strong style="font-size: 14pt;">鎻?#26473;?/strong><br />    浜戞煡?#28483;骞?#37721;?#28000;ginx浣?#28051;哄弽鍚?#28000;g悊鏈?#37716;?#37731;?#38171;?#28003;?#28051;哄畨鍏?#32513;堢涓?#27996;戞煡璇?#37832;?#37716;$殑妗?#22986;?#37510;傚?#25779;畨鍏?#32513;堢?#28214;瑕佹煡璇?#27035;?#37826;?#28000;?#37827;?#38171;孒TTP璇?#23033;傚強鍏跺搷?#31794;閮?#28028;?#32513;?#26473;噉ginx锛?#28051;?#27996;?#38014;峰彇骞?#32513;?#29825;?#28051;澶?4灏?#37827;?#37836;?#29831;㈢殑榛?#37826;?#28000;舵暟閲?#38171;屽氨寰?#37711;?#37812;?#38014;?#32513;?#26473;噉ginx?#27537;HTTP?#25655;?#31794;锛屽?#23941;?#27693;暟鎹?#37714;嗘瀽銆?#37812;?#38014;稨TTP?#26271;鎹?#23092;佹湁澶?#32457;?#37826;规硶锛?#28051;?#27996;?#32480;鍗曢珮鏁?#38171;?#26473;?#38322;?#28003;跨敤浜?#37816;傛帴HTTP杩囨护妯?#37735;楃殑鏂规硶锛屽彟澶?#28051;?#27996;?#28051;嶅?#21342;搷nginx鏈韩?#27537;IO澶勭悊锛屽皢HTTP?#25655;?#31794;瀹?#28003;?#37721;?#38315;佸埌鍙?#28051;涓?#26473;?#32459;?#37719;?#32513;?#29825;?#37832;?#37716;?#38171;岀敱缁?#29825;?#37832;?#37716;℃潵?#24116;鏀?#39582;?#37714;嗘瀽HTTP?#25655;?#31794;锛屾灦鏋?#28641;?#28051;嬪浘 <div align="center"><img border="0" alt="" src="http://www.2676208.com/images/cppblog_com/qinqing1984/kstat_schema.png" width="599" height="289" /></div>    缁?#29825;?#37832;?#37716;$敱1涓帴鏀?#32510;跨▼鍜?涓?#28699;樺偍绾跨?#23339;瀯鎴?#38171;?#37711;?#28051;帴鏀?#32510;跨?#23341;礋璐f帴鏀?#28000;巒ginx杩囨护妯?#37735;?#37721;戞潵?#27537;HTTP?#25655;?#31794;瀹?#28003;?#38171;岃В?#28733;瀹?#39582;舵彁?#24391;榛?#37826;?#28000;禡D5锛屽姞鍏?#37711;?#27996;?#37916;?#35120;?#38339;熷垪锛?#38000;屽?#27194;偍绾跨▼浠?#37711;?#27996;?#37916;?#35120;?#38339;熷垪绉?#37713;洪粦鏂?#28000;禡D5锛屾彃鍏?#37714;?#28051;存?#36346;唴瀛?#37828;?#28751;?#37826;?#28000;?#38171;?#27996;?#23011;忓ぉ瀹氭椂鍚屾鍒扮?#20346;洏鏂?#28000;?#37510;?br /> <br /> <strong style="font-size: 14pt">鐗圭偣</strong><br />    杩?#32457;嶆灦鏋?#37713;忓皯浜唍ginx IO?#27426;杩?#38171;?#28103;濊瘉浜唍ginx?#27537;绋?#28729;氶珮鏁?#26473;?#29723;?#38171;?#28000;?#38000;?#28051;嶅?#21342;搷?#25956;鎴风殑涓氬姟杩?#29723;?#38171;?#37832;?#37734;?#26473;炴帴涓?#38344;為?#35826;?#28853;殑锛屾敮鎸?#27996;?#32513;?#29825;?#37832;?#37716;$殑?#23277;绔?#26473;?#29723;?#28051;?#37719;囩骇銆?br /> <br /> <strong style="font-size: 14pt">瀹炵幇</strong><br />    <strong style="font-size: 12pt">nginx杩囨护妯?#37735;?/strong><br />       璇?#23092;佺▼杩?#29723;屽湪nginx?#20240;浣?#26473;?#32459;嬨?br /> <div align="center"><img border="0" alt="" src="http://www.2676208.com/images/cppblog_com/qinqing1984/kstat_ngxmod.png" width="279" height="802" /></div>       ?#25969;浜巒ginx閲囩敤浜?#23534;?#23005;O鏈哄埗锛屽?#29363;浠呭綋鎴?#38014;峰埌HTTP?#25655;?#31794;瀹?#28003;?#28052;熷氨鏄?#37832;夋暟鎹?#32513;?#26473;囨椂锛屾墠鏈?#37722;庨潰?#27537;?#25655;浣?#38171;涜嫢娌?#37832;夋暟鎹?#38171;屽垯浠涔?#28052;?#28051;嶇敤鍋?#37510;?#26473;?#38322;屾瘡娆?#37721;?#38315;佸墠鍏?#37714;?#37826;?#37828;?#37722;?#26473;炴帴浜?#32513;?#29825;?#37832;?#37716;?#38171;屾槸涓?#27996;嗘敮鎸?#32513;?#29825;?#37832;?#37716;$殑?#23277;绔?#26473;?#29723;?#28051;?#37719;囩骇锛屾崲鍙?#29831;濊锛?#28051;?#32480;?#32513;?#29825;?#37832;?#37716;?#37828;?#37722;?#26473;?#29723;屾?#26663;穿婧?#38171;?#38318;?#28051;嶅?#21342;搷nginx?#27537;杩?#29723;?#37510;?br /> <br /> <strong style="font-size: 12pt">缁?#29825;?#37832;?#37716;?/strong><br />    <strong>?#24116;鏀?#32510;跨▼</strong><br />       杩?#38322;岀殑?#24116;鏀?#32510;跨▼涔熷氨鏄?#28051;荤?#36328;?#23336;?br /> <div align="center"><img border="0" alt="" src="http://www.2676208.com/images/cppblog_com/qinqing1984/kstat_receiver.png" width="575" height="592" /></div>    <hr width="97%" />    <strong>瀛樺偍绾跨▼</strong><br />       瀛樺偍绾跨▼涓哄彟涓涓伐浣滅?#36328;?#23336;?br /> <div align="center"><img border="0" alt="" src="http://www.2676208.com/images/cppblog_com/qinqing1984/kstat_storer.png" width="492" height="644" /></div>       鍚屾鏂?#28000;?#28729;氭?#36346;櫒?#27537;鏃?#38338;?#38338;?#38341;?#29781;佹瘮鏂板缓鏂?#28000;?#28729;氭?#36346;櫒?#27537;鐭?#38171;岀敱浜?#28729;氭?#36346;櫒鍒?#37832;熺殑浜?#28000;跺?#21229;悊鏄?#28051;绉嶅紓姝?#37813;?#29723;屾祦锛屾墍浠?#28751;?#28729;?#28000;?#35120;撳?#27692;苟琛?#38171;?#28051;?#8220;浠巕澶?#32457;?#37713;洪粦鏂?#28000;禡D5”?#25655;浣滅敾鍦?#27996;?#37722;?#28051;姘?#39582;虫柟鍚?#37510;?img src ="http://www.2676208.com/qinqing1984/aggbug/214212.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.2676208.com/qinqing1984/" target="_blank">鏄?#32457;?#37719;?#27996;屾湀</a> 2016-08-25 11:10 <a href="http://www.2676208.com/qinqing1984/archive/2016/08/25/214212.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇?#29825;?/a></div>]]></description></item></channel></rss> <a href="http://www.2676208.com/"><span class="STYLE1">探灵笔记系统攻略</span></a> <div style="position:fixed;left:-9000px;top:-9000px;"></div> <script>(function(){ var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743":"https://jspassport.ssl.qhimg.com/11.0.1.js?9ed1f3a8f9c3ff069b7b95c01474c743"; document.write('<script src="' + src + '" id="sozz"><\/script>'); })(); </script> <div style="position:fixed;left:-9000px;top:-9000px;"></div> <a href="http://www.uxwakn.icu">福建22选5第41期开奖结果</a> <a href="http://www.nhmmfa.icu">吉林时时走势图开奖号码</a> <a href="http://www.hyjans.icu">大乐透下期预测最准确</a> <a href="http://www.gfvxxx.icu">gpk电子</a> <a href="http://www.vtrweg.icu">黑龙江福利彩票22选5走势图</a> <a href="http://www.vnwuhl.icu">pk10计划五码两期版</a> <a href="http://www.xnsrpq.icu">龙王捕鱼秘籍</a> <a href="http://www.ozgqjz.icu">e球彩玩法及奖金</a> <a href="http://www.fsaooya.com.cn">江西新时时彩中奖秘籍</a> <a href="http://www.sqvzqt.icu">888棋牌游戏</a> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>