Advertisement
Guest User

Untitled

a guest
May 26th, 2019
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.81 KB | None | 0 0
  1. package net.directleaks.antireleak.templates;
  2.  
  3. import java.io.BufferedReader;
  4. import java.io.File;
  5. import java.io.InputStream;
  6. import java.io.InputStreamReader;
  7. import java.io.PrintStream;
  8. import java.io.Reader;
  9. import java.lang.invoke.ConstantCallSite;
  10. import java.lang.invoke.MethodHandle;
  11. import java.lang.invoke.MethodHandles;
  12. import java.lang.invoke.MethodType;
  13. import java.net.URI;
  14. import java.net.URL;
  15. import java.net.URLConnection;
  16. import java.nio.charset.Charset;
  17. import java.nio.charset.StandardCharsets;
  18. import java.nio.file.attribute.FileTime;
  19. import java.security.CodeSource;
  20. import java.security.MessageDigest;
  21. import java.security.ProtectionDomain;
  22. import java.util.Enumeration;
  23. import java.util.zip.ZipEntry;
  24. import java.util.zip.ZipFile;
  25. import sun.misc.SharedSecrets;
  26. import sun.reflect.ConstantPool;
  27.  
  28. public class BootstrapMethod {
  29. private static int variable1;
  30. private static String variable2;
  31. private static boolean done = false;
  32.  
  33. private static Object bootstrapMethod(Object methodlookup, Object callerName, Object callerType, Object opcode1,
  34. Object opcode2, Object opcode3, Object originalClassName, Object originalMethodName,
  35. Object originalMethodSignature, Object optionalmsg) {
  36. if (methodlookup == null && callerName == null && callerType == null && opcode1 == null && opcode2 == null
  37. && opcode3 == null && originalClassName == null && originalMethodName == null
  38. && originalMethodSignature == null) {
  39. try {
  40. char[] messageChars = ((String) optionalmsg).toCharArray();
  41. char[] newMessage = new char[messageChars.length];
  42. char[] XORKEY = new char[] { '\u4832', '\u2385', '\u2386', '\u9813', '\u9125', '\u4582', '\u0913',
  43. '\u3422', '\u0853', '\u0724' };
  44. Object object0001 = null;
  45. Object randomString = null;
  46. char[] XORKEY2 = new char[] { '\u4820', '\u8403', '\u8753', '\u3802', '\u3840', '\u3894', '\u8739',
  47. '\u1038', '\u8304', '\u3333' };
  48. for (int j = 0; j < messageChars.length; ++j) {
  49. newMessage[j] = (char) (messageChars[j] ^ XORKEY[j % XORKEY.length]);
  50. }
  51. char[] decryptedmsg = new char[newMessage.length];
  52. for (int j = 0; j < messageChars.length; ++j) {
  53. decryptedmsg[j] = (char) (newMessage[j] ^ XORKEY2[j % XORKEY2.length]);
  54. }
  55. return new String(decryptedmsg);
  56. } catch (Exception ignore) {
  57. return optionalmsg;
  58. }
  59. }
  60. if (done == false) {
  61. try {
  62. Object nullvar0 = null;
  63. String string;
  64. URLConnection uRLConnection = new URL(
  65. (String) bootstrapMethod(null, null, null, null, null, null, null, null, null, "REPLACELINK"))
  66. .openConnection();
  67. uRLConnection.setRequestProperty("User-Agent", "Mozilla/5.0");
  68. uRLConnection.setConnectTimeout(1000);
  69. uRLConnection.setReadTimeout(1000);
  70. BufferedReader bufferedReader = new BufferedReader(
  71. new InputStreamReader(uRLConnection.getInputStream()));
  72. while ((string = bufferedReader.readLine()) != null) {
  73.  
  74. if (!string.equals(
  75. bootstrapMethod(null, null, null, null, null, null, null, null, null, "REPLACEUSERID")))
  76. continue;
  77. Object nullvar1 = null;
  78. System.out.println(bootstrapMethod(null, null, null, null, null, null, null, null, null,
  79. "[InfiniteLeaks] Please contact InfiniteLeaks!"));
  80. System.out.println(bootstrapMethod(null, null, null, null, null, null, null, null, null,
  81. "[InfiniteLeaks] Error code: 0x0"));
  82. System.exit(0);
  83. }
  84.  
  85. } catch (Throwable throwable) {
  86. Object nullvar2 = null;
  87. System.out.println(bootstrapMethod(null, null, null, null, null, null, null, null, null,
  88. "[InfiniteLeaks] Please contact InfiniteLeaks!"));
  89. System.out.println(bootstrapMethod(null, null, null, null, null, null, null, null, null,
  90. "[InfiniteLeaks] Error code: 0x1"));
  91. }
  92. done = true;
  93.  
  94. }
  95. return null;
  96. }
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement