首页 > 代码库 > 破解 charles

破解 charles

charles=/Applications/Charles.app/Contents/Java/charles.jar
dir=charleshack
mkdir $dir
cd $dir
cat >> License.java <<EOF
package com.xk72.charles;
public final class License {
    public static boolean a() { return true; }
    public static String b() { return "http://www.gfzj.us"; }
    public static String a(String name, String key) { return null; }
}
EOF
javac -encoding UTF-8 License.java -d .&& jar -uvf $charles com/xk72/charles/License.class
cd .. && rm -rf $dir

破解 charles