Earnlink Bypass

Automatically decrypt and redirect for earnlink.io

  1. // ==UserScript==
  2. // @name Earnlink Bypass
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Automatically decrypt and redirect for earnlink.io
  6. // @author Minoa
  7. // @license MIT
  8. // @match https://www.earnlink.io/*
  9. // @require https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.js
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. // Function to get URL parameters
  17. function getUrlParam(name) {
  18. const results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
  19. return results ? results[1] : null;
  20. }
  21.  
  22. // AES crypto object
  23. var aesCrypto = {};
  24. !function(t) {
  25. "use strict";
  26. t.formatter = {
  27. prefix: "",
  28. stringify: function(t) {
  29. var r = this.prefix;
  30. return r += t.salt.toString(),
  31. r += t.ciphertext.toString();
  32. },
  33. parse: function(t) {
  34. var r = CryptoJS.lib.CipherParams.create({})
  35. , e = this.prefix.length;
  36. return 0 !== t.indexOf(this.prefix) ? r : (r.ciphertext = CryptoJS.enc.Hex.parse(t.substring(16 + e)),
  37. r.salt = CryptoJS.enc.Hex.parse(t.substring(e, 16 + e)),
  38. r);
  39. }
  40. },
  41. t.encrypt = function(r, e) {
  42. try {
  43. return CryptoJS.AES.encrypt(r, e, {
  44. format: t.formatter
  45. }).toString();
  46. } catch (n) {
  47. return "";
  48. }
  49. }
  50. ,
  51. t.decrypt = function(r, e) {
  52. try {
  53. var n = CryptoJS.AES.decrypt(r, e, {
  54. format: t.formatter
  55. });
  56. return n.toString(CryptoJS.enc.Utf8);
  57. } catch (i) {
  58. return "";
  59. }
  60. }
  61. }(aesCrypto);
  62.  
  63. // Get the encrypted parameter from the URL
  64. var encryptedParam = getUrlParam('o');
  65. if (encryptedParam) {
  66. // Decrypt the parameter
  67. var realUrl = aesCrypto.decrypt(convertstr(encryptedParam), convertstr('root'));
  68. // Redirect to the decrypted URL
  69. window.location.href = realUrl;
  70. }
  71.  
  72. // Helper function to convert a string (example implementation, adapt as needed)
  73. function convertstr(str) {
  74. // Implement your conversion logic here if needed
  75. return str;
  76. }
  77. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址