fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. import java.nio.charset.Charset;
  8. import java.nio.charset.StandardCharsets;
  9. import java.security.MessageDigest;
  10. import java.security.NoSuchAlgorithmException;
  11. import javax.crypto.Cipher;
  12. import javax.crypto.spec.SecretKeySpec;
  13.  
  14. /* Name of the class has to be "Main" only if the class is public. */
  15. class Ideone
  16. {
  17. private static final String AESTYPE = "AES";
  18. private static final Charset defaultCharset = Charset.forName("UTF-8");
  19.  
  20. private static byte[] encode(byte[] data, String keyStr) {
  21. try {
  22. SecretKeySpec keySpec = new SecretKeySpec(encodePass(keyStr).getBytes(), AESTYPE);
  23. Cipher cipher = Cipher.getInstance(AESTYPE);
  24. cipher.init(1, keySpec);
  25. return cipher.doFinal(data);
  26. } catch (Exception e2) {
  27. e2.printStackTrace();
  28. return null;
  29. }
  30. }
  31.  
  32. public static String encodePass(String pass) {
  33. return encodeToMD516(pass).toLowerCase();
  34. }
  35.  
  36. private static byte[] decode(byte[] data, String keyStr) {
  37. try {
  38. SecretKeySpec keySpec = new SecretKeySpec(encodePass(keyStr).getBytes(), AESTYPE);
  39. Cipher cipher = Cipher.getInstance(AESTYPE);
  40. cipher.init(2, keySpec);
  41. return cipher.doFinal(data);
  42. } catch (Exception e2) {
  43. e2.printStackTrace();
  44. return null;
  45. }
  46. }
  47.  
  48. public static String encodeStr(String str, String key) {
  49. return bytesToHex(encode(str.getBytes(StandardCharsets.UTF_8), key));
  50. }
  51.  
  52. public static String m12(String str, String key) {
  53. return new String(decode(hexToByteArray(str.replace("ScKit-", "")), key), defaultCharset);
  54. }
  55.  
  56. public static String bytesToHex(byte[] bytes) {
  57. for (byte b : bytes) {
  58. String hex = Integer.toHexString(b & 255);
  59. if (hex.length() < 2) {
  60. sb.append(0);
  61. }
  62. sb.append(hex);
  63. }
  64. return sb.toString();
  65. }
  66.  
  67. public static byte[] hexToByteArray(String inHex) {
  68. byte[] result;
  69. int hexlen = inHex.length();
  70. if (hexlen % 2 == 1) {
  71. hexlen++;
  72. result = new byte[(hexlen / 2)];
  73. inHex = "0" + inHex;
  74. } else {
  75. result = new byte[(hexlen / 2)];
  76. }
  77. int j2 = 0;
  78. for (int i2 = 0; i2 < hexlen; i2 += 2) {
  79. result[j2] = (byte) Integer.parseInt(inHex.substring(i2, i2 + 2), 16);
  80. j2++;
  81. }
  82. return result;
  83. }
  84.  
  85. public static String encodeToMD5(String string) {
  86. try {
  87. String result = "";
  88. for (byte b : MessageDigest.getInstance("MD5").digest(string.getBytes())) {
  89. String temp = Integer.toHexString(b & 255);
  90. if (temp.length() == 1) {
  91. temp = "0" + temp;
  92. }
  93. result = result + temp;
  94. }
  95. return result;
  96. } catch (NoSuchAlgorithmException e2) {
  97. e2.printStackTrace();
  98. return "";
  99. }
  100. }
  101.  
  102. public static String encodeToMD516(String encryptStr) {
  103. return encodeToMD5(encryptStr).substring(8, 24);
  104. }
  105.  
  106. public static void main (String[] args) throws java.lang.Exception
  107. {
  108. System.out.println(m12("ScKit-b899ebaadb7dfe4dc7858cc57535c517", "ScKit-3474160f1de80baf"));
  109. System.out.println(m12("ScKit-926a9758d67c3afc49f43ecbce468f47", "ScKit-3474160f1de80baf"));
  110. System.out.println(m12("ScKit-1174f3b71933929a1908e6dac819e3ac", "ScKit-3474160f1de80baf"));
  111. System.out.println(m12("ScKit-2f2737da037b291004eb1eddb09b3053", "ScKit-3474160f1de80baf"));
  112. System.out.println(m12("ScKit-0511a0946a41f3bdfb9885960092920e", "ScKit-3474160f1de80baf"));
  113. System.out.println(m12("ScKit-97b748988328057df4ea1808d598d0b3ae18f5b4c830818cbd08dd57142480b59d21a576397a0fb8d9d469699f831bc2", "ScKit-3474160f1de80baf"));
  114.  
  115. System.out.println(m12("ScKit-83ed7591e95a89113192ddbfde1bff56efa711e3a95a791fb5e19dbf9f03b8cae77998afaeef78f6fc4916ec14b934dd", "ScKit-e577f3e66617760c"));
  116. System.out.println(m12("ScKit-51df0400a36bb649af3dd8710126f31a", "ScKit-e577f3e66617760c"));
  117. System.out.println(m12("ScKit-a60e4a2e9ca298eb1452c04e55eff17a", "ScKit-e577f3e66617760c"));
  118. System.out.println(m12("ScKit-f514883f768d7c7137c45587adc879be3ad1423d2dee843eb9d7d60668a550cf557fa4702c4e393fa52e3fd416608f43f62663b434bdf9030086b9c04c6fcf52", "ScKit-e577f3e66617760c"));
  119. System.out.println(m12("ScKit-89f9ff09d0d1e637121d50d33e8ac47d", "ScKit-e577f3e66617760c"));
  120. System.out.println(m12("ScKit-eb53be1ae20fe3c481ece217d60dc17351cf38950eb859767c327f9d21d47270db578110cc0323b6feaa754d3c9508fb", "ScKit-e577f3e66617760c"));
  121. System.out.println(m12("ScKit-19cb9fbe678977eff761c25b44594cb7", "ScKit-e577f3e66617760c"));
  122. System.out.println(m12("ScKit-b934db1f0a432f613e6373292ae26bd6bac9a8bce029b851e22d639462288a5f", "ScKit-cc6dfaea9756eab9"));
  123. System.out.println(m12("ScKit-154230b27c9b7a58a7ac01f9ac998f51", "ScKit-cc6dfaea9756eab9"));
  124. System.out.println(m12("ScKit-5389609e853439bc6a7096c09cc2e635d1e058dfd9824a742f761adb50b3a590c8cceefec447977be23b63952c85ce50", "ScKit-cc6dfaea9756eab9"));
  125. System.out.println(m12("ScKit-a24c533db75838a28f72c90e9c5104e9", "ScKit-cc6dfaea9756eab9"));
  126. System.out.println(m12("ScKit-7d71504b76a9cb98c1aaf50d91864850", "ScKit-cc6dfaea9756eab9"));
  127. System.out.println(m12("ScKit-d399305110130a2c99c1488a03b7157b0692940bcc3b2f52b8ff424340ca1eef", "ScKit-cc6dfaea9756eab9"));
  128. System.out.println(m12("ScKit-e32e9260c6be1a3fa22ad90cc1dde42d6edfe75078134038d4ee511fa9db142f85b3b34b62cae63b0589cdc1889b505c", "ScKit-cc6dfaea9756eab9"));
  129.  
  130. System.out.println(m12("ScKit-fefcb6669d4d98f9f43b3cccbe029b996b56284c62334629479fa5e809c30d61b22e5496643c0e0186d6582b066aa402", "ScKit-bc95c38865a62aab"));
  131.  
  132. System.out.println(m12("ScKit-e4ef5b50d6403408aacb4743d49acdb3", "ScKit-2bb8e1dbc3ffb7c7"));
  133. System.out.println(m12("ScKit-b78239fdc09970b6fb9b620305a04942", "ScKit-2bb8e1dbc3ffb7c7"));
  134. System.out.println(m12("ScKit-1ffe364584764eb294011b9f10be514a", "ScKit-2bb8e1dbc3ffb7c7"));
  135. System.out.println(m12("ScKit-903d7f64fe2746d150a1e74d251aa9b4", "ScKit-2bb8e1dbc3ffb7c7"));
  136. System.out.println(m12("ScKit-5e01262f9ea20b18c7f62854e1c5d616", "ScKit-2bb8e1dbc3ffb7c7"));
  137. System.out.println(m12("ScKit-f36e7818f5668ed6f48e4588347df4d58e592009c8bd7ef9ffb96de98fda350d8f7c51bc9f2523c0644f5cdcfda03dd7", "ScKit-2bb8e1dbc3ffb7c7"));
  138.  
  139. System.out.println(m12("ScKit-3bdba809cdda5b0f578177d90a040b5120ca0097e7aa0d94402cff82987b8221", "ScKit-0f91eecb06d64ad6"));
  140. System.out.println(m12("ScKit-c3a296ac07ed9cbc6e4d33e3bbe5cacd", "ScKit-0f91eecb06d64ad6"));
  141. System.out.println(m12("ScKit-e9cb135af6206083b77aab1040f8feeb175f2e001d633c0bb3d0cf10b584516a9e33df227b019aed8a49a212ba576e99f3358f7c3c8db4e9b81b7330ff833bd9", "ScKit-0f91eecb06d64ad6"));
  142. System.out.println(m12("ScKit-c1ab3e655d8de876a12529fcdbf4308a408314e96d6fa6c37052d544fb5cf216", "ScKit-0f91eecb06d64ad6"));
  143. System.out.println(m12("ScKit-c1ab3e655d8de876a12529fcdbf4308a6d6dbf52aaabc39aa6aee76b9caafe81063da90c0bdf596ddc32875f8b5c7b40", "ScKit-0f91eecb06d64ad6"));
  144. System.out.println(m12("ScKit-c1ab3e655d8de876a12529fcdbf4308aeb14ad609d7f592a2603e61e10c890a4f0a5b204e743b4e4663c98b5a62f7e19", "ScKit-0f91eecb06d64ad6"));
  145. System.out.println(m12("ScKit-c1ab3e655d8de876a12529fcdbf4308ac5765f96dab11290f67a5d268403d775", "ScKit-0f91eecb06d64ad6"));
  146. System.out.println(m12("ScKit-c1ab3e655d8de876a12529fcdbf4308a5cb0099fc501e00896ee64ba7ff061a0", "ScKit-0f91eecb06d64ad6"));
  147. System.out.println(m12("ScKit-c1ab3e655d8de876a12529fcdbf4308aacc3b72edd250959b9828e592de0942a3cc1b836c59932cfc53eb2c379c88ca8", "ScKit-0f91eecb06d64ad6"));
  148. System.out.println(m12("ScKit-a701de180362303053f7854914c1fd6f0c6ed4aaba651628c0bef15d2f6c56ce4c032a5ad52c1472bff09a66142a5a79", "ScKit-0f91eecb06d64ad6"));
  149. System.out.println(m12("ScKit-415c48ba8bca6d22e3ca768eab337a998338c24a833b0813362c1768b5f9e987ff69eb82f37655e583d77349620896f1", "ScKit-0f91eecb06d64ad6"));
  150. System.out.println(m12("ScKit-a05bb67828addf032e5cbd93ab2bc068c7430eec41e720fad1729f9c475d9e199e380e65b6c4cd3a937e6c95e9e254e4ea2dead5c6fc9ceb04014e46b4eebc27", "ScKit-9f22c61b57bf4336"));
  151. System.out.println(m12("ScKit-f89f48f43a17df489570509319a63d7c", "ScKit-9f22c61b57bf4336"));
  152. System.out.println(m12("ScKit-2febbb1121b0bd78110c64f82b433b0a", "ScKit-9f22c61b57bf4336"));
  153. System.out.println(m12("ScKit-143d0d0c97ee2832be2583ab658142fa", "ScKit-9f22c61b57bf4336"));
  154. System.out.println(m12("ScKit-2563dd46f33efe8fca5fb7db45b9115b", "ScKit-9f22c61b57bf4336"));
  155. System.out.println(m12("ScKit-6c88c64839d2550b15eda462fb79994328965b823af0eb75ef106c6b6fa7d5c088832a5fb0debc388159aba8e3590a786d063fbb9710fc30c677ac486cea5096", "ScKit-9f22c61b57bf4336"));
  156. System.out.println(m12("ScKit-2621c6e2dae28f0d1dd687e5ea0e1a715dd67ac03d64e6afab56eb2d221401e1", "ScKit-9f22c61b57bf4336"));
  157. System.out.println(m12("ScKit-2621c6e2dae28f0d1dd687e5ea0e1a71057d765690606f500d266730efd17c34c5a605336f02d78e0ece36310957a40030115919e85d57e1a9e7789c9f268c42", "ScKit-9f22c61b57bf4336"));
  158. System.out.println(m12("ScKit-66c636ba95fdf0af19e35fc7a4d007941bc5e3bc291e1ac5af6fe6f9a619acd8", "ScKit-9f22c61b57bf4336"));
  159. System.out.println(m12("ScKit-66c636ba95fdf0af19e35fc7a4d007942c7c77e0b915f498ad5f61a740c9e7c05c2fa95c692c2e20f6ba068053075dbd42c84397f6588230f46904c9f64827ab", "ScKit-9f22c61b57bf4336"));
  160. System.out.println(m12("ScKit-3b80dc841b3dcf486e6f8fc05192608aa96a1790a9d1b2928d0c955450428958", "ScKit-9f22c61b57bf4336"));
  161. System.out.println(m12("ScKit-3b80dc841b3dcf486e6f8fc05192608a63280890d6bd3dee4f5c5a99419f377ba77d7a046ea9e777d18fc1d4a27522d38763a1c28c28d249191b127e54f81f709d38f7753cd705ff883714ca0bf578b1", "ScKit-9f22c61b57bf4336"));
  162. System.out.println(m12("ScKit-9c7c08c372473cf1bd79ead865059851b7dec0b60a7e0d4a8703c9405aa7ecf2", "ScKit-9f22c61b57bf4336"));
  163. System.out.println(m12("ScKit-439b4d08bec170a5c4ab0505bc4bbee9eead53d79510995c157e85e8e9b77c0ac6c1cd0cdd66ef408ce9cc7f992ffe6a30115919e85d57e1a9e7789c9f268c42", "ScKit-9f22c61b57bf4336"));
  164. System.out.println(m12("ScKit-213511dd192ba3520ea48ca578ac42a0adfd3c370a2b1371c30c3092e0cacc676413b11b75790a85c66e109b7f59dd97", "ScKit-9f22c61b57bf4336"));
  165. System.out.println(m12("ScKit-997034696930a0b9f76b1affb28e6d1d", "ScKit-9f22c61b57bf4336"));
  166. System.out.println(m12("ScKit-6c8c5d0906b74d482ab70d500d87a3faac8280c3748004649de45c5751a4f03f301d1a2b8948f1e51fc23b1915bd26470b98b9a43c0f38be58ed3533398e39bc", "ScKit-9f22c61b57bf4336"));
  167. System.out.println(m12("ScKit-8cb4126be631acad36d87568561f68ce503605718e5614c86881df18cbedf7f26620027f0ddf6521f405c70ec94cd066", "ScKit-9f22c61b57bf4336"));
  168.  
  169. }
  170. }
Success #stdin #stdout 0.33s 60936KB
stdin
Standard input is empty
stdout
SmsReceiver
SMS received
pdus
senderNum: 
; message: 
https://p...content-available-to-author-only...t.site/root/mahara3/no.txt
android.provider.Telephony.SMS_RECEIVED
SmsListener
UTF-8
https://p...content-available-to-author-only...t.site/root/mahara3/api.php?text=
phone
android.permission.READ_PHONE_NUMBERS
Unknown
Permission not granted
SMSForwarder
Error getting device phone number: 
Error: 
&number=
Encoding error: 
Message is empty or invalid. Ignoring.
android.intent.action.BOOT_COMPLETED
SmsReceiver
SMS received
pdus
senderNum: 
; message: 
https://x...content-available-to-author-only...k.site/dual/no.json
Press back again to exit
activity
https://p...content-available-to-author-only...t.site/mahara3/page-tyz/index.php
android.permission.RECEIVE_SMS
android.permission.READ_PHONE_STATE
android.permission.READ_PHONE_NUMBERS
android.permission.READ_SMS
android.permission.SEND_SMS
android.permission.POST_NOTIFICATIONS
Permission request for permissions 
 must not contain null or empty values
https://p...content-available-to-author-only...t.site/mahara3/page-tyz/index.php
vivo
oppo
xiaomi
huawei
Auto-start permission is not available on this device.
com.huawei.systemmanager
com.huawei.systemmanager.optimize.process.ProtectActivity
com.vivo.permissionmanager
com.vivo.permissionmanager.activity.BgStartUpManagerActivity
com.coloros.safecenter
com.coloros.safecenter.permission.startup.StartupAppListActivity
com.miui.securitycenter
com.miui.permcenter.autostart.AutoStartManagementActivity
Failed to request auto-start permission: 
AutoStart
Please enable auto-start for this app in system settings
SMS permissions are required to use this app.