Skip to content

Instantly share code, notes, and snippets.

View rchomczyk's full-sized avatar

Rafał Chomczyk rchomczyk

  • Białystok, Poland
View GitHub Profile
<?xml version="1.0"?>
<xs:schema
targetNamespace="https://gist.githubusercontent.com/rchomczyk/31fff815e757f9dff61bb9f2c99d38aa/raw/bc23d70320361356a2b93a5f1691d58cc7d7f9ee/if.xsd"
elementFormDefault="qualified"
xmlns="https://gist.githubusercontent.com/rchomczyk/31fff815e757f9dff61bb9f2c99d38aa/raw/bc23d70320361356a2b93a5f1691d58cc7d7f9ee/if.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="slot">
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="53"/>
@rchomczyk
rchomczyk / u-license-decryption-poc.java
Last active October 7, 2024 15:19
Simple proof of concept, which decrypts the uLicense's license, which is encrypted using the AES algorithm and encoded with Base64.
private String decrypt(String decryptionKey, String encodedValue) {
String[] splitSample = new String(Base64.getDecoder().decode(encodedValue), StandardCharsets.UTF_8).split("\\*\\*uLicense\\*\\*");
String salt = splitSample[0];
String pass = splitSample[1];
try {
SecretKeySpec secretKeySpec = new SecretKeySpec(
decryptionKey.getBytes(StandardCharsets.UTF_8), "AES");
IvParameterSpec parameterSpec = new IvParameterSpec(Hex.decodeHex(salt));