100apps/charles-hacking

Update for 4.2.6

Closed this issue ยท 9 comments

HeIp commented

charles=/Applications/Charles.app/Contents/Java/charles.jar
dir=charleshack

mkdir $dir
cd $dir
cat >> GPSz.java <<EOF
package com.xk72.charles;
public final class GPSz {
public static boolean SWIF() { return true; }
public static boolean Dgmx() { return true; }
public static String Wmmw() { return "Administrator"; }
public static String Ifzu() { return "Administrator"; }
public static String Dgmx(String name, String key) { return null; }
}
EOF
javac -encoding UTF-8 GPSz.java -d .&& jar -uvf $charles com/xk72/charles/GPSz.class
cd .. && rm -rf $dir

not working for me

HeIp commented

@playniuniu I use that aswell but its better to understand how the jar works incase that site & repo every become non responsive, @tsauzeau master cracker please help

you can use jadx to decompile the new charles.jar and check the differnece with the old one

I check it, and see it replace the Dgmx() and Wmmw() function, but not replace other function

Hope it will help for you

This code works:

package com.xk72.charles;
public final class GPSz {
	public static boolean Dgmx() { return true; }
	public static boolean HFjb() { return true; }
	public static String AKCM() { return "Administrator"; }
	public static String Wmmw() { return "Administrator"; }
	public static String Dgmx(String name, String key) { return null; }
}
HeIp commented

@peter23 I get stuck on loading preferences with that one

@Help it works without any problem on my side.

HeIp commented

Can you supply the full file ? @peter23 and what OS ?

@peter23 On OSX 10.13.5, Java 10.0.1 version, It hangs on loading preferences, same problem as @HeIp

HeIp commented

Fixed & Found a Solution ๐Ÿ‘
Check out on my Repo ๐Ÿฅ‡
https://github.com/HeIp/CharlesHack