📄 chap7-4.htm.primary
字号:
<br>
</span><span class="p9"><font face="宋体" color="#000000">“</font> <font face="Times New Roman" color="#000000">3</font>
<font face="宋体" color="#000000">”是从哪来的?它同序列号的第一字符</font> <font face="Times New Roman" color="#000000">9</font>
<font face="宋体" color="#000000">比较。</font> <br>
</span><span class="p9"><font face="Times New Roman" color="#000000">**__vbaVarTstNe </font>
<font face="宋体" color="#000000">意味着不同变量进行比较,看其是否相等。</font> <br>
</span><span class="p9"><font face="宋体" color="#000000">因此我们假设第一字符是</font>
<font face="Times New Roman" color="#000000">3.</font></span> <br>
<span class="p9"><font face="宋体" color="#000000">然后重输入</font> <font face="Times New Roman" color="#000000">"399999999"</font>
<font face="宋体" color="#000000">重复上面的步骤,你将会看到更多的内容。</font> <br>
</span><span class="p9"><font face="宋体" color="#000000">这次在第一个</font>
<font face="Times New Roman" color="#000000">__VbaVarTstNe</font> <font face="宋体" color="#000000">后面,将看到下面这行:</font>
</span> <br>
<span class="p9"><font face="Times New Roman" color="#000000">Mid$(String:"399999999", long:2, VARIANT:Integer:1)</font>
<br>
</span><span class="p9"><font face="Times New Roman" color="#000000">**</font>
<font face="宋体" color="#000000">意味着取出第二个字符</font> <font face="Times New Roman" color="#000000"> "9"</font>
<br>
</span><span class="p9"><font face="宋体" color="#000000">往下在其附近寻找:</font>
<br>
</span><span class="p9"><font face="Times New Roman" color="#000000">__vbaVarTstNe(VARIANT:Const Double:9, VARIANT:String:"0")...</font>
<br>
</span><span class="p9"><font face="宋体" color="#000000">神秘数字</font>
<font face="Times New Roman" color="#000000">"0" </font>
<font face="宋体" color="#000000">出现,这就是第二个字符。</font> <br>
</span><span class="p9"><font face="宋体" color="#000000">因此重复以上操作输入</font>
<font face="Times New Roman" color="#000000">"309999999"</font>
<font face="宋体" color="#000000">,一直将</font> <font face="Times New Roman" color="#000000">9</font>
<font face="宋体" color="#000000">个数字全找出。</font> <br>
</span><span class="p9"><font face="宋体" color="#000000">最后序列号是:</font>
<font face="Times New Roman" color="#000000">301674501</font> </span></p>
<p> </p>
</td>
</tr>
</table>
</div>
<div id="KB7Parent" class="parent"> <b><span class="p9">习题七</span></b><span class="p9"><a href="Exercise/chap7-07.zip">chap7-07</a>
Code保护;难度:易</span>
<p><a href="#" onClick="expandIt('KB7'); return false" class="p9"><b>习题七 </b>我要看答案</a>
</p>
</div>
<div id="KB7Child" class="child">
<table width="100%" align="center" cellspacing="0">
<tr bgcolor="#EFEFEF">
<td height="28"><span class="p9"><font face="宋体" color="#000000">类型</font>
<font face="Times New Roman" color="#000000">: Visual Basic 5</font>
<br>
<font face="宋体" color="#000000">工具</font> <font face="Times New Roman" color="#000000">:SmartCheck</font>
<br>
<font face="宋体" color="#000000">在</font> <font face="Times New Roman" color="#000000">SmartCheck</font>
<font face="宋体" color="#000000">下运行该程序,在你输入字符于注册框前,看看</font> <font face="Times New Roman" color="#000000">SmartCheck</font>
<font face="宋体" color="#000000">主窗口,会发现</font> <font face="Times New Roman" color="#000000"> Crackmefrm_Load</font>
<font face="宋体" color="#000000">,我们应有随时观看</font> <font face="Times New Roman" color="#000000">SmartCheck</font>
<font face="宋体" color="#000000">的习惯。</font><br>
<font face="宋体" color="#000000">展开</font> <font face="Times New Roman" color="#000000">Crackmefrm_Load</font>
<font face="宋体" color="#000000">:</font> <font face="Times New Roman" color="#000000">Double (3.15751e+008) -> Long (315751288)</font>
<br>
<font face="Times New Roman" color="#000000">Ok...</font> <font face="宋体" color="#000000">这里较特殊,我们很少在输入序列号前看到数字,我们先记下。</font>
<br>
<font face="宋体" color="#000000">键入</font> <font face="Times New Roman" color="#000000">"123456789"</font>
<font face="宋体" color="#000000">点击</font> <font face="Times New Roman" color="#000000">"Check".</font>
<br>
<font face="宋体" color="#000000">然后展开</font> <font face="Times New Roman" color="#000000">Checkcmd_Click</font>
<br>
<font face="Times New Roman" color="#000000">String("123456789")-> Double(1.23457e+008)</font>
<br>
<font face="Times New Roman" color="#000000">Double(-1.92294e+008)->Double(-1.92294e+008)</font>
<br>
<font face="Times New Roman" color="#000000">Ok.</font> <font face="宋体" color="#000000">数字</font>
<font face="Times New Roman" color="#000000"> -1.92294e+008</font>
<font face="宋体" color="#000000">从哪里来</font> <font face="Times New Roman" color="#000000">??? </font>
<br>
<font face="Times New Roman" color="#000000">(</font> <font face="宋体" color="#000000">这时,开动我们的第六感觉,想想</font>
<font face="Times New Roman" color="#000000">????)</font> <br>
<font face="宋体" color="#000000">用</font> <font face="Times New Roman" color="#000000">"123456789" </font>
<font face="宋体" color="#000000">减</font> <font face="Times New Roman" color="#000000"> 315751288 </font>
<font face="宋体" color="#000000">,将得到:</font> <font face="Times New Roman" color="#000000"> -19229449</font>
<font face="宋体" color="#000000">,然后转换成双精度实数</font> <font face="Times New Roman" color="#000000">-1.92294e+008</font>
<br>
<font face="宋体" color="#000000">你们试一下键入</font> <font face="Times New Roman" color="#000000">315751288</font>
<font face="宋体" color="#000000">。</font> <br>
<font face="宋体" color="#000000">哈</font> <font face="Times New Roman" color="#000000">..</font>
<font face="宋体" color="#000000">成功,我总感觉</font> <font face="Times New Roman" color="#000000">crack</font>
<font face="宋体" color="#000000">有时想搞侦破一样,去猜,去试,再去验证</font> <font face="Times New Roman" color="#000000">.......</font>
<br>
<font face="宋体" color="#000000">这时你再次展开</font> <font face="Times New Roman" color="#000000">Checkcmd_Click</font>
<font face="宋体" color="#000000">,会看到:</font> <br>
<font face="Times New Roman" color="#000000">String("315751288")-> Double(3.15751e+008)</font>
</span></td>
</tr>
</table>
</div>
<div id="KB8Parent" class="parent"> <b><span class="p9">习题八</span></b><span class="p9"><a href="Exercise/chap7-08.zip">chap7-08</a>
Name/Code;难度:易</span>
<p><a href="#" onClick="expandIt('KB8'); return false" class="p9"><b>习题八</b>
我要看答案 </a> </p>
</div>
<div id="KB8Child" class="child">
<table width="100%" align="center" cellspacing="0">
<tr bgcolor="#EFEFEF">
<td height="28">
<p> <font face="宋体" color="#000000"><span class="p9">工具:</span></font>
<span class="p9"><font face="Times New Roman" color="#000000">SmartCheck</font>
<br>
<font face="宋体" color="#000000">用</font> <font face="Times New Roman" color="#000000">SmartCheck</font>
<font face="宋体" color="#000000">装载该程序,迅速输入姓名和序列号,最好快点,然后关闭程序(可按</font>
<font face="Times New Roman" color="#000000">SmartCheck</font> <font face="宋体" color="#000000">绿按钮)。现在你会发现许多</font>
<font face="Times New Roman" color="#000000">"Timer1_Timer"</font>
<font face="宋体" color="#000000">,不要管它,在</font> <font face="Times New Roman" color="#000000">"Show errors and specific Events"</font>
<font face="宋体" color="#000000">模式下,查找特殊的地方。</font> <br>
<font face="宋体" color="#000000">你会发现几个</font> <font face="Times New Roman" color="#000000">"PWSerialTxt_Change". </font>
<font face="宋体" color="#000000">点击</font> <font face="Times New Roman" color="#000000">"+",</font>
<font face="宋体" color="#000000">去看到:</font> <br>
<font face="Times New Roman" color="#000000">PWSerialTxt_Change</font>
<br>
<font face="Times New Roman" color="#000000">PWNameTxt.Text </font>
<font face="宋体" color="#000000">得到姓名的第一字符</font> <br>
<font face="Times New Roman" color="#000000">PWNameTxt.Text</font> <br>
<font face="Times New Roman" color="#000000">PWNameTxt.Text</font> <br>
<font face="Times New Roman" color="#000000">Left(VARIANT:String"Volatili...", long:1)</font>
<br>
<font face="Times New Roman" color="#000000">Right(VARIANT:String:"V", long1)</font>
<br>
<font face="Times New Roman" color="#000000">Asc(String:"V") returns Integer:86</font>
<br>
<font face="Times New Roman" color="#000000">Right(VARIANT:Integer:86, long:2</font>
<br>
<font face="Times New Roman" color="#000000">PWNameTxt.Text</font> <br>
<font face="Times New Roman" color="#000000">Left(VARIANT:String"Volatili...", long:2)</font>
<br>
<font face="Times New Roman" color="#000000">Right(VARIANT:String:"Vo", long:1)</font>
<br>
<font face="Times New Roman" color="#000000">Asc(String:"o")returns Integer:111</font>
<br>
<font face="Times New Roman" color="#000000">Right(VARIANT:Integer:111, long:2)</font>
<br>
<font face="Times New Roman" color="#000000">*** 切断部分***</font>
<br>
<font face="Times New Roman" color="#000000">Left(VARIANT:ByRef String:"21160508...", long:10) ....</font>
<font face="宋体" color="#000000">这里正确的序列号</font> <br>
<font face="宋体" color="#000000">大家咸兴趣可仔细分析这段算法:姓名换算成序列号。</font> </span></p>
</td>
</tr>
</table>
</div>
<div id="KB9Parent" class="parent"> <a href="#" onClick="expandIt('KB9'); return false">
</a></div>
<script language='JavaScript'>
if (NS4) {
firstEl = "KB1Parent";
firstInd = getIndex(firstEl);
arrange();
}
</script>
<span class="p8"><span class="p9"> </span></span> <b>习题九</b> <a href="Exercise/chap7-09.zip">chap7-09</a>
需分析计算,难
<p align="left"><b><a href="Chap7-4-09.htm">习题九</a></b><a href="Chap7-4-09.htm">
答案</a></p>
<p align="left"><b>习题十</b> <a href="Exercise/chap7-10.zip">chap7-10 </a>难</p>
<p align="left"><b><a href="Chap7-4-10.htm">习题十</a></b><a href="Chap7-4-10.htm">
答案</a></p>
<p align="center"><a href="../Catalog.htm"><img src="../image/navtoc.gif" width="84" height="23" border="0"></a><a href="Chap7-3.htm"><img src="../image/Navprev.gif" width="80" height="23" border="0"></a><a href="../chap8/Chap8-1.htm"><img src="../image/navnext.gif" width="83" height="23" border="0"></a></p>
<hr width=735>
<div align="center"><span class="p9"><font size="2"><span class="p9"><font size="2"><span class="p9">Copyright
© 2000-2001 <a href="http://www.pediy.com/">KanXue Studio</a> All Rights
Reserved.</span></font></span></font></span></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -