2011-08 Archives

20-08-2011 01:34:48

[Secu] Deblocage Livebox2, du nouveau ?

En lisant une news de Korben parlant d'un deblocage de Livebox je me dis "Cool voyons la technique".

Une version Windows est proposée mais également une Android, ce qui est plus simple à analyser puisque c'est du Java que l'on peut décompiler. On commence donc à télécharger le .apk disponible ici. On le dézip avec tout simplement Winrar puis on transforme le .dex en .jar grace à dex2jar et on ouvre ce .jar avec un decompiler Java tel Java Decompiler :)

Voila on a tout ce qu'il nous faut.

Voici le code obtenu :
 package com.Buckynet.Orange.Unlocker.LiveBox2;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.PorterDuff.Mode;
import android.graphics.drawable.Drawable;
import android.net.DhcpInfo;
import android.net.Uri;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;
import android.widget.TableLayout;
import android.widget.TextView;
import com.admob.android.ads.AdView;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.Socket;
import java.util.Locale;

public class LiveBox2 extends Activity
  implements View.OnClickListener
{
  private static final String LOG = "LiveBox2 Unlocker ... ";
  private static final String TAG = "Buckynet LiveBox2 Unlocker";
  private String aa;
  private String b1 = "lbv";
  private String b2;
  private Boolean conectado;
  private Button conectar;
  private Button config;
  private ProgressDialog dialog;
  private Button donar;
  private String e0 = "1901B95A";
  private Button easywifi;
  private String es;
  private int estado;
  private AdView example_adview;
  private String fr;
  private Handler handler;
  private MenuItem item;
  protected InetAddress localIP;
  private Button lvb2pro;
  private Menu menu0;
  private Button milvb;
  private boolean ok;
  private String pass;
  private int port = 23;
  private int posi;
  private Button reboot;
  protected InetAddress remoteIP;
  private String server;
  private Spinner spinner;
  private TableLayout table1;
  private TextView txt;
  private TextView txtads;
  private TextView txtfw;
  private String user;
  private String uu;
  private boolean version;
  private WifiManager wifi;

  public LiveBox2()
  {
    Boolean localBoolean = Boolean.valueOf(false);
    this.conectado = localBoolean;
    this.b2 = "TECHNO";
    this.user = "root";
    this.pass = "1234";
    String str1 = String.valueOf(this.b1.toUpperCase());
    StringBuilder localStringBuilder = new 
StringBuilder(str1).append("2");
    String str2 = this.b2.toLowerCase();
    String str3 = str2;
    this.uu = str3;
    this.ok = false;
    this.version = false;
    this.es = "1901b95ae4295d613abf9eabae0b9d40";
    this.fr = "086b352e9b6deeefb4941b900932f138";
    this.estado = 0;
    1 local1 = new Handler()
    {
      public void handleMessage(Message paramMessage)
      {
        LiveBox2.this.dialog.dismiss();
        if (!LiveBox2.this.ok)
          return;
        if (LiveBox2.this.estado == 2)
        {
          LiveBox2.this.table1.setBackgroundColor(-16733696);
          LiveBox2.this.txtads.setText("LiveBox2 Unlocker ... OK");
        }
        if (LiveBox2.this.estado != 1)
          return;
        LiveBox2.this.onResume();
      }
    };
    this.handler = local1;
  }

  private void activarbotones()
  {
    this.config.setEnabled(true);
    this.config.setVisibility(0);
    this.reboot.setEnabled(true);
    this.reboot.setVisibility(0);
    this.milvb.setEnabled(true);
    this.milvb.setVisibility(0);
    this.txtfw.setEnabled(true);
    this.txtfw.setVisibility(0);
    this.spinner.setEnabled(true);
    this.spinner.setVisibility(0);
  }

  private void desactivarbotones()
  {
    this.config.setEnabled(false);
    this.config.setVisibility(8);
    this.reboot.setEnabled(false);
    this.reboot.setVisibility(8);
    this.milvb.setEnabled(false);
    this.milvb.setVisibility(8);
    this.txtfw.setEnabled(false);
    this.txtfw.setVisibility(8);
    this.spinner.setEnabled(false);
    this.spinner.setVisibility(8);
  }

  private void donar()
  {
    Uri localUri = 
Uri.parse("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QD45B9J6MRFHS");
    Intent localIntent = new Intent("android.intent.action.VIEW", 
localUri);
    startActivity(localIntent);
  }

  private void lvb2pro()
  {
    Uri localUri = 
Uri.parse("market://details?id=com.Buckynet.Orange.Unlocker.Manager.LiveBox2");
    Intent localIntent = new Intent("android.intent.action.VIEW", 
localUri);
    startActivity(localIntent);
  }

  public String ConvIP(int paramInt)
  {
    Object[] arrayOfObject = new Object[4];
    Integer localInteger1 = Integer.valueOf(paramInt & 0xFF);
    arrayOfObject[0] = localInteger1;
    Integer localInteger2 = Integer.valueOf(paramInt >> 8 & 0xFF);
    arrayOfObject[1] = localInteger2;
    Integer localInteger3 = Integer.valueOf(paramInt >> 16 & 
0xFF);
    arrayOfObject[2] = localInteger3;
    Integer localInteger4 = Integer.valueOf(paramInt >> 24 & 
0xFF);
    arrayOfObject[3] = localInteger4;
    return String.format("%d.%d.%d.%d", arrayOfObject);
  }

  protected void backuprestore()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set 
wbm/settings/pages/backuprestore 1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  protected void community()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set wbm/settings/pages/community 
1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  protected void dhcp()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set wbm/settings/network/dhcp 
1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  protected void fax()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set wbm/settings/pages/fax 1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  protected void fmdev()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set wbm/settings/test/fmdev 1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  protected void ftlock()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set wbm/settings/network/ftlock 
1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  protected void h323()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set wbm/settings/network/h323 
1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  protected void hsiab()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set wbm/settings/pages/hsiab 
1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  protected void licence()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set wbm/settings/pages/licence 
1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  protected void livezoom()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set wbm/settings/pages/livezoom 
1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  protected void log()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set wbm/settings/pages/log 1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  protected void msgwaiting()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set 
wbm/settings/services/msgwaiting 1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  public void onClick(View paramView)
  {
    if (paramView.getId() == 2131099651)
    {
      this.estado = 0;
      Intent localIntent1 = new 
Intent("android.settings.WIFI_SETTINGS");
      startActivity(localIntent1);
    }
    if (paramView.getId() == 2131099657)
    {
      this.estado = 0;
      if (this.conectado.booleanValue())
      {
        Uri localUri = Uri.parse("http://livebox");
        Intent localIntent2 = new Intent("android.intent.action.VIEW", 
localUri);
        startActivity(localIntent2);
      }
    }
    if (paramView.getId() == 2131099659)
    {
      this.estado = 0;
      if (!this.conectado.booleanValue());
    }
    try
    {
      Process localProcess1 = Runtime.getRuntime().exec("am start -a 
android.intent.action.MAIN -n 
com.orange.mylivebox/.gui.main.StartupActivity");
      if (paramView.getId() == 2131099652)
        this.estado = 0;
    }
    catch (Exception localException1)
    {
      try
      {
        Process localProcess2 = Runtime.getRuntime().exec("am start -a 
android.intent.action.MAIN -n 
com.orange.labs.easywifi/.activity.SplashScreenActivity");
        if (paramView.getId() == 2131099658)
        {
          this.estado = 0;
          if (this.conectado.booleanValue())
          {
            AlertDialog.Builder localBuilder1 = new 
AlertDialog.Builder(this);
            CharSequence localCharSequence1 = 
getResources().getText(2130968587);
            AlertDialog.Builder localBuilder2 = 
localBuilder1.setMessage(localCharSequence1).setTitle("LiveBox2 Unlocker 
... ").setCancelable(true);
            CharSequence localCharSequence2 = 
getResources().getText(2130968585);
            4 local4 = new DialogInterface.OnClickListener()
            {
              public void onClick(DialogInterface paramDialogInterface, 
int paramInt)
              {
                LiveBox2.this.estado = 1;
                LiveBox2.this.dialog.setMessage("LiveBox2 Unlocker ... 
");
                LiveBox2.this.dialog.show();
                LiveBox2.this.rundic();
              }
            };
            AlertDialog.Builder localBuilder3 = 
localBuilder2.setPositiveButton(localCharSequence2, local4);
            CharSequence localCharSequence3 = 
getResources().getText(2130968586);
            5 local5 = new DialogInterface.OnClickListener()
            {
              public void onClick(DialogInterface paramDialogInterface, 
int paramInt)
              {
                paramDialogInterface.cancel();
              }
            };
            AlertDialog.Builder localBuilder4 = 
localBuilder3.setNegativeButton(localCharSequence3, local5);
            localBuilder1.create().show();
          }
        }
        if (paramView.getId() == 2131099662)
        {
          this.estado = 0;
          donar();
        }
        if (paramView.getId() != 2131099663)
          return;
        this.estado = 0;
        lvb2pro();
        return;
        localException1 = localException1;
        StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
        String str1 = localException1.toString();
        String str2 = str1;
        int i = Log.e("Buckynet LiveBox2 Unlocker", str2);
      }
      catch (Exception localException2)
      {
        while (true)
        {
          StringBuilder localStringBuilder2 = new 
StringBuilder("LiveBox2 Unlocker ... ");
          String str3 = localException2.toString();
          String str4 = str3;
          int j = Log.e("Buckynet LiveBox2 Unlocker", str4);
        }
      }
    }
  }

  public void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903040);
    TableLayout localTableLayout = 
(TableLayout)findViewById(2131099648);
    this.table1 = localTableLayout;
    TextView localTextView1 = (TextView)findViewById(2131099649);
    this.txt = localTextView1;
    TextView localTextView2 = (TextView)findViewById(2131099660);
    this.txtads = localTextView2;
    Button localButton1 = (Button)findViewById(2131099651);
    this.conectar = localButton1;
    this.conectar.setOnClickListener(this);
    Drawable localDrawable = this.conectar.getBackground();
    int i = Color.parseColor("#FF8000");
    PorterDuff.Mode localMode = PorterDuff.Mode.MULTIPLY;
    localDrawable.setColorFilter(i, localMode);
    Button localButton2 = (Button)findViewById(2131099652);
    this.easywifi = localButton2;
    this.easywifi.setOnClickListener(this);
    Button localButton3 = (Button)findViewById(2131099657);
    this.config = localButton3;
    this.config.setOnClickListener(this);
    Button localButton4 = (Button)findViewById(2131099658);
    this.reboot = localButton4;
    this.reboot.setOnClickListener(this);
    Button localButton5 = (Button)findViewById(2131099659);
    this.milvb = localButton5;
    this.milvb.setOnClickListener(this);
    Button localButton6 = (Button)findViewById(2131099662);
    this.donar = localButton6;
    this.donar.setOnClickListener(this);
    Button localButton7 = (Button)findViewById(2131099663);
    this.lvb2pro = localButton7;
    this.lvb2pro.setOnClickListener(this);
    ProgressDialog localProgressDialog = new ProgressDialog(this);
    this.dialog = localProgressDialog;
    this.dialog.setCancelable(false);
    TextView localTextView3 = (TextView)findViewById(2131099654);
    this.txtfw = localTextView3;
    Spinner localSpinner1 = (Spinner)findViewById(2131099655);
    this.spinner = localSpinner1;
    ArrayAdapter localArrayAdapter = 
ArrayAdapter.createFromResource(this, 2131034112, 17367048);
    localArrayAdapter.setDropDownViewResource(17367049);
    this.spinner.setAdapter(localArrayAdapter);
    Spinner localSpinner2 = this.spinner;
    MyOnItemSelectedListener localMyOnItemSelectedListener = new 
MyOnItemSelectedListener();
    
localSpinner2.setOnItemSelectedListener(localMyOnItemSelectedListener);
    AdView localAdView1 = (AdView)findViewById(2131099661);
    this.example_adview = localAdView1;
    this.example_adview.setVisibility(0);
    this.ok = false;
    this.version = false;
    Boolean localBoolean = Boolean.valueOf(false);
    this.conectado = localBoolean;
    AdView localAdView2 = this.example_adview;
    2 local2 = new View.OnClickListener()
    {
      public void onClick(View paramView)
      {
        LiveBox2.this.estado = 0;
        if (!LiveBox2.this.conectado.booleanValue())
          return;
        LiveBox2.this.dialog.setMessage("LiveBox2 Unlocker ... ");
        LiveBox2.this.dialog.show();
        LiveBox2.this.estado = 2;
        LiveBox2.this.rundic();
      }
    };
    localAdView2.setOnClickListener(local2);
  }

  public boolean onCreateOptionsMenu(Menu paramMenu)
  {
    boolean bool = super.onCreateOptionsMenu(paramMenu);
    CharSequence localCharSequence1 = 
getResources().getText(2130968577);
    MenuItem localMenuItem1 = paramMenu.add(0, 0, 0, 
localCharSequence1).setIcon(2130837504);
    this.item = localMenuItem1;
    CharSequence localCharSequence2 = 
getResources().getText(2130968578);
    MenuItem localMenuItem2 = paramMenu.add(0, 1, 1, 
localCharSequence2).setIcon(2130837509);
    this.item = localMenuItem2;
    CharSequence localCharSequence3 = 
getResources().getText(2130968579);
    MenuItem localMenuItem3 = paramMenu.add(0, 2, 2, 
localCharSequence3).setIcon(2130837515);
    this.item = localMenuItem3;
    this.menu0 = paramMenu;
    return super.onCreateOptionsMenu(paramMenu);
  }

  protected void onDestroy()
  {
    super.onDestroy();
    this.wifi = null;
    this.example_adview.destroyDrawingCache();
    this.example_adview.cleanup();
  }

  public boolean onMenuItemSelected(int paramInt, MenuItem 
paramMenuItem)
  {
    boolean bool1 = super.onMenuItemSelected(paramInt, paramMenuItem);
    boolean bool2;
    switch (paramMenuItem.getItemId())
    {
    default:
      bool2 = super.onMenuItemSelected(paramInt, paramMenuItem);
      return bool2;
    case 0:
      AlertDialog.Builder localBuilder1 = new AlertDialog.Builder(this);
      CharSequence localCharSequence1 = 
getResources().getText(2130968582);
      AlertDialog.Builder localBuilder2 = 
localBuilder1.setMessage(localCharSequence1);
      CharSequence localCharSequence2 = 
getResources().getText(2130968580);
      6 local6 = new DialogInterface.OnClickListener()
      {
        public void onClick(DialogInterface paramDialogInterface, int 
paramInt)
        {
          paramDialogInterface.cancel();
        }
      };
      AlertDialog.Builder localBuilder3 = 
localBuilder2.setPositiveButton(localCharSequence2, local6);
      localBuilder1.create().show();
    case 1:
    case 2:
    }
    while (true)
    {
      bool2 = super.onMenuItemSelected(paramInt, paramMenuItem);
      break;
      this.ok = false;
      this.version = false;
      Boolean localBoolean = Boolean.valueOf(false);
      this.conectado = localBoolean;
      onResume();
      continue;
      finish();
    }
  }

  public boolean onMenuOpened(int paramInt, Menu paramMenu)
  {
    boolean bool = super.onMenuOpened(paramInt, paramMenu);
    if (paramMenu != null)
    {
      this.menu0.clear();
      Menu localMenu1 = this.menu0;
      CharSequence localCharSequence1 = 
getResources().getText(2130968577);
      MenuItem localMenuItem1 = localMenu1.add(0, 0, 0, 
localCharSequence1).setIcon(2130837504);
      this.item = localMenuItem1;
      Menu localMenu2 = this.menu0;
      CharSequence localCharSequence2 = 
getResources().getText(2130968578);
      MenuItem localMenuItem2 = localMenu2.add(0, 1, 1, 
localCharSequence2).setIcon(2130837509);
      this.item = localMenuItem2;
      Menu localMenu3 = this.menu0;
      CharSequence localCharSequence3 = 
getResources().getText(2130968579);
      MenuItem localMenuItem3 = localMenu3.add(0, 2, 2, 
localCharSequence3).setIcon(2130837515);
      this.item = localMenuItem3;
    }
    return super.onMenuOpened(paramInt, paramMenu);
  }

  protected void onPause()
  {
    super.onPause();
    this.wifi = null;
  }

  protected void onResume()
  {
    super.onResume();
    this.example_adview.requestFreshAd();
    this.table1.setBackgroundColor(-2097152);
    this.txt.setText("");
    this.txtads.setText("");
    this.conectar.setEnabled(true);
    this.conectar.setVisibility(0);
    Drawable localDrawable1 = this.conectar.getBackground();
    int i = Color.parseColor("#FF8000");
    PorterDuff.Mode localMode = PorterDuff.Mode.MULTIPLY;
    localDrawable1.setColorFilter(i, localMode);
    this.easywifi.setEnabled(true);
    this.easywifi.setVisibility(0);
    this.donar.setEnabled(true);
    this.donar.setVisibility(0);
    this.lvb2pro.setEnabled(true);
    this.lvb2pro.setVisibility(0);
    this.version = false;
    Boolean localBoolean1 = Boolean.valueOf(false);
    this.conectado = localBoolean1;
    this.estado = 0;
    String str1 = 
getResources().getConfiguration().locale.getISO3Language();
    if (str1.equals("spa"))
    {
      Button localButton1 = this.donar;
      Drawable localDrawable2 = getResources().getDrawable(2130837507);
      localButton1.setBackgroundDrawable(localDrawable2);
      this.spinner.setSelection(0);
    }
    while (true)
    {
      this.wifi = null;
      WifiManager localWifiManager = 
(WifiManager)getSystemService("wifi");
      this.wifi = localWifiManager;
      if (this.wifi.isWifiEnabled())
        break;
      if (isFinishing())
        return;
      if (this.wifi.getWifiState() == 2)
        return;
      this.txt.setText("");
      this.table1.setBackgroundColor(-2039808);
      TextView localTextView1 = this.txt;
      StringBuilder localStringBuilder1 = new StringBuilder("\n\t");
      CharSequence localCharSequence1 = 
getResources().getText(2130968583);
      String str2 = localCharSequence1 + "\n";
      localTextView1.append(str2);
      Button localButton2 = this.conectar;
      CharSequence localCharSequence2 = 
getResources().getText(2130968584);
      localButton2.setText(localCharSequence2);
      desactivarbotones();
      return;
      if (str1.equals("fra"))
      {
        Button localButton3 = this.donar;
        Drawable localDrawable3 = 
getResources().getDrawable(2130837506);
        localButton3.setBackgroundDrawable(localDrawable3);
        this.spinner.setSelection(1);
        continue;
      }
      if (str1.equals("eng"))
      {
        Button localButton4 = this.donar;
        Drawable localDrawable4 = 
getResources().getDrawable(2130837505);
        localButton4.setBackgroundDrawable(localDrawable4);
        this.spinner.setSelection(0);
        continue;
      }
      Button localButton5 = this.donar;
      Drawable localDrawable5 = getResources().getDrawable(2130837507);
      localButton5.setBackgroundDrawable(localDrawable5);
      this.spinner.setSelection(0);
    }
    WifiInfo localWifiInfo = this.wifi.getConnectionInfo();
    if (localWifiInfo.getBSSID() != null)
    {
      this.txt.setText("");
      Boolean localBoolean2 = Boolean.valueOf(true);
      this.conectado = localBoolean2;
      TextView localTextView2 = this.txt;
      StringBuilder localStringBuilder2 = new StringBuilder("\n\tESSID: 
");
      String str3 = localWifiInfo.getSSID();
      String str4 = str3;
      localTextView2.append(str4);
      TextView localTextView3 = this.txt;
      StringBuilder localStringBuilder3 = new StringBuilder("\n\tBSSID: 
");
      String str5 = localWifiInfo.getBSSID();
      String str6 = str5;
      localTextView3.append(str6);
      TextView localTextView4 = this.txt;
      StringBuilder localStringBuilder4 = new StringBuilder("\n\tIP: ");
      int j = localWifiInfo.getIpAddress();
      String str7 = ConvIP(j);
      StringBuilder localStringBuilder5 = 
localStringBuilder4.append(str7).append("   (");
      int k = this.wifi.getDhcpInfo().gateway;
      String str8 = ConvIP(k);
      String str9 = str8 + ")\n";
      localTextView4.append(str9);
      int m = this.wifi.getDhcpInfo().gateway;
      String str10 = ConvIP(m);
      this.server = str10;
      this.conectar.setEnabled(false);
      this.conectar.setVisibility(8);
      this.easywifi.setEnabled(false);
      this.easywifi.setVisibility(8);
      activarbotones();
      if (!this.ok)
      {
        TableLayout localTableLayout = this.table1;
        int n = Color.parseColor("#FF8000");
        localTableLayout.setBackgroundColor(n);
        TextView localTextView5 = this.txtads;
        CharSequence localCharSequence3 = 
getResources().getText(2130968581);
        localTextView5.setText(localCharSequence3);
        return;
      }
      this.table1.setBackgroundColor(-16733696);
      this.txtads.setText("LiveBox2 Unlocker ... OK");
      return;
    }
    this.txt.setText("");
    this.table1.setBackgroundColor(-2039808);
    TextView localTextView6 = this.txt;
    StringBuilder localStringBuilder6 = new StringBuilder("\n\t");
    CharSequence localCharSequence4 = 
getResources().getText(2130968583);
    String str11 = localCharSequence4 + "\n";
    localTextView6.append(str11);
    Button localButton6 = this.conectar;
    CharSequence localCharSequence5 = 
getResources().getText(2130968584);
    localButton6.setText(localCharSequence5);
    desactivarbotones();
  }

  protected void onStart()
  {
    super.onStart();
  }

  protected void onStop()
  {
    super.onStop();
    this.wifi = null;
  }

  protected void professionnal()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set 
wbm/settings/services/professionnal 1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  protected void reboot()
  {
    try
    {
      int i = Log.i("Buckynet LiveBox2 Unlocker", "LiveBox2 Unlocker ... 
reboot");
      String str1 = this.server;
      int j = this.port;
      Socket localSocket = new Socket(str1, j);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.user;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.pass;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("reboot");
      String str7 = localBufferedReader.readLine();
      this.ok = true;
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      this.ok = false;
      StringBuilder localStringBuilder = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str8 = localException.toString();
      String str9 = str8;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str9);
    }
  }

  protected void rtcphone()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set 
wbm/settings/services/rtcphone 1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  public void rundic()
  {
    new Thread()
    {
      public void run()
      {
        try
        {
          LiveBox2.this.ok = false;
          LiveBox2.this.version = false;
          LiveBox2.this.version();
          LiveBox2 localLiveBox21;
          String str1;
          if (LiveBox2.this.posi == 0)
          {
            localLiveBox21 = LiveBox2.this;
            str1 = LiveBox2.this.es;
          }
          LiveBox2 localLiveBox22;
          String str2;
          for (localLiveBox21.aa = str1; ; localLiveBox22.aa = str2)
          {
            if (LiveBox2.this.version)
            {
              LiveBox2.this.version = false;
              LiveBox2.this.version0();
            }
            if (LiveBox2.this.version)
            {
              if (LiveBox2.this.estado == 1)
              {
                LiveBox2.this.reboot();
                sleep(12000L);
              }
              if (LiveBox2.this.estado == 2)
              {
                LiveBox2.this.hsiab();
                LiveBox2.this.livezoom();
                LiveBox2.this.visio();
                LiveBox2.this.community();
                LiveBox2.this.fax();
                LiveBox2.this.vpn();
                LiveBox2.this.backuprestore();
                LiveBox2.this.licence();
                LiveBox2.this.log();
                LiveBox2.this.dhcp();
                LiveBox2.this.ftlock();
                LiveBox2.this.tvrouted();
                LiveBox2.this.h323();
                LiveBox2.this.rtcphone();
                LiveBox2.this.universal_phone();
                LiveBox2.this.professionnal();
                LiveBox2.this.wifipushbutton();
                LiveBox2.this.wpspushbutton();
                LiveBox2.this.msgwaiting();
                LiveBox2.this.sipdev();
                LiveBox2.this.fmdev();
                LiveBox2.this.save();
              }
            }
            boolean bool = LiveBox2.this.handler.sendEmptyMessage(0);
            return;
            if (LiveBox2.this.posi != 1)
              break;
            localLiveBox22 = LiveBox2.this;
            str2 = LiveBox2.this.fr;
          }
        }
        catch (Exception localException)
        {
          while (true)
          {
            LiveBox2.this.ok = false;
            LiveBox2.this.dialog.dismiss();
            StringBuilder localStringBuilder = new 
StringBuilder("LiveBox2 Unlocker ... ");
            String str3 = localException.toString();
            String str4 = str3;
            int i = Log.e("Buckynet LiveBox2 Unlocker", str4);
            continue;
            LiveBox2 localLiveBox23 = LiveBox2.this;
            String str5 = LiveBox2.this.es;
            localLiveBox23.aa = str5;
          }
        }
      }
    }
    .start();
  }

  protected void save()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("save");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      localSocket.close();
      int j = Log.i("Buckynet LiveBox2 Unlocker", "LiveBox2 Unlocker ... 
OK");
      this.ok = true;
      return;
    }
    catch (Exception localException)
    {
      this.ok = false;
      this.dialog.dismiss();
      StringBuilder localStringBuilder = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str10 = localException.toString();
      String str11 = str10;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str11);
    }
  }

  protected void sipdev()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set wbm/settings/test/sipdev 
1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  protected void tvrouted()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set 
wbm/settings/network/tvrouted 1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  protected void universal_phone()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set 
wbm/settings/services/universal_phone 1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  protected void version()
  {
    while (true)
    {
      try
      {
        int i = Log.i("Buckynet LiveBox2 Unlocker", "LiveBox2 Unlocker 
... Version");
        String str1 = this.server;
        int j = this.port;
        Socket localSocket = new Socket(str1, j);
        InputStream localInputStream = localSocket.getInputStream();
        InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
        BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
        OutputStream localOutputStream = localSocket.getOutputStream();
        OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
        PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
        String str2 = this.user;
        localPrintWriter.println(str2);
        String str3 = localBufferedReader.readLine();
        String str4 = this.pass;
        localPrintWriter.println(str4);
        String str5 = localBufferedReader.readLine();
        String str6 = localBufferedReader.readLine();
        localPrintWriter.println("version");
        String str7 = localBufferedReader.readLine();
        String str8 = localBufferedReader.readLine();
        String str9 = localBufferedReader.readLine();
        String str10 = localBufferedReader.readLine();
        if (str10 != null)
          continue;
        this.version = false;
        localSocket.close();
        return;
        String str11 = "LiveBox2 Unlocker ... " + str10;
        int k = Log.i("Buckynet LiveBox2 Unlocker", str11);
        if (str10.contains("Version:"))
        {
          this.version = true;
          continue;
        }
      }
      catch (Exception localException)
      {
        this.version = false;
        this.dialog.dismiss();
        StringBuilder localStringBuilder = new StringBuilder("LiveBox2 
Unlocker ... ");
        String str12 = localException.toString();
        String str13 = str12;
        int m = Log.e("Buckynet LiveBox2 Unlocker", str13);
        return;
      }
      boolean bool = false;
      this.version = bool;
    }
  }

  protected void version0()
  {
    while (true)
    {
      try
      {
        int i = Log.i("Buckynet LiveBox2 Unlocker", "LiveBox2 Unlocker 
... Version");
        String str1 = this.server;
        int j = this.port;
        Socket localSocket = new Socket(str1, j);
        InputStream localInputStream = localSocket.getInputStream();
        InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
        BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
        OutputStream localOutputStream = localSocket.getOutputStream();
        OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
        PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
        String str2 = this.uu;
        localPrintWriter.println(str2);
        String str3 = localBufferedReader.readLine();
        String str4 = this.aa;
        localPrintWriter.println(str4);
        String str5 = localBufferedReader.readLine();
        String str6 = localBufferedReader.readLine();
        localPrintWriter.println("version");
        String str7 = localBufferedReader.readLine();
        String str8 = localBufferedReader.readLine();
        String str9 = localBufferedReader.readLine();
        String str10 = localBufferedReader.readLine();
        if (str10 != null)
          continue;
        this.version = false;
        localSocket.close();
        return;
        String str11 = "LiveBox2 Unlocker ... " + str10;
        int k = Log.i("Buckynet LiveBox2 Unlocker", str11);
        if (str10.contains("Version:"))
        {
          this.version = true;
          continue;
        }
      }
      catch (Exception localException)
      {
        this.version = false;
        this.dialog.dismiss();
        StringBuilder localStringBuilder = new StringBuilder("LiveBox2 
Unlocker ... ");
        String str12 = localException.toString();
        String str13 = str12;
        int m = Log.e("Buckynet LiveBox2 Unlocker", str13);
        return;
      }
      boolean bool = false;
      this.version = bool;
    }
  }

  protected void visio()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set wbm/settings/pages/visio 
1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  protected void vpn()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set wbm/settings/pages/vpn 1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  protected void wifipushbutton()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set 
wbm/settings/services/wifipushbutton 1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  protected void wpspushbutton()
  {
    try
    {
      String str1 = this.server;
      int i = this.port;
      Socket localSocket = new Socket(str1, i);
      InputStream localInputStream = localSocket.getInputStream();
      InputStreamReader localInputStreamReader = new 
InputStreamReader(localInputStream);
      BufferedReader localBufferedReader = new 
BufferedReader(localInputStreamReader, 8192);
      OutputStream localOutputStream = localSocket.getOutputStream();
      OutputStreamWriter localOutputStreamWriter = new 
OutputStreamWriter(localOutputStream);
      PrintWriter localPrintWriter = new 
PrintWriter(localOutputStreamWriter, true);
      String str2 = this.uu;
      localPrintWriter.println(str2);
      String str3 = localBufferedReader.readLine();
      String str4 = this.aa;
      localPrintWriter.println(str4);
      String str5 = localBufferedReader.readLine();
      String str6 = localBufferedReader.readLine();
      localPrintWriter.println("rg_conf_set 
wbm/settings/services/wpspushbutton 1");
      String str7 = localBufferedReader.readLine();
      String str8 = localBufferedReader.readLine();
      String str9 = localBufferedReader.readLine();
      String str10 = localBufferedReader.readLine();
      String str11 = localBufferedReader.readLine();
      StringBuilder localStringBuilder1 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str12 = localBufferedReader.readLine();
      String str13 = str12;
      int j = Log.i("Buckynet LiveBox2 Unlocker", str13);
      localSocket.close();
      return;
    }
    catch (Exception localException)
    {
      this.dialog.dismiss();
      StringBuilder localStringBuilder2 = new StringBuilder("LiveBox2 
Unlocker ... ");
      String str14 = localException.toString();
      String str15 = str14;
      int k = Log.e("Buckynet LiveBox2 Unlocker", str15);
    }
  }

  public class MyOnItemSelectedListener
    implements AdapterView.OnItemSelectedListener
  {
    public MyOnItemSelectedListener()
    {
    }

    public void onItemSelected(AdapterView<?> paramAdapterView, 
View paramView, int paramInt, long paramLong)
    {
      LiveBox2.this.posi = paramInt;
    }

    public void onNothingSelected(AdapterView paramAdapterView)
    {
    }
  }
}
 
Et là, la fin d'un reve ... On constate que l'appli ouvre juste une connexion telnet avec root en login et 1234 en password puis exécute pleins de commande pour activer toutes les fonctions et enfin lance un reboot... Rien de nouveau quand on regarde Google.

Bref tout ca aurait été faisable avec un bete script python de 30 lignes. Décu :(

Posté par cloud | permalien | dans : Security

19-08-2011 23:03:26

[Secu] Falsification d'extension

Un petit trick qu'on m'a montré aujourd'hui pour piéger un utilisateur. Plutot que de refaire une explication, je vous propose de lire ce pdf.

Ce caractère Unicode (RTLO) permet de falsifier les extensions des fichiers et de piéger des liens. J'ai pu tester sous Windows 7 ainsi que sous Linux Ubuntu avec Nautilus et cela fonctionne très bien pour les 2 OS.

Soyez donc prudent car de nombreux malwares doivent utiliser cette technique.

Posté par cloud | permalien | dans : Security