Charles 4.x crack

Step 1: Create a licence file

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.nathanmap.com"; }
public static String a(String name, String key) { return null; }
}
EOF

Step 2: Inject license

javac -encoding UTF-8 License.java -d .
sudo jar -uvf $charleslib/charles.jar com/xk72/charles/License.class