Charles激活

2024-09-01 01:28
文章标签 激活 charles

本文主要是介绍Charles激活,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

简介

Charles激活码计算

激活

Help -> Register Charles

添加 Registered Name 和计算出的 License key 点击 Register

Java


import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.Random;
import java.util.Scanner;/*** @program: ZK* @description: Charles激活* @author: zk* @create: 2024-08-31 10:41**/
public class CharlesRegister {private static final int ROUNDS = 12;private static final int ROUND_KEYS = 2 * (ROUNDS + 1);private static final Random RAND = new Random();public static void main(String[] args) {Scanner sc = new Scanner(System.in);String name = sc.nextLine().toLowerCase();RAND.setSeed(System.nanoTime());System.out.println("name: " + name + "    key: " + crack(name));}private static String crack(String text) {byte[] name = text.getBytes();int length = name.length + 4;int padded = ((-length) & (8 - 1)) + length;ByteBuffer buffer = ByteBuffer.allocate(padded);buffer.order(ByteOrder.BIG_ENDIAN);buffer.putInt(name.length);buffer.put(name);long ckName = 0x7a21c951691cd470L;long ckKey = -5408575981733630035L;CkCipher ck = new CkCipher(ckName);ByteBuffer outBuffer = ByteBuffer.allocate(padded);outBuffer.order(ByteOrder.BIG_ENDIAN);for (int i = 0; i < padded; i += 8) {long nowVar = buffer.getLong(i);long dd = ck.encrypt(nowVar);outBuffer.putLong(dd);}int n = 0;for (byte b : outBuffer.array()) {n = rotateLeft(n ^ (int) b, 3);}int prefix = n ^ 0x54882f8a;int suffix = RAND.nextInt();long in = ((long) prefix << 32) | (suffix & 0xffffffffL);if ((suffix >> 16) == 0x0401 || (suffix >> 16) == 0x0402 || (suffix >> 16) == 0x0403) {// Keep `in` as is} else {in = (in & 0xffffffff00000000L) | 0x01000000L | (suffix & 0xffffff);}long out = new CkCipher(ckKey).decrypt(in);long n2 = 0;for (int i = 56; i >= 0; i -= 8) {n2 ^= (in >> i) & 0xff;}int vv = (int) (n2 & 0xff);if (vv < 0) {vv = -vv;}return String.format("%02x%016x", vv, out);}private static class CkCipher {private int[] rk = new int[ROUND_KEYS];public CkCipher(long ckKey) {int[] ld = new int[]{(int) ckKey, (int) (ckKey >>> 32)};rk[0] = -1209970333;for (int i = 1; i < ROUND_KEYS; i++) {rk[i] = rk[i - 1] - 1640531527;}int a = 0, b = 0, i = 0, j = 0;for (int k = 0; k < 3 * ROUND_KEYS; k++) {rk[i] = rotateLeft(rk[i] + (a + b), 3);a = rk[i];ld[j] = rotateLeft(ld[j] + (a + b), a + b);b = ld[j];i = (i + 1) % ROUND_KEYS;j = (j + 1) % 2;}}public long encrypt(long in) {int a = (int) in + rk[0];int b = (int) (in >>> 32) + rk[1];for (int r = 1; r <= ROUNDS; r++) {a = rotateLeft(a ^ b, b) + rk[2 * r];b = rotateLeft(b ^ a, a) + rk[2 * r + 1];}return packLong(a, b);}public long decrypt(long in) {int a = (int) in;int b = (int) (in >>> 32);for (int i = ROUNDS; i > 0; i--) {b = rotateRight(b - rk[2 * i + 1], a) ^ a;a = rotateRight(a - rk[2 * i], b) ^ b;}b -= rk[1];a -= rk[0];return packLong(a, b);}}private static int rotateLeft(int x, int y) {return (x << (y & 31)) | (x >>> (32 - (y & 31)));}private static int rotateRight(int x, int y) {return (x >>> (y & 31)) | (x << (32 - (y & 31)));}private static long packLong(int a, int b) {return ((long) a & 0xffffffffL) | ((long) b << 32);}
}

Go


package mainimport ("bytes""encoding/binary""fmt""math/rand""time"
)const (rounds    = 12roundKeys = 2 * (rounds + 1)
)func main() {rand.Seed(time.Now().UnixNano())name := "Charles"fmt.Println("name:", name, "    key:", crack(name))
}func crack(text string) string {name := []byte(text)length := len(name) + 4padded := ((-length) & (8 - 1)) + lengthbs := make([]byte, 4)binary.BigEndian.PutUint32(bs, uint32(len(name)))buff := bytes.Buffer{}buff.Write(bs)buff.Write(name)var ckName int64 = 0x7a21c951691cd470var ckKey int64 = -5408575981733630035ck := newCkCipher(ckName)outBuff := bytes.Buffer{}for i := 0; i < padded; i += 8 {bf := buff.Bytes()[i : i+8]buf := bytes.NewBuffer(bf)var nowVar int64if err := binary.Read(buf, binary.BigEndian, &nowVar); err != nil {panic(err)}dd := ck.encrypt(nowVar)outBuff.WriteByte(byte(dd >> 56))outBuff.WriteByte(byte(dd >> 48))outBuff.WriteByte(byte(dd >> 40))outBuff.WriteByte(byte(dd >> 32))outBuff.WriteByte(byte(dd >> 24))outBuff.WriteByte(byte(dd >> 16))outBuff.WriteByte(byte(dd >> 8))outBuff.WriteByte(byte(dd))}var n int32for _, b := range outBuff.Bytes() {n = rotateLeft(n^int32(int8(b)), 0x3)}prefix:= n ^ 0x54882f8asuffix:=rand.Int31()in := int64(prefix) << 32s := int64(suffix)switch suffix >> 16 {case 0x0401:case 0x0402:case 0x0403:in |= sbreakdefault:in |= 0x01000000 | (s & 0xffffff)break}out := newCkCipher(ckKey).decrypt(in)var n2 int64for i := 56; i >= 0; i -= 8 {n2 ^= int64((uint64(in) >> i) & 0xff)}vv := int32(n2 & 0xff)if vv < 0 {vv = -vv}return fmt.Sprintf("%02x%016x", vv, uint64(out))
}type ckCipher struct {rk [roundKeys]int32
}func newCkCipher(ckKey int64) ckCipher {ck := ckCipher{}var ld [2]int32ld[0] = int32(ckKey)ld[1] = int32(uint64(ckKey) >> 32)ck.rk[0] = -1209970333for i := 1; i < roundKeys; i++ {ck.rk[i] = ck.rk[i-1] + -1640531527}var a, b int32var i, j intfor k := 0; k < 3*roundKeys; k++ {ck.rk[i] = rotateLeft(ck.rk[i]+(a+b), 3)a = ck.rk[i]ld[j] = rotateLeft(ld[j]+(a+b), a+b)b = ld[j]i = (i + 1) % roundKeysj = (j + 1) % 2}return ck
}func (ck ckCipher) encrypt(in int64) int64 {a := int32(in) + ck.rk[0]b := int32(uint64(in)>>32) + ck.rk[1]for r := 1; r <= rounds; r++ {a = rotateLeft(a^b, b) + ck.rk[2*r]b = rotateLeft(b^a, a) + ck.rk[2*r+1]}return pkLong(a, b)
}func (ck ckCipher) decrypt(in int64) int64 {a := int32(in)b := int32(uint64(in) >> 32)for i := rounds; i > 0; i-- {b = rotateRight(b-ck.rk[2*i+1], a) ^ aa = rotateRight(a-ck.rk[2*i], b) ^ b}b -= ck.rk[1]a -= ck.rk[0]return pkLong(a, b)
}func rotateLeft(x int32, y int32) int32 {return int32(x<<(y&(32-1))) | int32(uint32(x)>>(32-(y&(32-1))))
}func rotateRight(x int32, y int32) int32 {return int32(uint32(x)>>(y&(32-1))) | int32(x<<(32-(y&(32-1))))
}func pkLong(a int32, b int32) int64 {return (int64(a) & 0xffffffff) | (int64(b) << 32)
}

在线

https://www.zzzmode.com/mytools/charles/

申明

上述均为技术学习探索,请勿牟利!!!

请支持正版!!!


结束

这篇关于Charles激活的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1125549

相关文章

使用Charles对安卓手机进行抓包

写在前面的话 Charles 介绍 Charles 的主要功能 网络请求拦截与分析 Charles 通过将自己配置成系统的代理服务器,拦截所有通过它的 HTTP 和 HTTPS 请求与响应。开发者可以查看每个网络请求的详细信息,包括请求的 URL、请求头、请求体、响应头、响应体、状态码等,便于调试和分析网络通信问题。 SSL 抓包 Charles 支持 HTTPS 协议的抓包。通过安装

兔子-PhpStorm10 快速激活

1.注册时选择License server 2.address处填写:http://idea.lanyus.com/ 3.然后点击 OK。

【matlab 激活】2017.11.11日后matlab统一过期需激活解决办法

在matlab安装目录中找到license目录,并创建license.lic文件,然后把以下内容copy到文件中,重启matlab。 INCREMENT Aerospace_Blockset MLM 99 permanent uncounted \ A05070F00D1EB1F92326 VENDOR_STRING=QQ=47399897 HOSTID=ANY \

今麦郎「日记薪·1号发」 即时反馈,激活10000+名基层员工

本文内容整理自红海云CEO孙伟对今麦郎集团人力资源总经理王高峰、IT管理中心副总经理邹大勇的访谈。 坚持创新求变的品牌基因 过去30年,中国食品工业蓬勃发展,孕育出一批批在国际舞台上熠熠生辉的民族品牌。今麦郎作为民族品牌代表,自1994年创立以来,始终紧跟消费者需求变迁,从满足基础温饱的初心出发,逐步迈向品牌塑造、健康倡导及高端化探索的新征程,从家喻户晓的“今麦

【PyCharm安装】2024最新安装、激活Python+PyCharm教程。附带激活码、Python安装包、PyCharm安装包、激活码!!!

PyCharm激活码(文末附带精品籽料): K384HW36OB-eyJsaWNlbnNlSWQiOiJLMzg0SFczNk9CIiwibGljZW5zZWVOYW1lIjoibWFvIHplZG9uZyIsImxpY2Vuc2VlVHlwZSI6IlBFUlNPTkFMIiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vu

charles使用ssl证书抓包https请求失败解决方案

前提 手机必须有root权限,并且是使用Magisk(面具)进行root; ssl证书安装 安卓7.0以下的手机,ssl证书是直接安装到了‘系统证书’里,可以直接抓取https请求,但是目前的手机大部分都是7.0以上的;安卓7.0以上的手机,ssl证书是直接安装到了‘用户证书’里,因此无法正常的抓取https包,所以想抓https包,必须将ssl证书从‘用户证书’放到‘系统证书’; 如何将

【深度学习 激活函数】激活函数:深度学习界的“魔法药剂”

大家好!今天我们来聊聊深度学习中的一个重要角色——激活函数。你是否曾经好奇过,为什么神经网络能像魔法一样识别图片、理解和生成文字?答案就在于这些神奇的激活函数! 激活函数:神经网络的“心跳” 想象一下,神经网络就像一个巨大的生物体,而激活函数就是它的心跳。没有心跳,生物体就无法生存;同样,没有激活函数,神经网络就无法正常工作。 激活函数的“魔法” 激活函数就像是给神经网络施加了魔法,让它们

激活函数 Sigmod 及其导数

文章目录 1. Sigmod 函数2. 取值3. 图像4. 导数 1. Sigmod 函数 Sigmod 函数是神经网络中最常用的激活函数之一,其形式如下: sigmod ( x ) = f ( x ) = 1 1 + e − x . \text{sigmod}(x) = f(x) = \frac{1}{1 + e^{-x}}. sigmod(x)=f(x)=1+e−x1​.

charles 使用踩坑记录

问题记录 charles不同的版本会有不同的问题,最新版本抓取手机包的时候,手机无法下载证书,暂未找到解决办法抓取手机包的时候ssl代理开启之后,必须还要在对应下方的规则里配置,否则则认为没有开启ssl代理设置在charles中修改了配置相关,尽量重启然后配置才能生效charles中connect方法的请求,测试一般不需要关注 注意事项 在Charles中进行网络抓包时,遇到大量的CONNE

最新Python安装+PyCharm安装激活和使用教程(pycharm激活)

PyCharm激活 激活码: EUWT4EE9X2-eyJsaWNlbnNlSWQiOiJFVVdUNEVFOVgyIiwibGljZW5zZWVOYW1lIjoic2lnbnVwIHNjb290ZXIiLCJhc3NpZ25lZU5hbWUiOiIiLCJhc3NpZ25lZUVtYWlsIjoiIiwibGljZW5zZVJlc3RyaWN0aW9uIjoiIiwiY2hlY2tDb25j