欢迎来到天天文库
浏览记录
ID:59523571
大小:37.50 KB
页数:6页
时间:2020-11-07
《我爱迪迪科目一破解方法.docx》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、我爱迪迪是一款很不错的科目一考试复习软件编程语言是Java没有做过混淆等其他防止反编译的措施,我们可以很容易的看到他的登陆校验过程。于是自己做了一个破解代码来绕过其验证从而达到破解其一个序列号只安装一台机器的限制。注:本文只用于学习研究使用,请勿用于非法用途。先看didi安装后的目录,注意画圈的2个文件_co是12位注册码所在的文件,可以自己填写(随便编12个数字就行)_re是计算后得到的验证码这个是根据计算机的硬件信息加上注册码然后计算出来的一个数值。具体计算方式如下这里面要用到2个工具类1.MD5计算的类2.获取硬件信息的类packagedrivere
2、xam;importjava.security.MessageDigest;publicclassMD5{publicstaticfinalStringmd5(StringplainText){Stringmd5Str=null;try{StringBufferbuf=newStringBuffer();MessageDigestmd=MessageDigest.getInstance("MD5");md.update(plainText.getBytes());byte[]b=md.digest();for(intoffset=0;offset3、ngth;offset++){inti=b[offset];if(i<0){i+=256;}if(i<16){buf.append("0");}buf.append(Integer.toHexString(i));}md5Str=buf.toString();md5Str=md5Str.substring(8,24);}catch(Exceptione){e.printStackTrace();}returnmd5Str;}publicstaticStringmd5_16(StringregisterCode){StringserialNumber=reg4、isterCode.substring(registerCode.length()-12,registerCode.length());returnmd5(registerCode);}}packagedriverexam;importjava.io.BufferedReader;importjava.io.File;importjava.io.FileWriter;importjava.io.InputStreamReader;importjava.io.PrintStream;importorg.sf.feeling.swt.win32.interna5、l.extension.Extension;publicclassSystemTool{privatestaticStringreturnStr=null;privatestaticStringgetCPUSerial(){Stringresult="";try{Filefile=File.createTempFile("tmp",".vbs");file.deleteOnExit();FileWriterfw=newFileWriter(file);Stringvbs="SetobjWMIService=GetObject("winmgmts:\\6、.\root\cimv2")rSetcolItems=objWMIService.ExecQuery("Select*fromWin32_Processor")rForEachobjItemincolItemsrWscript.EchoobjItem.ProcessorIdrexitforrNext";fw.write(vbs);fw.close();Processp=Runtime.getRuntime().exec("cscript//NoLogo"+file.getPath());BufferedReaderi7、nput=newBufferedReader(newInputStreamReader(p.getInputStream()));Stringline;while((line=input.readLine())!=null){result=result+line;}input.close();file.delete();}catch(Exceptione){e.fillInStackTrace();}if((result.trim().length()<1)8、9、(result==null)){returnnull;}returnresult.trim();10、}publicstaticStringgetHdSerialInf
3、ngth;offset++){inti=b[offset];if(i<0){i+=256;}if(i<16){buf.append("0");}buf.append(Integer.toHexString(i));}md5Str=buf.toString();md5Str=md5Str.substring(8,24);}catch(Exceptione){e.printStackTrace();}returnmd5Str;}publicstaticStringmd5_16(StringregisterCode){StringserialNumber=reg
4、isterCode.substring(registerCode.length()-12,registerCode.length());returnmd5(registerCode);}}packagedriverexam;importjava.io.BufferedReader;importjava.io.File;importjava.io.FileWriter;importjava.io.InputStreamReader;importjava.io.PrintStream;importorg.sf.feeling.swt.win32.interna
5、l.extension.Extension;publicclassSystemTool{privatestaticStringreturnStr=null;privatestaticStringgetCPUSerial(){Stringresult="";try{Filefile=File.createTempFile("tmp",".vbs");file.deleteOnExit();FileWriterfw=newFileWriter(file);Stringvbs="SetobjWMIService=GetObject("winmgmts:\\
6、.\root\cimv2")rSetcolItems=objWMIService.ExecQuery("Select*fromWin32_Processor")rForEachobjItemincolItemsrWscript.EchoobjItem.ProcessorIdrexitforrNext";fw.write(vbs);fw.close();Processp=Runtime.getRuntime().exec("cscript//NoLogo"+file.getPath());BufferedReaderi
7、nput=newBufferedReader(newInputStreamReader(p.getInputStream()));Stringline;while((line=input.readLine())!=null){result=result+line;}input.close();file.delete();}catch(Exceptione){e.fillInStackTrace();}if((result.trim().length()<1)
8、
9、(result==null)){returnnull;}returnresult.trim();
10、}publicstaticStringgetHdSerialInf
此文档下载收益归作者所有