<?xml version="1.0" encoding="UTF-8" ?>



<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

<channel>
<title><![CDATA[网络安全 linux ]]> </title>
<description>
<![CDATA[/]]>
</description>
<link>http://amxiaomao.blog.bokee.net/</link>
<language>zh-cn</language>
<creator>amxiaomao</creator>
<pubDate>Sun, 09 Apr 2006 13:35:35 CST </pubDate>
<generatorAgent rdf:resource="http://www.bokee.net"/>
<ttl>5</ttl>

<item>
<title>。。。</title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/5484443.html</link>
<description>
<![CDATA[<p>Windows Registry Editor Version 5.00</p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Extensions\{C18CB140-0BBB-11D4-8FE8-0088CC102439}]<br />&quot;ButtonText&quot;=&quot;网络安全&quot;<br />&quot;CLSID&quot;=&quot;{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}&quot;<br />&quot;Default Visible&quot;=&quot;Yes&quot;<br />&quot;Exec&quot;=&quot;<a href="http://amxiaomao.blog.bokee.net">http://amxiaomao.blog.bokee.net</a>&quot;<br />&quot;MenuStatusBar&quot;=&quot;网络安全&quot;<br />&quot;MenuText&quot;=&quot;网络安全&quot;<br />&quot;Icon&quot;=&quot;C:\\WINDOWS\\system32\\ie.ico&quot;<br />&quot;HotIcon&quot;=&quot;C:\\WINDOWS\\system32\\ie.ico&quot;</p>]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/5484443.html</guid>
<subject>乱七八糟</subject>
<author>amxiaomao</author>
<category>乱七八糟</category>
<pubDate>Thu, 08 Jul 2010 16:45:12 CST </pubDate>
</item>

<item>
<title>Word-删除某文档中某字符（回车符） </title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/4967857.html</link>
<description>
<![CDATA[<p>Word-删除某文档中某字符（回车符） ,利用宏,新建一宏,把如下代码,增加进去.</p>
<p>Sub 删除回车()<br />&nbsp;'删除选中部分的回车 Macro<br />&nbsp;Selection.Find.ClearFormatting<br />&nbsp;Selection.Find.Replacement.ClearFormatting<br />&nbsp;With Selection.Find<br />&nbsp;.Text = &quot;^p&quot;<br />&nbsp;.Replacement.Text = &quot;&quot;<br />&nbsp;.Forward = True<br />&nbsp;.Wrap = wdFindStop<br />&nbsp;.Format = False<br />&nbsp;.MatchCase = False<br />&nbsp;.MatchWholeWord = False<br />&nbsp;.MatchByte = True<br />&nbsp;.MatchAllWordForms = False<br />&nbsp;.MatchSoundsLike = False<br />&nbsp;.MatchWildcards = False<br />&nbsp;.MatchFuzzy = False<br />&nbsp;End With<br />&nbsp;Selection.Find.Execute Replace:=wdReplaceAll<br />&nbsp;End Sub</p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/4967857.html</guid>
<subject>乱七八糟</subject>
<author>amxiaomao</author>
<category>乱七八糟</category>
<pubDate>Mon, 26 Apr 2010 14:25:53 CST </pubDate>
</item>

<item>
<title>批量修改文件内容(pro/e批量安装)</title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/4739801.html</link>
<description>
<![CDATA[<span style="FONT-WEIGHT: bold">
<p><font size="1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;本脚本，可在机房内批量修改ProE。Pro/e 5.0免安装版以测试</font></p>
<p><font color="#ff0000" size="1">@echo off </font></p>
<p><font color="#ff0000" size="1">rem <a href="http://amxiaomao.blog.bokee.net">http://amxiaomao.blog.bokee.net</a> QQ:289605631<br />setlocal enabledelayedexpansion<br />set &quot;Space=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;<br />set &quot;PH_addr=%Space%Physical Address&quot;&nbsp; %<br />Rem ========set &quot;IP_addr=%Space%IP Address&quot; %<br />Rem ===========主程序===================<br />for /f &quot;tokens=1,* delims=.&quot; %%i in (&rsquo;ipconfig /all&rsquo;) do (<br />&nbsp;&nbsp; for %%a in (PH_addr IP_addr) do (<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if &quot;%%i&quot;==&quot;!%%a!&quot; set %%a=%%j<br />&nbsp;&nbsp; )<br />)<br />Rem &rsquo;/*===========对结果进行处理===========<br />set PH_addr=%PH_addr:*:=%<br />Rem ========set IP_addr=%IP_addr:*:=%<br />echo.<br />echo 你的网卡物理地址为：%PH_addr%<br />pause<br />echo. =================去除MAC空格=======================<br />set &quot;str=%PH_addr%&quot;<br />for /f &quot;tokens=* delims= &quot; %%a in (&quot;%str%&quot;) do call :ie &quot;%%a&quot;<br />goto :eof</font></p>
<p><font color="#ff0000" size="1">:ie str <br />set &quot;var=%~1&quot;<br />if &quot;%var:~-1%&quot;==&quot; &quot;&nbsp; call :ie &quot;%var:~0,-1%&quot;<br />Rem ===================================================<br />echo.<br />Rem ========内容替换=================<br />set file=LICENSE.DAT<br />rem ======================要操作的文件名称(包括扩展名LICENSE.DAT)<br />set &quot;file=%file:&quot;=%&quot;<br />for %%i in (&quot;%file%&quot;) do set file=%%~fi<br />echo.<br />set replaced=00-1D-7D-18-8D-56<br />ren=====&nbsp;注意其中&quot;set replaced=00-1D-7D-18-8D-56&quot;,中的00-1D-7D-18-8D-56为你破解文件中的MAC地址<br />rem set /p replaced= 请输入即将被替换的内容：<br />echo.<br />set all=%var%<br />for /f &quot;delims=&quot; %%i in (&rsquo;type &quot;%file%&quot;&rsquo;) do (<br />&nbsp;&nbsp;&nbsp; set str=%%i<br />&nbsp;&nbsp;&nbsp; set &quot;str=!str:%replaced%=%all%!&quot;<br />&nbsp;&nbsp;&nbsp; echo !str!&gt;&gt;&quot;%file%&quot;_tmp.txt<br />)<br />copy &quot;%file%&quot; &quot;%file%&quot;_bak.txt &gt;nul 2&gt;nul<br />move &quot;%file%&quot;_tmp.txt &quot;%file%&quot;<br />start &quot;&quot; &quot;%file%&quot;</font></p>
<p><font size="1"><font color="#ff0000">rem=================复制以上内容，保存为CMD。增加到启动目录中======================</font></font></p>
<p><font size="1">&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;&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;&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;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Am </font></p>
<p><font size="1">&nbsp;<font color="#ff0000">======================以下内容为此脚本大部分内容来源===========================</font></font></p>
<p><font size="1"><font color="#ff0000">1.提取MAC地址</font><br />::code by </font><a href="mailto:youxi01@bbs.bathome.cn"><font size="1">youxi01@bbs.bathome.cn</font></a><font size="1"> 2008-1-5<br />@echo off<br />setlocal enabledelayedexpansion<br />title 获取本机IP(局域网)及MAC地址@</font><a href="http://blog.163.com/lvshu_198511/blog/static/4077233020097534915699/"><font size="1">来自</font></a><font size="1">bbs.bathome.cn<br />Rem &rsquo;/*=========初始化设置=============*/<br />set &quot;Space=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;<br />set &quot;PH_addr=%Space%Physical Address&quot;&nbsp;&nbsp; %&rsquo;/*-----物理地址-------*/%<br />set &quot;IP_addr=%Space%IP Address&quot; %&rsquo;/*------IP地址(局域网)--------*/%<br />Rem ===========主程序===================<br />for /f &quot;tokens=1,* delims=.&quot; %%i in (&rsquo;ipconfig /all&rsquo;) do (<br />for %%a in (PH_addr IP_addr) do (<br />&nbsp;&nbsp; if &quot;%%i&quot;==&quot;!%%a!&quot; set %%a=%%j<br />)<br />)<br />Rem &rsquo;/*===========对结果进行处理===========<br />set PH_addr=%PH_addr:*:=%<br />set IP_addr=%IP_addr:*:=%<br />Rem &rsquo;/*===========结果输出===============<br />echo.<br />echo 你的网卡物理地址为：%PH_addr%<br />echo.<br />echo 你的IP(局域网)地址为：%IP_addr%<br />pause&gt;nul</font></p>
<p><font size="1">&nbsp;<font color="#ff0000">2.去掉字符串的空格</font></font></p>
<p><font size="1">ren&nbsp; </font><a href="http://blog.163.com/lvshu_198511/blog/static/4077233020097534915699/"><font size="1">来自</font></a><a href="http://www.bathome.net/viewthread.php?tid=453&amp;extra=page%3D199%26amp%3Borderby%3Ddateline%26amp%3Bascdesc%3DDESC&amp;page=1"><font size="1">http://www.bathome.net/viewthread.php?tid=453&amp;extra=page%3D199%26amp%3Borderby%3Ddateline%26amp%3Bascdesc%3DDESC&amp;page=1</font></a></p>
<p><font size="1">@echo off<br />set &quot;str=&nbsp; &nbsp; abc d&nbsp;&nbsp;&quot;<br />for /f &quot;tokens=* delims= &quot; %%a in (&quot;%str%&quot;) do (<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;set &quot;var=%%a&quot;<br />&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;call :ie<br />&nbsp; &nbsp; )<br />echo.<br />echo&nbsp;&nbsp;去除空格前:&nbsp;&nbsp;[%str%]<br />echo.<br />echo&nbsp;&nbsp;去除空格后:&nbsp;&nbsp;[%var%]<br />echo.<br />pause&amp;goto :eof<br /><br /><br />:ie<br />if &quot;%var:~-1%&quot;==&quot; &quot; (set &quot;var=%var:~0,-1%&quot;&amp;goto ie) else goto :eof</font></p>
<p><font color="#ff0000" size="1">3.内容替换</font></p>
<p><font size="1">rem </font><a href="http://blog.163.com/lvshu_198511/blog/static/4077233020097534915699/"><font size="1">来自http://blog.163.com/lvshu_198511/blog/static/4077233020097534915699/</font></a></p>
<p><font color="#666699" size="1">@echo off<br />setlocal enabledelayedexpansion<br />set file=<br />set /p file=&nbsp; 请输入要操作的文件名称(包括扩展名)：<br />set &quot;file=%file:&quot;=%&quot;<br />for %%i in (&quot;%file%&quot;) do set file=%%~fi<br />echo.<br />set replaced=<br />set /p replaced= 请输入即将被替换的内容：<br />echo.<br />set all=<br />set /p all=&nbsp; 请输入替换字符串：<br />for /f &quot;delims=&quot; %%i in (&rsquo;type &quot;%file%&quot;&rsquo;) do (<br />&nbsp;&nbsp;&nbsp; set str=%%i<br />&nbsp;&nbsp;&nbsp; set &quot;str=!str:%replaced%=%all%!&quot;<br />&nbsp;&nbsp;&nbsp; echo !str!&gt;&gt;&quot;%file%&quot;_tmp.txt<br />)<br />copy &quot;%file%&quot; &quot;%file%&quot;_bak.txt &gt;nul 2&gt;nul<br />move &quot;%file%&quot;_tmp.txt &quot;%file%&quot;<br />start &quot;&quot; &quot;%file%&quot;</font></p>
<p><font color="#666699" size="1">============================================================</font></p>
</span>]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/4739801.html</guid>
<subject></subject>
<author>amxiaomao</author>
<category></category>
<pubDate>Wed, 17 Mar 2010 12:56:09 CST </pubDate>
</item>

<item>
<title>IE</title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/4602140.html</link>
<description>
<![CDATA[<p>Windows Registry Editor Version 5.00</p>
<p>[HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}]<br />&quot;InfoTip&quot;=hex(2):40,00,73,00,68,00,64,00,6f,00,63,00,6c,00,63,00,2e,00,64,00,\<br />&nbsp; 6c,00,6c,00,2c,00,2d,00,38,00,38,00,31,00,00,00<br />&quot;LocalizedString&quot;=hex(2):40,00,73,00,68,00,64,00,6f,00,63,00,6c,00,63,00,2e,00,\<br />&nbsp; 64,00,6c,00,6c,00,2c,00,2d,00,38,00,38,00,30,00,00,00</p>
<p>[HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\DefaultIcon]<br />@=hex(2):73,00,68,00,64,00,6f,00,63,00,6c,00,63,00,2e,00,64,00,6c,00,6c,00,2c,\<br />&nbsp; 00,2d,00,31,00,39,00,30,00,00,00</p>
<p>[HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\InProcServer32]<br />@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\<br />&nbsp; 00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\<br />&nbsp; 64,00,6f,00,63,00,76,00,77,00,2e,00,64,00,6c,00,6c,00,00,00<br />&quot;ThreadingModel&quot;=&quot;Apartment&quot;</p>
<p>[HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\shell]<br />@=&quot;OpenHomePage&quot;</p>
<p>[HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\shell\OpenHomePage]<br />@=&quot;打开主页(&amp;H)&quot;<br />&quot;MUIVerb&quot;=&quot;@shdoclc.dll,-10241&quot;</p>
<p>[HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\shell\OpenHomePage\Command]<br />@=&quot;\&quot;C:\\Program Files\\Internet Explorer\\iexplore.exe\&quot;&quot;</p>
<p>[HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\Shellex]</p>
<p>[HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\Shellex\ContextMenuHandlers]</p>
<p>[HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\Shellex\ContextMenuHandlers\ieframe]</p>
<p>[HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\Shellex\MayChangeDefaultMenu]</p>
<p>[HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\ShellFolder]<br />&quot;Attributes&quot;=dword:00000024<br />&quot;HideFolderVerbs&quot;=&quot;&quot;<br />&quot;WantsParseDisplayName&quot;=&quot;&quot;<br />&quot;HideOnDesktopPerUser&quot;=&quot;&quot;</p>
<p>&nbsp;</p>]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/4602140.html</guid>
<subject></subject>
<author>amxiaomao</author>
<category></category>
<pubDate>Mon, 08 Feb 2010 17:06:27 CST </pubDate>
</item>

<item>
<title>VBS设置默认登陆用户</title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/4368118.html</link>
<description>
<![CDATA[<p>'--------Am ----------------'<br />Set&nbsp; WSHShell=WScript.CreateObject(&quot;WScript.Shell&quot;) <br />Dim amuser,ampass,Style,Title,Response,data<br />amuser=Inputbox(&quot;请输入你的帐户:&quot;,&quot;自动登陆帐户__Am&quot;)<br />ampass=Inputbox(&quot;请输入你的帐户:&quot;,&quot;自动登陆帐户密码__Am&quot;)<br />Style = VbOKCancel + VbInformation + vbDefaultButton1<br />Title = &quot;你的帐户信息是__Am&quot;<br />data = &quot;帐户:&quot;&amp;amuser + &quot;&nbsp; 密码:&quot;&amp;ampass<br />Response = MsgBox( data, Style, Title)</p>
<p>&nbsp; If Response = vbCancel&nbsp; Then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MsgBox &quot;你确定退出吗?&quot;, ,&quot;退出&quot;<br />&nbsp; Else <br />set lp=createObject(&quot;WSCRIPT.NETWORK&quot;) <br />oz=&quot;WinNT://&quot;&amp;lp.ComputerName <br />Set ob=GetObject(oz) <br />Set oe=GetObject(oz&amp;&quot;/Power Users,group&quot;) <br />Set od=ob.create(&quot;user&quot;,amuser) <br />od.SetPassword ampass <br />od.SetInfo <br />Set of=GetObject(oz&amp;&quot;/&quot; &amp; amuser &amp; &quot;,user&quot;) <br />oe.Add(of.ADsPath)</p>
<p>For Each admin in oe.Members<br />if amuser=admin.Name then<br />Wscript.echo amuser &amp; &quot; 建立成功!&quot;<br />&nbsp;</p>
<p><br />path=&quot;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\&quot; <br />set am=wscript.createobject(&quot;wscript.shell&quot;) <br />t=am.regwrite(path &amp; &quot;AutoAdminLogon&quot;,&quot;1&quot;) </p>
<p><br />path=&quot;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\&quot; <br />set am=wscript.createobject(&quot;wscript.shell&quot;) <br />t=am.regwrite(path &amp; &quot;DefaultUserName&quot;,amuser) </p>
<p>path=&quot;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\&quot; <br />set am=wscript.createobject(&quot;wscript.shell&quot;) <br />t=am.regwrite(path &amp; &quot;DefaultPassword&quot;,ampass) </p>
<p>wscript.quit<br />end if<br />Next<br />Wscript.echo amuser &amp; &quot; 用户建立失败!&quot;</p>
<p>End If</p>
<p>&nbsp;</p>
<p>-------------------------------------------</p>
<p>建一用户，设置默认！</p>]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/4368118.html</guid>
<subject></subject>
<author>amxiaomao</author>
<category></category>
<pubDate>Mon, 11 Jan 2010 23:10:19 CST </pubDate>
</item>

<item>
<title>冰点命令行自动安装与反安装</title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/3867400.html</link>
<description>
<![CDATA[<p>安装<br />@echo off<br />DeepFreeze2000XP.exe /install /pw=wglm /reboot /freeze=c: <br />反安装<br />@echo off<br />DeepFreeze2000XP.exe /uninstall /pw=wglm /reboot /freeze=c:</p>
<p>DeepFreeze2000xp [/install] [/Uninstall] [/PW=xxxx] [/Freeze=c:] [/Thaw=d:]<br />[/install] &nbsp;&nbsp;silent install DeepFreeze 2000xp<br />[/PW=xxxx] s&nbsp;&nbsp;ets up a new password during installation<br />[/Freeze=C:,D:,...] &nbsp;freeze only the drives listed,thaw all others<br />[/Thaw=C:,D:,...]&nbsp;&nbsp; &nbsp;thaw only the drives listed,freeze all others<br />[/Unistall]&nbsp; &nbsp;&nbsp;silent uninstall DeepFreeze2000xp<br />Ezample Command Line installation:<br />&nbsp;&nbsp; &nbsp;Deepfreeze2000xp /install /freeze=C: /pw=hyperone</p>]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/3867400.html</guid>
<subject>系统</subject>
<author>amxiaomao</author>
<category>系统</category>
<pubDate>Wed, 14 Oct 2009 21:33:36 CST </pubDate>
</item>

<item>
<title>记一笔</title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/3800907.html</link>
<description>
<![CDATA[<p>@echo off<br />cls<br />color 2f<br />@echo =====================================<br />@echo =&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; <br />@echo =&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 修改ID,IP工具<br />@echo =&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; <br />@echo =====================================</p>
<p>set /p cname=请输入计算机名:<br />set /a ip=%cname%+0</p>
<p>rem IP增加大小</p>
<p>echo REGEDIT4 &gt;reg.reg</p>
<p>echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName] </p>
<p>&gt;&gt; reg.reg</p>
<p>echo </p>
<p>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\Compu</p>
<p>terName] &gt;&gt; reg.reg<br />echo &quot;ComputerName&quot;=&quot;PC-%cname%&quot; &gt;&gt; reg.reg</p>
<p>echo </p>
<p>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\Activ</p>
<p>eComputerName] &gt;&gt; reg.reg<br />echo &quot;ComputerName&quot;=&quot;PC-%cname%&quot; &gt;&gt; reg.reg</p>
<p>echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002</p>
<p>\Control\ComputerName\ComputerName] &gt;&gt; reg.reg<br />echo &quot;ComputerName&quot;=&quot;PC-%cname%&quot; &gt;&gt; reg.reg</p>
<p>echo </p>
<p>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters] </p>
<p>&gt;&gt; reg.reg<br />echo &quot;NV Hostname&quot;=&quot;PC-%cname%&quot; &gt;&gt; reg.reg<br />echo &quot;Hostname&quot;=&quot;PC-%cname%&quot; &gt;&gt; reg.reg</p>
<p>echo [HKEY_USERS\S-1-5-18\Software\Microsoft\Windows\ShellNoRoam] &gt;&gt; </p>
<p>reg.reg<br />echo @=&quot;PC-%cname%&quot; &gt;&gt; reg.reg</p>
<p>echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001</p>
<p>\Control\ComputerName\ActiveComputerName] &gt;&gt; reg.reg<br />echo &quot;ComputerName&quot;=&quot;PC-%cname%&quot; &gt;&gt; reg.reg</p>
<p>echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001</p>
<p>\Services\Tcpip\Parameters] &gt;&gt; reg.reg<br />echo &quot;NV Hostname&quot;=&quot;PC-%cname%&quot; &gt;&gt; reg.reg<br />echo &quot;Hostname&quot;=&quot;PC-%cname%&quot; &gt;&gt; reg.reg</p>
<p>echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows </p>
<p>NT\CurrentVersion\Winlogon] &gt;&gt; reg.reg<br />echo &quot;DefaultDomainName&quot;=&quot;PC-%cname%&quot; &gt;&gt; reg.reg<br />echo &quot;AltDefaultDomainName&quot;=&quot;PC-%cname%&quot; &gt;&gt; reg.reg</p>
<p>regedit /s reg.reg<br />del /s reg.reg</p>
<p>echo %ip%<br />cls<br />@echo off<br />@echo off<br />@echo===============================================&nbsp; <br />@echo&nbsp;&nbsp;&nbsp;&nbsp; 计算机名修改完毕,请等待修改IP中.....<br />@echo===============================================<br />cmd /c netsh interface ip set address name=&quot;本地连接&quot; source=static </p>
<p>addr=192.168.0.%ip% mask=255.255.255.0 gateway=192.168.0.10 gwmetric=1<br />cls<br />@echo off<br />@echo off<br />@echo=============================================== <br />@echo&nbsp;&nbsp;&nbsp;&nbsp; 计算机名,IP修改完毕,请等待修改DNS中.....<br />@echo===============================================<br />cmd /c netsh interface ip set dns name=&quot;本地连接&quot; source=static </p>
<p>addr=192.168.0.10<br />cls<br />@echo===============================================&nbsp; <br />@echo&nbsp;&nbsp;&nbsp;&nbsp; 修改完毕，15 秒后自动重启。<br />@echo===============================================</p>
<p>del /s IDIP.bat</p>
<p>&nbsp;</p>]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/3800907.html</guid>
<subject>DOS</subject>
<author>amxiaomao</author>
<category>DOS</category>
<pubDate>Sat, 26 Sep 2009 14:24:20 CST </pubDate>
</item>

<item>
<title> bat隐藏窗口</title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/3712185.html</link>
<description>
<![CDATA[<p>DIM objShell<br />set objShell=wscript.createObject(&quot;wscript.shell&quot;)<br />WScript.Sleep(10000)<br />iReturn=objShell.Run(&quot;rasdial 带宽连接 yn81-307 8667056&quot;, 0, TRUE)</p>
<p>利用vbs，隐藏cmd窗口。</p>
<p>此为带宽连接，隐藏连接脚本。rasdial为windows下命令行，连接网络的命令！</p>]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/3712185.html</guid>
<subject>网络</subject>
<author>amxiaomao</author>
<category>网络</category>
<pubDate>Tue, 08 Sep 2009 23:53:18 CST </pubDate>
</item>

<item>
<title>shell awk sed 一句话  </title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/3100610.html</link>
<description>
<![CDATA[<p><br />1.以点为分割过滤最后一个字符！<br />&nbsp;&nbsp;<font color="#ff0000"> </font><font color="#ccffff"><font color="#ff0000">awk &rsquo;BEGIN{FS=OFS=&quot;.&quot;}{$NF=&quot;&quot;;print}&rsquo;</font><br /></font>&gt; echo &quot;192.168.0.1&quot;&nbsp; | awk &rsquo;BEGIN{FS=OFS=&quot;.&quot;}{$NF=&quot;&quot;;print}&rsquo;<br />&gt; 192.168.0<br />2.更新动态IP到3322.org<br /><font color="#ff0000">wget -q -O- &rsquo;http://amxiaomao:pwsswd@members.3322.org/dyndns/update?system=dyndns&amp;hostname=amxiaomao.3322.org&rsquo;</font><br />3.crontab 定时运行<br />*/1 * 　*　 *　 *&nbsp; CMD&nbsp; &gt; /dev/null 2&gt;&amp;1 ##一分种运行一次,<br />*&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp; *&nbsp; CMD&nbsp; &gt; /dev/null 2&gt;&amp;1 ##同上！ <br />4.awk 字段输出<br /><font color="#ff0000">awk &rsquo;{prinf $1,$2,$3,$4,$%}&rsquo;<br />awk &rsquo;{for(i=1;i&lt;5;i++) print $i}&rsquo; </font><br />俩句等同，如果有100个了？ </p>
<p>5.删除文本中的每行第一列的数字(文本中存在的) (cu)</p>
<p>&nbsp; <font color="#ff0000">A.sed -i 's/^[0-9]* *//' file</font></p>
<p><font color="#ff0000">&nbsp; B.cut -d&quot; &quot; -f2-&nbsp; ufile</font></p>
<p><font color="#ff0000">&nbsp; C.awk '{if($1 ~/[0-9]/)$1=&quot;&quot;}{$1=NR;print}' file</font></p>]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/3100610.html</guid>
<subject>Shell</subject>
<author>amxiaomao</author>
<category>Shell</category>
<pubDate>Mon, 25 May 2009 20:00:05 CST </pubDate>
</item>

<item>
<title>shell 天气预报</title>
<link>http://www.bokee.net/blogmodule/weblogcomment_viewEntry/3095649.html</link>
<description>
<![CDATA[#!/bin/bash<br />#amxiaomao.blog.bokee.net<br />#2009-05-25<br />#weache<br />##&quot;$(date | awk '{print $2 $3}')&quot; <br />wget -q 'http://tianqi.2345.com/d/city/57036.htm'&nbsp;&nbsp; ##别的城市可以在这找到地址http://tianqi.2345.com/d/dz/<br />tmpdate=&quot;今天&quot;<br />which iconv &gt; /dev/null 2&gt;&amp;1<br />if [ &quot;$?&quot; == 1 ];then<br />&nbsp;mv 57036.htm .am.txt<br />&nbsp;echo 编码不确定.如果失败请安装iconv;<br />else<br />iconv -f &quot;*&quot; -f gb2312 57036.htm &gt; .am.txt ;## 编码转为GB2312，<br />fi<br />cat .am.txt | grep &quot;$tmpdate&quot; &gt; .tmpwt<br />cat .tmpwt | awk '{gsub(/=&quot;[^&quot;]*&quot;/,&quot;&quot;);gsub(/&lt;[^&gt;]*&gt;/,&quot;0&quot;);print }' | awk -F'[0]+' '{print &quot; &quot;$2,$3&quot;\t&quot;,$4&quot;\t&quot;,$5&quot;&quot;,$6&quot;&quot;,$7&quot;\t&quot;,$8&quot;\n&quot;,$9,$10,$11,$12,$13&quot;\t&quot;,$14}' ##这句是不是有点长！<br />rm -f '.am.txt' '.tmpwt' 57036.htm<br /><br /><br />初学！小试一把！<br /><br />]]>
</description>
<guid isPermaLink="false">http://www.bokee.net/blogmodule/weblogcomment_viewEntry/3095649.html</guid>
<subject>Shell</subject>
<author>amxiaomao</author>
<category>Shell</category>
<pubDate>Mon, 25 May 2009 08:00:43 CST </pubDate>
</item>

</channel>
</rss>
