ca3tie1 / cracksleeve Goto Github PK
View Code? Open in Web Editor NEW破解CS4.0
破解CS4.0
这条语句报错。。
java -classpath cobaltstrike.jar;./ CrackSleeve encode CustomizeString
那个originKey和加密key需要写死的,每个版本对应都有OrginKey;
4.0 1be5be52c6255c33558e8a1cb667cb06
4.1 80e32a742060b884419ba0c171c9aa76
4.2 b20d487addd4713418f2d5a3ae02a7a0
4.3 3a4425490f389aeec312bdd758ad2b99
4.4 5e98194a01c6b48fa582a6a9fcbb92d6
4.5 f38eb3d1a335b252b58bc2acde81b542
4.5 版本: private static byte[] OriginKey = {-13, -114, -77, -47, -93, 53, -78, 82, -75, -117, -62, -84, -34, -127, -75, 66};
脚本代码:
`import java.util.Arrays;
public class Main {
public static void main(String[] args) {
String CsKey = "f38eb3d1a335b252b58bc2acde81b542";
System.out.println("private static byte[] OriginKey = " + Arrays.toString(Hex2Byte(CsKey)).replace("[", "{").replace("]", "}") + ";");
}
//16进制字符串转byte数组
public static byte[] Hex2Byte(String inHex) {
String[] hex = stringToStringArray(inHex,2);
byte[] byteArray = new byte[hex.length];
for (int i = 0; i < hex.length; i++) {
//parseInt()方法用于将字符串参数作为有符号的n进制整数进行解析
byteArray[i] = (byte) Integer.parseInt(hex[i], 16);
}
return byteArray;
}
public static String[] stringToStringArray(String src, int length) {
//检查参数是否合法
if (null == src || src.equals("")) {return null;}
if (length <= 0) {return null;}
int n = (src.length() + length - 1) / length; //获取整个字符串可以被切割成字符子串的个数
String[] split = new String[n];
for (int i = 0; i < n; i++) {
if (i < (n - 1)) {
split[i] = src.substring(i * length, (i + 1) * length);
} else {
split[i] = src.substring(i * length);
}
}
return split;
}
}`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.