FORUM DARKERS

Tecnologia & Informática => Programação => Java => Topic started by: OnlyOne on 24 de March , 2006, 05:34:48 PM

Title: No-Ip View Tool
Post by: OnlyOne on 24 de March , 2006, 05:34:48 PM
Ok moçada , seguindo a dica do Tubarao Branco , hehehehe , eu codei esta tool q mostra pra vc a senha do No-ip DUC , sem vc ter q baixar um novo prog para decodifica-la , bastando clicar em um botao


veja as screenshots

(//http://i65.photobucket.com/albums/h226/mmmx2/picture001.jpg)


e agora depois de clicar no botao "Ver senha"


(//http://i65.photobucket.com/albums/h226/mmmx2/picture002.jpg)


segue abaixo o codigo da aplicaçao

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

/**
*
* No-Ip View by OnlyOne |Sinapse| & Darkers Team
*
* codado com JAVA sdk 1.5 TIGER !
*
* compilar : javac noipcrack.java
* executar : javaw noipcrack
*
*
**********************************************************************/

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
import java.util.*;

/******************************************************************************/

public class noipcrack extends JFrame
                       implements ActionListener {

private JLabel lab1,lab2;
private JButton b1,b2;
private JPanel p1,p2,p3,p4;

private String aux,x;

/** construtor */

public noipcrack(){

setTitle("No-Ip View by OnlyOne |Sinapse| & Darkers Team");
setSize(450,150);
getContentPane().setBackground(SystemColor.control);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

lab1 = new JLabel("Senha Criptografada : ");
lab2 = new JLabel("Senha : ");

p1 = new JPanel();
p1.setLayout(new FlowLayout(FlowLayout.LEFT));
p1.add(lab1);

p2 = new JPanel();
p2.setLayout(new FlowLayout(FlowLayout.LEFT));
p2.add(lab2);

p3 = new JPanel();
p3.setLayout(new BoxLayout(p3,BoxLayout.Y_AXIS));
p3.add(p1);
p3.add(p2);

b1 = new JButton("Ver Senha");
b1.addActionListener(this);

b2 = new JButton("Sair");
b2.addActionListener(this);

p4 = new JPanel();
p4.setBorder(BorderFactory.createTitledBorder("Opções"));
p4.add(b1);
p4.add(b2);

getContentPane().add(p3,"North");
getContentPane().add(p4,"South");


try{

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
 SwingUtilities.updateComponentTreeUI(this);

}catch(Exception look){}

setVisible(true);

}//end of constructor


/** Metodos *******************************************************************/

//le o registry do windows
public void leRegistro(){

String cmd = "REG QUERY HKLM\\SOFTWARE\\Vitalwerks\\DUC /v Password";
String linha  = "";

try{

BufferedReader br = new BufferedReader(
                    new InputStreamReader(
                    Runtime.getRuntime().exec(cmd).getInputStream()));

int i = 0;

while( (linha = br.readLine()) != null){
 aux = linha;
  if(i == 4){ return; }
   i++; }

}catch(Exception a){ erro("Erro ao ler o Registry !"); }

}//end of leRegistro


//separa valores em uma string
public String separaValor(String val){

String a = "";

for(int i=0;i<val.length();i++){

if(Character.isWhitespace(val.charAt(i))){a += "-"; continue;}

a += Character.toString(val.charAt(i)); }

StringTokenizer st = new StringTokenizer(a,"-");
String resp = "";

while(st.hasMoreTokens()){
 resp = st.nextToken(); }

return resp;

}//end of separaValor


//decodifica base64
public String decodificar(String senha){

try{

return new String(new sun.misc.BASE64Decoder().decodeBuffer(senha));

}catch (Exception b){ erro("Nao foi possivel decodificar a senha ! "); }

return "";

}//end of decodificar


//exibi alertas de erros ao usuario
public void erro(String f){

JOptionPane.showMessageDialog(this,f,"Erro",JOptionPane.ERROR_MESSAGE);
 System.exit(0);

}//end of erro


/** Interfaces ****************************************************************/

public void actionPerformed(ActionEvent e){

Object o = e.getSource();

if(o.equals(b2))  System.exit(0);

if(o.equals(b1)){
 leRegistro();
  x = separaValor(aux);
   lab1.setText("Senha Criptografada : " + x);
    lab2.setText("Senha : " + decodificar(x.trim())); }

}//end of actionPerformed

/** Main **********************************************************************/

public static void main(String args[]){ new noipcrack(); }//end of main

} //end of class noipcrack


                           Only
                           n
                           e



The power of JAVA
Title: Re: No-Ip View Tool
Post by: Shady on 24 de March , 2006, 06:11:17 PM
E la vai um ponto =)

 Parabens ;)
Title: Re: No-Ip View Tool
Post by: Anonymous on 24 de March , 2006, 06:28:16 PM
Excelente Brother!!

Parabéns.

H4xn3tw0rk
Title: Re: No-Ip View Tool
Post by: Cloudy on 25 de March , 2006, 08:59:37 AM
Legal. Base64 é molinho de quebrar. O pessoal lá deveria escolher alguma coisa mais forte. Tsc tsc tsc

...by Cloudy
Title: Re: No-Ip View Tool
Post by: Fox on 21 de June , 2006, 08:48:59 PM
Noo cara...interessante! Onde pego ele?
Title: Re: No-Ip View Tool
Post by: slul on 21 de June , 2006, 08:57:06 PM
http://nathan.ueuo.com/?page=criptografia (http://nathan.ueuo.com/?page=criptografia)

prefiro usar meu proprio programa =P

feito em PHP

e talz

ele codifica e decodifica BASE 64

Codifica MD5
Codifica Shadow
Codifica crc32

Abraços!

Parabens!
Title: Re: No-Ip View Tool
Post by: Fox on 21 de June , 2006, 09:11:08 PM
Qual é o seu Slul?
Title: Re: No-Ip View Tool
Post by: slul on 21 de June , 2006, 09:29:48 PM
clica no link q vc vai ver ^^
Title: Re: No-Ip View Tool
Post by: Fox on 21 de June , 2006, 09:41:53 PM
Foi mal...vacilei...mas quando vi ja tinha mandado a msg....hahha