Aptana 頁面調試開發工具(內附破解方法)

來源:互聯網
上載者:User
1.
Aptana
是一個非常強大,開源,專註於JavaScript的Ajax開發IDE。它的特性包括:
*JavaScript,JavaScript函數,HTML,CSS語言的Code Assist功能。
*Outliner(大綱):顯示JavaScript,HTML和CSS的代碼結構。
*支援JavaScript,HTML,CSS代碼提示,包括JavaScript 自定函數
*代碼語法錯誤提示。
*支援Aptana UI自訂和擴充。
*支援跨平台。
*支援FTP/SFTP
*調試JavaScript
*支援流行AJAX架構的Code Assist功能:AFLAX,Dojo,JQuery,MochiKit,Prototype,Rico,script.aculo.us,Yahoo UI,Ext。
*Adobe AIR與iPhone開發工具
其首頁上還提供如何使用該開發工具的視頻。

找到com.aptana.ide.core_1.0.1.004323.jar檔案
編譯下面的檔案並替換找上麵包中的對應檔案(在com.aptana.ide.core.licensing目錄下)
修改位置見後面注釋部分說明!

package com.aptana.ide.core.licensing;

import java.math.BigInteger;
import java.util.Calendar;
import java.util.TimeZone;
import java.util.zip.CRC32;

public final class ClientKey {
    private static class Decrypt {

        private BigInteger modulus;
        private BigInteger exponent;

        public String decrypt(String encrypted) {
            long crc32Value;
            byte bytes[];
            CRC32 crc32;
            if (encrypted == null) {
                encrypted = "";
            } else {
                encrypted = ClientKey.trimEncryptedLicense(encrypted);
            }
            BigInteger big = new BigInteger(encrypted);
            BigInteger decrypted = big.modPow(exponent, modulus);
            crc32Value = (long) decrypted.intValue() & 0xffffffffL;
            decrypted = decrypted.shiftRight(32);
            bytes = decrypted.toByteArray();
            crc32 = new CRC32();
            crc32.update(bytes);
            if (crc32Value == crc32.getValue()) {
                return new String(bytes);
            }
            return null;
        }

        Decrypt(String exponent, String modulus) {
            this.modulus = new BigInteger(modulus);
            this.exponent = new BigInteger(exponent);
        }
    }

    public static final String BEGIN_LICENSE_MARKER = "--begin-aptana-license--";
    public static final String END_LICENSE_MARKER = "--end-aptana-license--";
    private static final TimeZone GMT = TimeZone.getTimeZone("GMT");
    private static final String EMAILS_NON_MATCHING = "EMAILS_NON_MATCHING";
    private static final int PRO = 0;
    private static final int TRIAL = 1;
    private String email;
    private long expiration;
    private int type;

    private ClientKey(int type, String email, long expiration) {
        this.type = type;
        this.email = email;
        this.expiration = expiration;
    }

    public static ClientKey decrypt(String encrypted, String email) {
   
    String modulus =
"115801190261221214754334668902722425936509505416457970789287297728816388753627896293249501578830570324705253515546383166989625001335561947096747210280001245977114030627247212292377290543869343996595819188362915644707269064020812435233012510929338706599216007185654748959001143012936618501934698642942289379979";
        String exponent = "65537";
        if (encrypted != null) {
            encrypted = encrypted.trim();
        }
        Decrypt decrypter = new Decrypt(exponent, modulus);
        return decrypt(decrypter, encrypted, email);
    }

    private static ClientKey decrypt(Decrypt decrypter, String encrypted,
            String email) {
        String value = decrypter.decrypt(encrypted);
        if (value == null) {
            return new ClientKey(1, null, 0L);
        }
        String values[] = value.split(";");
        int type = 1;
        String genedEmail = null;
        long expiration = 0L;
        if (values.length == 3) {
            if ("p".equals(values[0].toLowerCase())) {
                type = 0;
            }
            genedEmail = values[1];
            if (genedEmail != null) {
                if (!genedEmail.equalsIgnoreCase(email)) {
                    genedEmail = "EMAILS_NON_MATCHING";
                }
            } else {
                genedEmail = null;
            }
            try {
                expiration = Long.parseLong(values[2]);
            } catch (Exception _ex) {
                expiration = 0L;
            }
        }
        return new ClientKey(type, genedEmail, expiration);
    }

    public boolean isCloseToExpiring() {
        return false;
    }

    public boolean isValid() {
        return true;
    }

    public boolean isCloseToMatching() {
        return false;
    }

    public boolean isExpired() {
        return false;
    }

    public String getEmail() {
       //把此處的Email修改為你自己的Email地址
        return "heimazhao@gmail.com";
    }

    public Calendar getExpiration() {
        Calendar expirationCal = Calendar.getInstance(GMT);
          //把此處的時間修改為授權到期時間
        expirationCal.set(2010, 9, 9);

        return expirationCal;
    }

    public boolean isTrial() {
        return false;
    }

    public boolean isPro() {
        return true;
    }

    public boolean shouldProPluginsRun() {
        return true;
    }

    public static String trimEncryptedLicense(String encrypted) {
     String newEncrypted = encrypted;
     newEncrypted = newEncrypted.trim();
    newEncrypted = newEncrypted.replaceAll("--begin-aptana-license--", "");
     newEncrypted = newEncrypted.replaceAll("--end-aptana-license--", "");
     newEncrypted = newEncrypted.replaceAll("/s+", "");
    return newEncrypted;
}
}

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.