• Stars
    star
    167
  • Rank 225,407 (Top 5 %)
  • Language
    Shell
  • License
    The Unlicense
  • Created about 7 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

decrypt UniFi Network Application backup (.unf <=> .zip)

UniFi backup file (.unf) / support file (.supp) decryption

Requirement

  • openssl
  • zip

Some code snippet

final Cipher instance = Cipher.getInstance("AES/CBC/NoPadding");
instance.init(2, new SecretKeySpec("bcyangkmluohmars".getBytes(), "AES"), new IvParameterSpec("ubntenterpriseap".getBytes()));
return new CipherInputStream(inputStream, instance);

malformed zip files require fixing before unzip

Database

db.gz contains a stream of BSON document for each collections of ace database.

You can view its content by gunzip -c db.gz | bsondump.

It should be trivial to write a script that helps import/export. If anybody wants to contribute, PRs are welcomed.