Advertisement
Guest User

Untitled

a guest
Jun 4th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. import java.io.*;
  2. import java.util.*;
  3.  
  4. class J {
  5.  
  6. public static void main(String[] a) throws Exception{
  7. System.in.close();
  8. PrintStream b = System.out,i=new PrintStream(new OutputStream(){public void write(int a){}});
  9. System.setOut(i);
  10. System.setErr(i);
  11. for(byte[] c = new byte[0];;){
  12. for(int d = 1, e = 0, f; d > 0;e++){
  13. if (e == c.length){
  14. c = Arrays.copyOf(c,e+1);
  15. break;
  16. }
  17. d = (f = c[e] + 1)==256?1:0;
  18. c[e] = (byte) (f+1);
  19. }
  20. byte[] g = Arrays.copyOf(c, c.length);
  21. new Thread(() -> {
  22. try{
  23. new ClassLoader(){Class a(byte[] a){
  24. return this.defineClass(a, 0, a.length);
  25. }}.a(g).getMethod("main", a.getClass()).invoke(null,a);
  26. b.println(Arrays.toString(g));
  27. } catch (Throwable h){}
  28. }).start();
  29. }
  30. }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement