`
mefly
  • 浏览: 149764 次
  • 性别: Icon_minigender_1
  • 来自: 天津
社区版块
存档分类
最新评论

myeclipse 万能破解java代码

阅读更多
import java.io.BufferedReader; 
import java.io.IOException; 
import java.io.InputStreamReader; 

public class MyEclipseGen { 
private static final String LL = "Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright Act of 1998 (http://www.loc.gov/copyright/legislation/dmca.pdf). Under section 1204 of the DMCA, penalties range up to a $500,000 fine or up to five years imprisonment for a first offense. Think about it; pay for a license, avoid prosecution, and feel better about yourself."; 

public String getSerial(String userId, String licenseNum) { 
  java.util.Calendar cal = java.util.Calendar.getInstance(); 
  cal.add(1, 3); 
  cal.add(6, -1); 
  java.text.NumberFormat nf = new java.text.DecimalFormat("000"); 
  licenseNum = nf.format(Integer.valueOf(licenseNum)); 
  String verTime = new StringBuilder("-").append( 
    new java.text.SimpleDateFormat("yyMMdd").format(cal.getTime())) 
    .append("0").toString(); 
  String type = "YE3MP-"; 
  String need = new StringBuilder(userId.substring(0, 1)).append(type) 
    .append("300").append(licenseNum).append(verTime).toString(); 
  String dx = new StringBuilder(need).append(LL).append(userId) 
    .toString(); 
  int suf = this.decode(dx); 
  String code = new StringBuilder(need).append(String.valueOf(suf)) 
    .toString(); 
  return this.change(code); 
} 

private int decode(String s) { 
  int i; 
  char[] ac; 
  int j; 
  int k; 
  i = 0; 
  ac = s.toCharArray(); 
  j = 0; 
  k = ac.length; 
  while (j < k) { 
    i = (31 * i) + ac[j]; 
    j++; 
  } 
  return Math.abs(i); 
} 

private String change(String s) { 
  byte[] abyte0; 
  char[] ac; 
  int i; 
  int k; 
  int j; 
  abyte0 = s.getBytes(); 
  ac = new char[s.length()]; 
  i = 0; 
  k = abyte0.length; 
  while (i < k) { 
    j = abyte0[i]; 
    if ((j >= 48) && (j <= 57)) { 
    j = (((j - 48) + 5) % 10) + 48; 
    } else if ((j >= 65) && (j <= 90)) { 
    j = (((j - 65) + 13) % 26) + 65; 
    } else if ((j >= 97) && (j <= 122)) { 
    j = (((j - 97) + 13) % 26) + 97; 
    } 
    ac[i] = (char) j; 
    i++; 
  } 
  return String.valueOf(ac); 
} 

public MyEclipseGen() { 
  super(); 
} 

public static void main(String[] args) { 
  try { 
    System.out.println("please input register name:"); 
    BufferedReader reader = new BufferedReader(new InputStreamReader( 
      System.in)); 
    String userId = null; 
    userId = reader.readLine(); 
    MyEclipseGen myeclipsegen = new MyEclipseGen(); 
    String res = myeclipsegen.getSerial(userId, "5"); 
    System.out.println("Serial:" + res); 
    reader.readLine(); 
  } catch (IOException ex) { 
  } 
} 
}

 

分享到:
评论

相关推荐

    MyEclipse万能注册

    标题与描述解析:“MyEclipse万能注册”这一标题揭示了文章的主题是关于MyEclipse软件的注册方法,特别强调这是一种适用于所有版本的通用注册方式。描述部分则明确指出,该注册方法仅针对MyEclipse,而不适用于同...

    万能的myeclipse激活代码

    一直在用的大神写的myeclipse激活的一个java代码,可以激活任意版本的myeclipse。使用方法,在myeclipse中新建一个java工程,把这个代码复制到package中,然后点击运行即可。

    MyEclipse万能注册码程序

    本文将详细介绍一种名为“MyEclipse万能注册码程序”的方法,通过编写特定的Java程序来自动生成注册所需的序列号,以实现对MyEclipse软件的激活。 #### 二、准备工作 在开始之前,请确保已经安装了Java环境,并...

    Myeclipse8.5jad插件

    《MyEclipse 8.5与JAD插件详解》 在软件开发的世界里,集成开发环境(IDE)是程序员的得力助手,而MyEclipse...通过了解和掌握这个组合,我们能够更好地利用已有资源,提升开发效率,同时拓宽了对Java代码的理解深度。

    myeclipse反编译插件

    myeclipse反编译插件,可以在没有源代码的时候看class文件的源代码,附带有安装方法,在myeclipse6.0及eclipse3.3上安装成功,其它版本未测试,但应该都可以用的。 安装流程: 1.解压jad1.5.8g.zip,将jad.exe放到...

    一步步教你使用Proguard混淆Java源代码 .docx

    使用 Proguard 混淆 Java 源代码可以保护我们的代码免受反编译和逆向工程的攻击,但需要注意的是,Proguard 只是保护代码的一种方式,并不是万能的,仍需要结合其他安全措施来保护代码。 在使用 Proguard 混淆 Java...

    jrebel + myeclipse9.0 + tomcat 热部署攻略

    在Java开发过程中,提高开发效率的一个重要方法是实现应用的热部署,即修改代码后无需重启服务器即可看到更新效果。本教程将详细讲解如何在MyEclipse 9.0集成环境中,结合JRebel插件和Tomcat服务器,实现Spring项目...

    java反编译工具

    Java反编译工具是开发者和逆向工程人员用于查看Java字节码的工具,它们能够将已编译的.class文件转换回源代码形式。在Java编程领域,了解这些工具是十分重要的,因为有时我们可能需要查看已发布的库的源代码,或者在...

    FindBugs安装及配置使用说明

    - 静态分析工具并非万能,无法检测到所有类型的错误,但它们是提高代码质量的重要辅助手段。 - 可以自定义FindBugs的配置文件,以适应团队或项目的特定需求。 总的来说,FindBugs是一款强大的工具,通过集成到开发...

    ajax的responseText乱码的问题的解决方法

    在Java环境下,可以通过以下代码来设置响应的Content-Type和字符集: ```java response.setContentType("text/html"); response.setCharacterEncoding("charset"); ``` 这里的"charset"应该替换为你实际使用的字符...

Global site tag (gtag.js) - Google Analytics